summaryrefslogtreecommitdiff
path: root/scripts/lib
diff options
context:
space:
mode:
authorSuleyman Farajli <suleyman@farajli.net>2025-11-25 23:01:36 +0400
committerSuleyman Farajli <suleyman@farajli.net>2025-11-25 23:01:36 +0400
commit88d8bd6b615d7394a86c7adce79dd935e0b1f576 (patch)
tree5ee5e1babd88f0cd147f8e22c62c6e36abe5663e /scripts/lib
parentd1f6376a7b3a1c04e663355096cbe5ba3360daff (diff)
feat(lib_handle.sh): add new actions to `status_handle`
Diffstat (limited to 'scripts/lib')
-rw-r--r--scripts/lib/lib_handle.sh14
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() {