disable caps-lock on gnome

This commit is contained in:
Peder Bergebakken Sundt 2023-12-09 22:40:01 +01:00
parent b06f72ce5b
commit 1e99a598e3
3 changed files with 6 additions and 9 deletions

View File

@ -14,13 +14,4 @@
console.keyMap = "no"; console.keyMap = "no";
services.xserver.layout = "no"; services.xserver.layout = "no";
services.xserver.xkbVariant = ""; services.xserver.xkbVariant = "";
# no caps lock
services.xserver.xkbOptions = "ctrl:nocaps"; # TODO: doesn't work
#console.useXkbConfig = true; # applies to ttys aswell, mutex with console.keyMap
# run the following to make GNOME reload the xkb options:
/*
gsettings reset org.gnome.desktop.input-sources xkb-options
gsettings reset org.gnome.desktop.input-sources sources
*/
} }

View File

@ -5,6 +5,11 @@ with lib.hm.gvariant;
{ {
dconf.settings = { dconf.settings = {
"org/gnome/desktop/input-sources" = {
sources = [ (mkTuple [ "xkb" "no" ]) ];
xkb-options = [ "terminate:ctrl_alt_bksp" "caps:none" ];
};
"org/gnome/desktop/wm/keybindings" = { "org/gnome/desktop/wm/keybindings" = {
close = [ "<Alt>F4" ]; close = [ "<Alt>F4" ];
maximize = [ "<Super>Up" ]; maximize = [ "<Super>Up" ];

View File

@ -15,6 +15,7 @@ dump1() {
} }
{ {
dump "org/gnome/desktop/input-sources"
dump "org/gnome/desktop/wm/keybindings" dump "org/gnome/desktop/wm/keybindings"
dump "org/gnome/mutter/keybindings" dump "org/gnome/mutter/keybindings"
dump "org/gnome/shell/keybindings" dump "org/gnome/shell/keybindings"