diff options
Diffstat (limited to '.config/swayrbar/scripts/idle-status')
-rwxr-xr-x | .config/swayrbar/scripts/idle-status | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.config/swayrbar/scripts/idle-status b/.config/swayrbar/scripts/idle-status new file mode 100755 index 0000000..9420e64 --- /dev/null +++ b/.config/swayrbar/scripts/idle-status @@ -0,0 +1,10 @@ +#!/usr/bin/env sh +pid_file="/tmp/wayland-idle-inhibitor-$(id --user).pid" +pid=$(cat "${pid_file}") +if [ -n "${pid}" ] && kill -0 "${pid}" +then + echo -n " " +else + echo -n " " +fi + |