forked from colonelpanic/dotfiles
[Linux] Fix custom keybindings in rofi_systemd
This commit is contained in:
parent
7350a36597
commit
5e797bc783
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user