add quick actions tab
This commit is contained in:
13
modules/home/wayland/apps/eww/bar/scripts/nightlight
Executable file
13
modules/home/wayland/apps/eww/bar/scripts/nightlight
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
case "$1" in
|
||||
status)
|
||||
pgrep -x wlsunset >/dev/null 2>&1 && echo true || echo false
|
||||
;;
|
||||
*)
|
||||
if pgrep -x wlsunset >/dev/null 2>&1; then
|
||||
pkill -x wlsunset && echo false
|
||||
else
|
||||
wlsunset -T 4500 -t 3200 & echo true
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user