diff options
-rw-r--r-- | .config/betterlockscreenrc | 36 | ||||
-rw-r--r-- | .config/i3/config | 3 | ||||
-rwxr-xr-x | .config/i3/extra/lidlock | 21 |
3 files changed, 59 insertions, 1 deletions
diff --git a/.config/betterlockscreenrc b/.config/betterlockscreenrc new file mode 100644 index 0000000..f84e477 --- /dev/null +++ b/.config/betterlockscreenrc @@ -0,0 +1,36 @@ +# ~/.config/betterlockscreenrc + +# default options +display_on=0 +span_image=false +lock_timeout=5 +fx_list=(dim blur dimblur pixel dimpixel color) +dim_level=40 +blur_level=1 +pixel_scale=10,1000 +solid_color=333333 +wallpaper_cmd="feh --bg-fill" +# i3lockcolor_bin="i3lock-color" # Manually set command for i3lock-color + +# default theme +loginbox=00000066 +loginshadow=00000000 +locktext="Type password to unlock..." +font="sans-serif" +ringcolor=ffffffff +insidecolor=00000000 +separatorcolor=00000000 +ringvercolor=ffffffff +insidevercolor=00000000 +ringwrongcolor=ffffffff +insidewrongcolor=d23c3dff +timecolor=ffffffff +time_format="%H:%M" +greetercolor=ffffffff +layoutcolor=ffffffff +keyhlcolor=d23c3dff +bshlcolor=d23c3dff +verifcolor=ffffffff +wrongcolor=d23c3dff +modifcolor=d23c3dff +bgcolor=000000ff diff --git a/.config/i3/config b/.config/i3/config index 3f94812..b902e40 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 systemctl suspend +bindsym $mod+Escape exec --no-startup-id "betterlockscreen -l" bindsym $mod+Return exec --no-startup-id alacritty bindsym $mod+b exec --no-startup-id firefox bindsym $mod+e exec --no-startup-id pcmanfm @@ -170,3 +170,4 @@ 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 new file mode 100755 index 0000000..81b3b49 --- /dev/null +++ b/.config/i3/extra/lidlock @@ -0,0 +1,21 @@ +#! /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 1 +done |