#!/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
|