From a854d5a6023c77a6ceb343a44943c15f3a722c32 Mon Sep 17 00:00:00 2001 From: genofire Date: Tue, 5 Jul 2022 22:34:58 +0200 Subject: [PATCH] home: add gnome keybindings / shortcuts --- home/desktop-gnome.nix | 52 +++++++++++++++++++++++++++++++++++++++--- 1 file changed, 49 insertions(+), 3 deletions(-) diff --git a/home/desktop-gnome.nix b/home/desktop-gnome.nix index ce9ff00..fed7f2f 100644 --- a/home/desktop-gnome.nix +++ b/home/desktop-gnome.nix @@ -7,9 +7,55 @@ MOZ_WEBRENDER = 1; }; - # display: partly scale (like 150% or 125%) - dconf.settings."org/gnome/mutter" = { - "experimental-features" = ["scale-monitor-framebuffer"]; + dconf.settings = { + "org/gnome/mutter" = { + # display: partly scale (like 150% or 125%) + "experimental-features" = [ "scale-monitor-framebuffer" ]; + }; + # key bindings + "org/gnome/shell/keybindings" = { + "switch-to-application-1" = []; + "switch-to-application-2" = []; + "switch-to-application-3" = []; + "switch-to-application-4" = []; + "switch-to-application-5" = []; + "switch-to-application-6" = []; + "switch-to-application-7" = []; + "switch-to-application-8" = []; + "switch-to-application-9" = []; + }; + "org/gnome/desktop/wm/keybindings" = { + "toggle-maximized" = [ "z" ]; + "maximize" = []; + "unmaximize" = [ "F5" ]; + + "close" = [ "c" "F4" ]; + + "switch-input-source" = [ "i" "XF86Keyboard" ]; + "switch-input-source-backward" = [ "i" "XF86Keyboard" ]; + + "switch-to-workspace-1" = [ "1" ]; + "switch-to-workspace-2" = [ "2" ]; + "switch-to-workspace-3" = [ "3" ]; + "switch-to-workspace-4" = [ "4" ]; + "switch-to-workspace-5" = [ "5" ]; + "switch-to-workspace-6" = [ "6" ]; + "switch-to-workspace-7" = [ "7" ]; + "switch-to-workspace-8" = [ "8" ]; + "switch-to-workspace-9" = [ "9" ]; + "switch-to-workspace-10" = [ "0" ]; + + "move-to-workspace-1" = [ "1" ]; + "move-to-workspace-2" = [ "2" ]; + "move-to-workspace-3" = [ "3" ]; + "move-to-workspace-4" = [ "4" ]; + "move-to-workspace-5" = [ "5" ]; + "move-to-workspace-6" = [ "6" ]; + "move-to-workspace-7" = [ "7" ]; + "move-to-workspace-8" = [ "8" ]; + "move-to-workspace-9" = [ "9" ]; + "move-to-workspace-10" = [ "0" ]; + }; }; home.packages = with pkgs; [