From 5e797bc783364a2b30978aba06cde7306177dec1 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 14 Mar 2017 17:26:41 -0700 Subject: [PATCH] [Linux] Fix custom keybindings in rofi_systemd --- dotfiles/lib/bin/rofi_systemd.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dotfiles/lib/bin/rofi_systemd.sh b/dotfiles/lib/bin/rofi_systemd.sh index cee1ef09..da2574b3 100755 --- a/dotfiles/lib/bin/rofi_systemd.sh +++ b/dotfiles/lib/bin/rofi_systemd.sh @@ -18,13 +18,14 @@ stop="Alt+k" restart="Alt+r" 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-2 "${disable}" \ -kb-custom-3 "${stop}" \ - -kb-custom-4 "${restart}" | sed -n 's/ \+/ /gp') + -kb-custom-4 "${restart}") rofi_exit="$?" + selection="$(echo $result | sed -n 's/ \+/ /gp')" action="restart" case "$rofi_exit" in