aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-05-03 12:33:33 -0400
committerHolden Rohrer <hr@hrhr.dev>2020-05-03 12:34:00 -0400
commit9241489e9b5a9377973028b641710783651d7297 (patch)
tree53b8f0435e700c8c297c0dcacab518fde1409bb8
parenta1776ca6cf875bd534197516f47362fbf8512eb3 (diff)
Reduced i3 suspend options because of logind
logind now hibernates on power button, i3 hybrid-sleeps on mod+x; logind also hybrid-sleeps on lid
-rw-r--r--home/.config/i3/config4
-rw-r--r--src/etc/systemd/logind.conf2
2 files changed, 3 insertions, 3 deletions
diff --git a/home/.config/i3/config b/home/.config/i3/config
index ea804d4..1aec065 100644
--- a/home/.config/i3/config
+++ b/home/.config/i3/config
@@ -24,9 +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 suspend
-bindsym $mod+Shift+x exec systemctl hibernate
-bindsym $mod+Mod1+x exec systemctl hybrid-sleep
+bindsym $mod+x exec 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/src/etc/systemd/logind.conf b/src/etc/systemd/logind.conf
new file mode 100644
index 0000000..990f437
--- /dev/null
+++ b/src/etc/systemd/logind.conf
@@ -0,0 +1,2 @@
+HandleLidSwitch=hybrid-sleep
+HandlePowerKey=hibernate