From 8fc24abb87003d7133ab3686da070de7356492a1 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Thu, 20 Jun 2024 22:17:13 -0400 Subject: [PATCH] cinnamon: added more keybindings --- .../desktop/cinnamon/default.nix | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/homeManagerModules/desktop/cinnamon/default.nix b/homeManagerModules/desktop/cinnamon/default.nix index a6409ccc..24907d41 100644 --- a/homeManagerModules/desktop/cinnamon/default.nix +++ b/homeManagerModules/desktop/cinnamon/default.nix @@ -28,6 +28,32 @@ "org/gnome/desktop/peripherals/touchpad".tap-to-click = true; "org/gnome/desktop/wm/preferences".titlebar-font = "${config.alyraffauf.theme.font.name} ${toString config.alyraffauf.theme.font.size}"; "org/nemo/desktop".font = "${config.alyraffauf.theme.font.name} ${toString config.alyraffauf.theme.font.size}"; + "org/cinnamon/desktop/wm/preferences" = { + focus-mode = "mouse"; + mouse-button-modifier = ""; + }; + "org/gnome/desktop/wm/preferences" = { + focus-mode = "mouse"; + mouse-button-modifier = ""; + }; + "org/cinnamon/muffin".attach-modal-dialogs = true; + "org/cinnamon/desktop/keybindings/media-keys" = { + www = ["XF86WWW" "b"]; + terminal = ["" "t"]; + }; + "org/cinnamon/desktop/keybindings/wm" = { + # TODO: Declaratively disable conflict with panel applet. + close = ["F4" "c"]; + 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"]; + }; }; }; }