diff options
-rw-r--r-- | home/.config/i3/config | 2 | ||||
-rwxr-xr-x | home/.lock | 3 | ||||
-rw-r--r-- | home/.xinitrc | 2 | ||||
-rw-r--r-- | src/etc/systemd/logind.conf | 3 |
4 files changed, 7 insertions, 3 deletions
diff --git a/home/.config/i3/config b/home/.config/i3/config index e5324a1..a94d916 100644 --- a/home/.config/i3/config +++ b/home/.config/i3/config @@ -24,7 +24,7 @@ bindsym $mod+$scr exec xrandr --output HDMI-2 --auto --right-of eDP-1 &&\ pactl set-card-profile 0 output:"hdmi-stereo-extra1"+input:analog-stereo # Hibernation -bindsym $mod+x exec i3lock -i ~/bg/sc.png -k && systemctl hybrid-sleep +bindsym $mod+x exec ~/.lock # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. font pango:monospace 8 diff --git a/home/.lock b/home/.lock new file mode 100755 index 0000000..3881bd3 --- /dev/null +++ b/home/.lock @@ -0,0 +1,3 @@ +#!/bin/sh +i3lock -i ~/bg/sc.png -k &&\ +systemctl hybrid-sleep diff --git a/home/.xinitrc b/home/.xinitrc index cee79e8..16e53fb 100644 --- a/home/.xinitrc +++ b/home/.xinitrc @@ -1,5 +1,5 @@ picom -b -xss-lock --ignore-sleep -- i3lock --nofork -i ~/bg/sc.png -k & +xss-lock --ignore-sleep -- ~/.lock & setxkbmap -layout us -variant dvp -option caps:escape feh --bg-fill --no-fehbg ~/bg/sc.png st & diff --git a/src/etc/systemd/logind.conf b/src/etc/systemd/logind.conf index 990f437..e4d6944 100644 --- a/src/etc/systemd/logind.conf +++ b/src/etc/systemd/logind.conf @@ -1,2 +1,3 @@ -HandleLidSwitch=hybrid-sleep +[Login] HandlePowerKey=hibernate +HandleLidSwitch=lock |