diff options
author | Holden Rohrer <hr@hrhr.dev> | 2020-04-24 18:28:22 -0400 |
---|---|---|
committer | Holden Rohrer <hr@hrhr.dev> | 2020-04-24 18:28:22 -0400 |
commit | 5c9320ddf1badbf59807c8442ff2ed0f9a6f1d7b (patch) | |
tree | 5e43a3d25a2d310c83fb428f66239a78f584563c | |
parent | 14f1c41916deed3a4768fc7052efcea308e34b98 (diff) |
added hibernation support
-rw-r--r-- | home/.config/i3/config | 6 | ||||
-rw-r--r-- | src/etc/default/grub.orig | 4 | ||||
-rw-r--r-- | src/etc/mkinitcpio.conf | 2 |
3 files changed, 7 insertions, 5 deletions
diff --git a/home/.config/i3/config b/home/.config/i3/config index 15e55f4..bfa1b48 100644 --- a/home/.config/i3/config +++ b/home/.config/i3/config @@ -22,6 +22,10 @@ bindsym $scr exec xrandr --output HDMI-2 --mode 1920x1080 bindsym Shift+$scr exec xrandr --output HDMI-2 --off bindsym $mod+$scr exec xrandr --output HDMI-2 --auto --right-of eDP-1 +# Hibernation +bindsym $mod+x exec systemctl suspend +bindsym $mod+Shift+x exec systemctl hibernate + # 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 @@ -179,5 +183,3 @@ hide_edge_borders true for_window [class=".*"] border pixel 0 gaps inner 20 gaps outer -20 - -bindsym $mod+q exec systemctl suspend diff --git a/src/etc/default/grub.orig b/src/etc/default/grub.orig index bc56099..99bbdcf 100644 --- a/src/etc/default/grub.orig +++ b/src/etc/default/grub.orig @@ -1,10 +1,10 @@ # GRUB boot loader configuration GRUB_DEFAULT=0 -GRUB_TIMEOUT=1 +GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR="Arch" GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet" -GRUB_CMDLINE_LINUX="cryptdevice=UUID=%%UUID%%:cryptlvm root=/dev/Crypt/root" +GRUB_CMDLINE_LINUX="cryptdevice=UUID=%%UUID%%:cryptlvm root=/dev/Crypt/root resume=/dev/Crypt/swap" # Preload both GPT and MBR modules so that they are not missed GRUB_PRELOAD_MODULES="part_gpt part_msdos" diff --git a/src/etc/mkinitcpio.conf b/src/etc/mkinitcpio.conf index ed06478..619e42f 100644 --- a/src/etc/mkinitcpio.conf +++ b/src/etc/mkinitcpio.conf @@ -4,4 +4,4 @@ BINARIES=() FILES=() -HOOKS=(base udev autodetect keyboard keymap consolefont modconf block encrypt lvm2 filesystems fsck) +HOOKS=(base udev autodetect keyboard keymap consolefont modconf block encrypt lvm2 filesystems resume fsck) |