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(){