diff options
Diffstat (limited to '.config/i3/extra')
-rwxr-xr-x | .config/i3/extra/lidlock | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/.config/i3/extra/lidlock b/.config/i3/extra/lidlock deleted file mode 100755 index 8ab46d1..0000000 --- a/.config/i3/extra/lidlock +++ /dev/null @@ -1,21 +0,0 @@ -#! /bin/sh - -get_state() { - echo $(cat /proc/acpi/button/lid/LID0/state) -} - -OLD_STATE=$(get_state) - -while : -do - CUR_STATE=$(get_state) - - if [ "$CUR_STATE" != "$OLD_STATE" ]; then - if echo $CUR_STATE | grep closed; then - betterlockscreen -l - fi - fi - - OLD_STATE=$CUR_STATE - sleep 5 -done |