[Linux] Make rofi_restart_service work for failed services

This commit is contained in:
Ivan Malison 2016-12-05 15:42:48 -08:00
parent 18ae198b6d
commit 4025f3757c
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -1,5 +1,4 @@
#!/usr/bin/env zsh #!/usr/bin/env zsh
systemctl --user | tail -n +2 | head -n -6 | systemctl --user list-unit-files | tail -n +2 | head -n -2 |
egrep -v "sys-devices" | get_cols 1 | rofi -dmenu -i | get_cols 1 | rofi -dmenu -i | xargs systemctl --user restart
xargs systemctl --user restart