dotfiles/bin/noidle

10 lines
166 B
Text
Raw Normal View History

2021-01-03 15:47:36 +00:00
#!/bin/bash
pkill swayidle
RT=$?
if [ $RT -eq 0 ]
then
notify-send -t 1000 noidle "Screensaver disabled"
else
notify-send noidle "Unable to disable screensaver"
fi