Added current scripts
This commit is contained in:
16
lockand
Executable file
16
lockand
Executable file
@ -0,0 +1,16 @@
|
||||
#!/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
|
Reference in New Issue
Block a user