aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-05-03 22:31:18 -0400
committerHolden Rohrer <hr@hrhr.dev>2020-05-03 22:31:20 -0400
commit219c9587e147c2c240aa0646717c0d28c51129b6 (patch)
treebbdfce3b801deba4e5caac53117166ee2d018e58
parent9241489e9b5a9377973028b641710783651d7297 (diff)
xss-lock ignores sleep
xss-lock ignores sleep so that hibernate goes unnoticed because pass is typed at disk unencrypt anyway. i3 needs to lock on suspend
-rw-r--r--home/.config/i3/config2
-rw-r--r--home/.xinitrc2
2 files changed, 2 insertions, 2 deletions
diff --git a/home/.config/i3/config b/home/.config/i3/config
index 1aec065..f603809 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 systemctl hybrid-sleep
+bindsym $mod+x exec i3lock --nofork -i ~/bg/sc.png -k && systemctl hybrid-sleep
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
diff --git a/home/.xinitrc b/home/.xinitrc
index ec5ee5a..cee79e8 100644
--- a/home/.xinitrc
+++ b/home/.xinitrc
@@ -1,5 +1,5 @@
picom -b
-xss-lock -- i3lock --nofork -i ~/bg/sc.png -k &
+xss-lock --ignore-sleep -- i3lock --nofork -i ~/bg/sc.png -k &
setxkbmap -layout us -variant dvp -option caps:escape
feh --bg-fill --no-fehbg ~/bg/sc.png
st &