From 219c9587e147c2c240aa0646717c0d28c51129b6 Mon Sep 17 00:00:00 2001
From: Holden Rohrer
Date: Sun, 3 May 2020 22:31:18 -0400
Subject: 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
---
home/.config/i3/config | 2 +-
home/.xinitrc | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
(limited to 'home')
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 &
--
cgit