Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- screensvronlock=/tmp/screensvronlock
- if [ -f $screensvronlock ];
- then
- rm $screensvronlock
- # notify-send "Screen on." -i /usr/share/icons/gnome/48x48/devices/display.png
- else
- touch $screensvronlock
- sleep .6
- while [ -f $screensvronlock ]
- do
- xscreensaver-command -activate
- sleep 2
- done
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement