You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

10 lines
190 B

#!/bin/bash
if [ $(pgrep xautolock) ]
then
killall xautolock
notify-send "🔓 Turning off xautolock"
else
xautolock -time 10 -locker slock &
notify-send "🔒 Turning on xautolock"
fi