diff options
Diffstat (limited to 'scripts/lib/lib_handle.sh')
| -rw-r--r-- | scripts/lib/lib_handle.sh | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/scripts/lib/lib_handle.sh b/scripts/lib/lib_handle.sh index 5405e4a..cc2c73b 100644 --- a/scripts/lib/lib_handle.sh +++ b/scripts/lib/lib_handle.sh @@ -134,14 +134,18 @@ notify_handle() { } compositor_handle() { - case "${1}" in - "start") pgrep -x picom >/dev/null || picom -b & ;; - "stop") pgrep -x picom >/dev/null && pkill -x picom ;; - esac + case "${1}" in + "start") pgrep -x picom >/dev/null || picom -b & ;; + "stop") pgrep -x picom >/dev/null && pkill -x picom ;; + esac } status_handle() { - [ "${1}" = "reload" ] && slreload + case "${1}" in + "start") slstatus & ;; + "stop") pgrep -x slstatus >/dev/null && pkill -x slstatus ;; + "reload") slreload ;; + esac } menu_handle() { |
