From 4025f3757c3321349fce48a96256ad3cfef20461 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Mon, 5 Dec 2016 15:42:48 -0800 Subject: [PATCH] [Linux] Make rofi_restart_service work for failed services --- dotfiles/lib/bin/rofi_restart_service.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dotfiles/lib/bin/rofi_restart_service.sh b/dotfiles/lib/bin/rofi_restart_service.sh index b3a72616..ecbc109f 100755 --- a/dotfiles/lib/bin/rofi_restart_service.sh +++ b/dotfiles/lib/bin/rofi_restart_service.sh @@ -1,5 +1,4 @@ #!/usr/bin/env zsh -systemctl --user | tail -n +2 | head -n -6 | - egrep -v "sys-devices" | get_cols 1 | rofi -dmenu -i | - xargs systemctl --user restart +systemctl --user list-unit-files | tail -n +2 | head -n -2 | + get_cols 1 | rofi -dmenu -i | xargs systemctl --user restart