Simplified monitor setup and locking

This commit is contained in:
J. Fernando Sánchez
2017-12-05 20:27:11 +01:00
parent 074f9bcb3c
commit 0cd98dd54b
13 changed files with 38 additions and 43 deletions

View File

@@ -1,6 +1,14 @@
#!/bin/bash
case "$1" in
locknow)
scrot /tmp/screen.png
convert /tmp/screen.png -scale 10% -scale 1000% /tmp/screen.png
i3lock -e -i /tmp/screen.png
;;
autolock)
xautolock -time 10 -corners "----" -locker "$0 locknow"
;;
lock)
xautolock -locknow
;;