aboutsummaryrefslogtreecommitdiff
path: root/.config/swayrbar/scripts/idle-status
blob: 9420e64ae39193636c80acb8863508349178834d (plain) (blame)
1
2
3
4
5
6
7
8
9
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