diff options
author | adamstuck <adam.moloney.stuck@gmail.com> | 2021-12-27 17:43:28 +0100 |
---|---|---|
committer | adamstuck <adam.moloney.stuck@gmail.com> | 2021-12-27 17:43:28 +0100 |
commit | 1a9b45278782dd141128a960b0cfcc9e7bc2eed0 (patch) | |
tree | 4a534b62018bf0756fab5e84fd47fd6c868764ac /.config/i3 | |
parent | b11ad11d1b8844ff7b8c5c2bf8f04a90aaa3ee2c (diff) |
Revert "Lock now turns off screen instead of suspend"
This reverts commit 75fa432a58cb228b4fdefc309cc015b7329c7e1a.
Diffstat (limited to '.config/i3')
-rw-r--r-- | .config/i3/config | 3 | ||||
-rwxr-xr-x | .config/i3/extra/lidlock | 21 |
2 files changed, 1 insertions, 23 deletions
diff --git a/.config/i3/config b/.config/i3/config index f96d894..0a7e2f6 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -8,7 +8,7 @@ bindsym $mod+Shift+c reload bindsym $mod+Shift+r restart bindsym $mod+Shift+e exec --no-startup-id "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'" bindsym $mod+Shift+q kill -bindsym $mod+Escape exec --no-startup-id betterlockscreen -l +bindsym $mod+Escape exec --no-startup-id systemctl suspend bindsym $mod+Return exec alacritty bindsym $mod+b exec firefox bindsym $mod+e exec pcmanfm @@ -171,4 +171,3 @@ exec_always --no-startup-id /usr/bin/unclutter -b exec_always --no-startup-id $HOME/.config/polybar/launch exec_always --no-startup-id picom --experimental-backends --config ~/.config/picom/picom.conf -b exec_always --no-startup-id setxkbmap -option grp:win_space_toggle us,dk -exec --no-startup-id $XDG_CONFIG_HOME/i3/extra/lidlock & 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 |