[Linux] Fix custom keybindings in rofi_systemd

This commit is contained in:
Ivan Malison 2017-03-14 17:26:41 -07:00
parent 7350a36597
commit 5e797bc783
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -18,13 +18,14 @@ stop="Alt+k"
restart="Alt+r" restart="Alt+r"
function select_service_and_act { function select_service_and_act {
selection=$(rofi -dmenu -i -p "systemd unit: " \ result=$(rofi -dmenu -i -p "systemd unit: " \
-kb-custom-1 "${enable}" \ -kb-custom-1 "${enable}" \
-kb-custom-2 "${disable}" \ -kb-custom-2 "${disable}" \
-kb-custom-3 "${stop}" \ -kb-custom-3 "${stop}" \
-kb-custom-4 "${restart}" | sed -n 's/ \+/ /gp') -kb-custom-4 "${restart}")
rofi_exit="$?" rofi_exit="$?"
selection="$(echo $result | sed -n 's/ \+/ /gp')"
action="restart" action="restart"
case "$rofi_exit" in case "$rofi_exit" in