mirror of
https://github.com/nix-community/home-manager
synced 2025-01-06 00:59:48 +01:00
setxkbmap: reset options before setting new ones (#2160)
(cherry picked from commit 4971b9cad0
)
This commit is contained in:
parent
88de11327c
commit
03db229cc2
3 changed files with 3 additions and 3 deletions
|
@ -104,7 +104,7 @@ in {
|
|||
args = optional (layout != null) "-layout '${layout}'"
|
||||
++ optional (variant != null) "-variant '${variant}'"
|
||||
++ optional (model != null) "-model '${model}'"
|
||||
++ map (v: "-option '${v}'") options;
|
||||
++ [ "-option ''" ] ++ map (v: "-option '${v}'") options;
|
||||
in "${pkgs.xorg.setxkbmap}/bin/setxkbmap ${toString args}";
|
||||
};
|
||||
};
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
WantedBy=graphical-session.target
|
||||
|
||||
[Service]
|
||||
ExecStart=@setxkbmap@/bin/setxkbmap -layout 'us' -variant ''
|
||||
ExecStart=@setxkbmap@/bin/setxkbmap -layout 'us' -variant '' -option ''
|
||||
RemainAfterExit=true
|
||||
Type=oneshot
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
WantedBy=graphical-session.target
|
||||
|
||||
[Service]
|
||||
ExecStart=@setxkbmap@/bin/setxkbmap -option 'ctrl:nocaps' -option 'altwin:no_win'
|
||||
ExecStart=@setxkbmap@/bin/setxkbmap -option '' -option 'ctrl:nocaps' -option 'altwin:no_win'
|
||||
RemainAfterExit=true
|
||||
Type=oneshot
|
||||
|
||||
|
|
Loading…
Reference in a new issue