summaryrefslogtreecommitdiff
path: root/swayidletog
blob: 94e0eafed912216b92b9814a662769830fc63c21 (plain)
1
2
3
4
5
6
7
8
9
#!/sbin/sh

SWIDLE=$(pidof swayidle)
if [ ! -z "$SWIDLE" ] ; then 
  killall swayidle
else
  swayidle timeout 300 waylock &
fi
pkill -RTMIN+8 waybar