aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorRaúl Benencia <id@rbenencia.name>2024-10-13 09:51:00 -0700
committerRaúl Benencia <id@rbenencia.name>2024-10-13 09:51:00 -0700
commit5d899172042be1174df1f22a50d765270c229bbd (patch)
tree1f4a72caa6d509425c988bed28ace7566f8f4314 /bin
parent338532f19c121026c57d34761d13f8f8d1781fd1 (diff)
emacs: use prot's popups to bind org-capture in Gnome
Diffstat (limited to 'bin')
-rwxr-xr-xbin/gnome-set-config12
1 files changed, 12 insertions, 0 deletions
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 "['<Super>$i']"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-$i "['<Shift><Super>$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 "'<Super>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 "'<Shift><Super>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'"
nihil fit ex nihilo