Files
linux-scripts/lockand
2023-07-18 20:55:12 -05:00

17 lines
307 B
Bash
Executable File

#!/bin/bash
xset dpms force off
#Locker seems to die or be not responsive sometimes (not sure why...) so will just use slock -f as an alternative
locker=xautolock
#if [[ $(ps -ef | grep $locker | grep -v grep | wc -l) != 0 ]]; then
#xautolock -locknow
#else
#echo no
slock -f &
#fi
sleep 3
systemctl $1