Added auto lock screen

This commit is contained in:
dbroqua 2020-06-03 18:09:00 +02:00
parent 171d26ed68
commit dd4abef7ed
2 changed files with 7 additions and 1 deletions

View file

@ -1,7 +1,8 @@
#!/bin/bash #!/bin/bash
notify-send --icon=gtk-info Lock "Screen lock in progress..." #notify-send --icon=gtk-info Lock "Screen lock in progress..."
i3lock-fancy i3lock-fancy
#/opt/i3lock-fancy-multimonitor/lock #/opt/i3lock-fancy-multimonitor/lock
#dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Pause #dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Pause

View file

@ -281,3 +281,8 @@ for_window [class="Ristretto"] fullscreen enable
# #
default_border pixel 2 default_border pixel 2
# Power save mode and Auto lock screen
exec --no-startup-id xset s 60 30
exec --no-startup-id xset dpms 120
exec --no-startup-id xss-lock -n ~/Bin/lock.sh