Shows if the pc will not automatically turn off screen or suspend. Figures this out by checking for `swayidle` process, so that is required. Turns on suspend again on click, and uses voidlinux `sv` user service for it, so those have to be set up.
9 lines
205 B
Bash
Executable file
9 lines
205 B
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
status="idle-disabled"
|
|
if pgrep -x swayidle >/dev/null; then
|
|
status="idle-enabled"
|
|
fi
|
|
|
|
printf "{\"text\": \"\", \"alt\": \"%s\", \"tooltip\": \"\", \"class\": \"\"}" \
|
|
"$status"
|