diff options
author | Jesús <heckyel@hyperbola.info> | 2022-06-27 00:41:41 +0800 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2022-06-27 00:41:41 +0800 |
commit | 4070f6f227a04630a7b16d40fd469c4a1f3b3c90 (patch) | |
tree | f2faacfb2c98142a7f4723d8ec10367c78330979 /scripts | |
parent | 6993d610908465d6839b9c2b2f51f2a54fd82457 (diff) | |
download | i3-config-master.tar.lz i3-config-master.tar.xz i3-config-master.zip |
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/i3lock.bash | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/scripts/i3lock.bash b/scripts/i3lock.bash deleted file mode 100644 index caddf1c..0000000 --- a/scripts/i3lock.bash +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash -revert() { - rm /tmp/*screen*.png - xset dpms 0 0 0 -} - -trap revert HUP INT TERM - -if [[ $(command -v xset) ]]; then - xset +dpms dpms 0 0 5 -else - echo 'xset command not found' >> "$HOME/.config/i3/logs/xset-log-$(date +'%F-%k-%M-%S').log" 2>&1 # debug -fi - -if [[ $(command -v scrot) ]]; then - scrot -d 1 /tmp/locking_screen.png -else - echo 'scrot is not installed' >> "$HOME/.config/i3/logs/scrot-log-$(date +'%F-%k-%M-%S').log" 2>&1 # debug -fi - -if [[ $(command -v convert) ]]; then - convert -blur 0x8 /tmp/locking_screen.png /tmp/screen_blur.png - convert -composite /tmp/screen_blur.png "$HOME/.config/i3/images/imagelock.png" -gravity South -geometry -20x1200 /tmp/screen.png -else - echo 'convert command not found' >> "$HOME/.config/i3/logs/convert-log-$(date +'%F-%k-%M-%S').log" 2>&1 # debug -fi - -if [[ $(command -v i3lock) ]]; then - i3lock -i /tmp/screen.png -else - echo 'i3lock is not installed' >> "$HOME/.config/i3/logs/i3lock-log-$(date +'%F-%k-%M-%S').log" 2>&1 # debug -fi - -revert "$@" |