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}'"
|
args = optional (layout != null) "-layout '${layout}'"
|
||||||
++ optional (variant != null) "-variant '${variant}'"
|
++ optional (variant != null) "-variant '${variant}'"
|
||||||
++ optional (model != null) "-model '${model}'"
|
++ optional (model != null) "-model '${model}'"
|
||||||
++ map (v: "-option '${v}'") options;
|
++ [ "-option ''" ] ++ map (v: "-option '${v}'") options;
|
||||||
in "${pkgs.xorg.setxkbmap}/bin/setxkbmap ${toString args}";
|
in "${pkgs.xorg.setxkbmap}/bin/setxkbmap ${toString args}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
WantedBy=graphical-session.target
|
WantedBy=graphical-session.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=@setxkbmap@/bin/setxkbmap -layout 'us' -variant ''
|
ExecStart=@setxkbmap@/bin/setxkbmap -layout 'us' -variant '' -option ''
|
||||||
RemainAfterExit=true
|
RemainAfterExit=true
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
WantedBy=graphical-session.target
|
WantedBy=graphical-session.target
|
||||||
|
|
||||||
[Service]
|
[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
|
RemainAfterExit=true
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue