diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2016-05-31 22:43:44 +0200 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2016-05-31 22:49:18 +0200 |
commit | 7d1277c7c94eec3e777e6db43005969df9723afd (patch) | |
tree | 5ea64e38a7615c62f6a9761b1b3a42fea110458b | |
parent | 9e49cfad330d4e5f44fa9ff22ea86e52c2ec685b (diff) | |
download | debian-packages-7d1277c7c94eec3e777e6db43005969df9723afd.tar.gz debian-packages-7d1277c7c94eec3e777e6db43005969df9723afd.zip |
update gnome-commands.sh
-rwxr-xr-x | packages/scripts/resources/bin/gnome-commands.md | 19 | ||||
-rwxr-xr-x | packages/scripts/resources/bin/gnome-commands.sh | 18 |
2 files changed, 18 insertions, 19 deletions
diff --git a/packages/scripts/resources/bin/gnome-commands.md b/packages/scripts/resources/bin/gnome-commands.md deleted file mode 100755 index 56ff017..0000000 --- a/packages/scripts/resources/bin/gnome-commands.md +++ /dev/null @@ -1,19 +0,0 @@ - -here=`dirname "$0"` -here=`realpath "$here"` -set -x -dconf write /org/mate/marco/keybinding-commands/command-1 "'$here/telepath-setpresence.sh available'" -dconf write /org/mate/marco/global-keybindings/run-command-1 "'<Super>n'" - -dconf write /org/mate/marco/keybinding-commands/command-2 "'$here/telepath-setpresence.sh busy'" -dconf write /org/mate/marco/global-keybindings/run-command-2 "'<Super>b'" - -dconf write /org/mate/marco/keybinding-commands/command-3 "'mate-terminal'" -dconf write /org/mate/marco/global-keybindings/run-command-3 "'<Super>Return'" - -dconf write /org/mate/marco/keybinding-commands/command-4 "'$here/dmenu-software.sh'" -dconf write /org/mate/marco/global-keybindings/run-command-4 "'<Super>c'" - -dconf write /org/mate/marco/keybinding-commands/command-5 "'$here/dmenu-pass.sh'" -dconf write /org/mate/marco/global-keybindings/run-command-5 "'<Super>p'" - diff --git a/packages/scripts/resources/bin/gnome-commands.sh b/packages/scripts/resources/bin/gnome-commands.sh new file mode 100755 index 0000000..50d7a8a --- /dev/null +++ b/packages/scripts/resources/bin/gnome-commands.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +bind() { + dconf write "/org/mate/marco/keybinding-commands/command-$1" "$3" + dconf write "org/mate/marco/global-keybindings/run-command-$1" "$2" +} + + +here=`dirname "$0"` +here=`realpath "$here"` +set -x + +bind 1 "'<Super>n'" "'$here/telepath-setpresence.sh available'" +bind 2 "'<Super>b'" "'$here/telepath-setpresence.sh busy'" +bind 3 "'<Super>Return'" "'mate-terminal'" +bind 4 "'<Super>c'" "'$here/dmenu-software.sh'" +bind 5 "'<Super>p'" "'$here/dmenu-pass.sh'" + |