From ff3e42266370e88c884cd36b837b3d8d204499ed Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Fri, 21 Jul 2023 14:59:10 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20(nix/home-manager)=20Add=20a=20few?= =?UTF-8?q?=20dconf=20keybindings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.config/home-manager/common.nix | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/nix/home-manager/.config/home-manager/common.nix b/nix/home-manager/.config/home-manager/common.nix index 11349a5..1c4e91b 100644 --- a/nix/home-manager/.config/home-manager/common.nix +++ b/nix/home-manager/.config/home-manager/common.nix @@ -56,6 +56,30 @@ accounts.email.maildirBasePath = ".mbsync"; + ######### + # DCONF # + ######### + + dconf.settings = { + "org/gnome/settings-daemon/plugins/media-keys" = { + "home" = ["f"]; + "custom-keybindings" = [ + "/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/" + "/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/" + ]; + }; + "org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0" = { + "binding" = "Return"; + "command" = "emacsclient"; + "name" = "Emacs (Client)"; + }; + "org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1" = { + "binding" = "t"; + "command" = "emacsclient -c -e '(progn (set-frame-size nil 80 24) (vterm t))'"; + "name" = "Terminal (Emacs Vterm)"; + }; + }; + ############ # PROGRAMS # ############