From 5d899172042be1174df1f22a50d765270c229bbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Benencia?= Date: Sun, 13 Oct 2024 09:51:00 -0700 Subject: emacs: use prot's popups to bind org-capture in Gnome --- bin/gnome-set-config | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'bin') diff --git a/bin/gnome-set-config b/bin/gnome-set-config index 5bfb476..b199378 100755 --- a/bin/gnome-set-config +++ b/bin/gnome-set-config @@ -1,4 +1,7 @@ #!/bin/sh +# Sets my preferred Gnome config. +# Find existing bindings with: +# for e in $(gsettings list-schemas | grep bind); do gsettings list-recursively $e; done NUM_WORKSPACES=9 @@ -10,3 +13,12 @@ for i in $(seq 1 $NUM_WORKSPACES); do gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-$i "['$i']" gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-$i "['$i']" done + +# This configuration is not present in gsettings; we need to fall back to dconf +dconf write /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/binding "'Return'" +dconf write /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/command "'kgx'" +dconf write /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/name "'Open terminal'" + +dconf write /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/binding "'o'" +dconf write /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/command "'emacsclient -e \"(prot-window-popup-org-capture)\"'" +dconf write /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/name "'org-capture'" -- cgit v1.2.3