From 9241489e9b5a9377973028b641710783651d7297 Mon Sep 17 00:00:00 2001 From: Holden Rohrer Date: Sun, 3 May 2020 12:33:33 -0400 Subject: 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 --- home/.config/i3/config | 4 +--- src/etc/systemd/logind.conf | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 src/etc/systemd/logind.conf 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 -- cgit