setxkbmap: reset options before setting new ones (#2160)
This commit is contained in:
parent
3ab254aff4
commit
4971b9cad0
|
@ -114,7 +114,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