From 06f13bc415dd556cbe70cb0600a71f98b0a1fdec Mon Sep 17 00:00:00 2001 From: Jonas Forsberg Date: Sat, 1 Aug 2020 11:08:49 +0200 Subject: [PATCH] cleaned up gnome bindings --- .functions.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.functions.sh b/.functions.sh index a6e9d9b..7db480c 100644 --- a/.functions.sh +++ b/.functions.sh @@ -1,9 +1,12 @@ function gnomebindings(){ - # set my default keyboard bindings - gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ name "Open Terminator" - gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ command "terminator" - gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ binding "Return" + local KEY_PATH="/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings" + local CMD="gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:$KEY_PATH" + gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "['$KEY_PATH/custom0/']" + # Open Terminator + $CMD/custom0/ name "Open Terminator" + $CMD/custom0/ command "terminator" + $CMD/custom0/ binding "Return" } function pw(){