Add resume device

This commit is contained in:
Benjamin Bädorf 2022-05-01 17:29:21 +02:00
parent 4b828cd91f
commit 0c4987ede1
No known key found for this signature in database
GPG key ID: 4406E80E13CD656C
2 changed files with 15 additions and 11 deletions

View file

@ -23,7 +23,7 @@ bindsym $mod+F5 exec $term -e 'mocp -C $XDG_CONFIG_DIR/mocp/config'
bindsym $mod+Shift+m exec mu
bindsym $mod+Shift+h exec xdg-open /usr/share/doc/manjaro/i3_help.pdf
# Screenshofts
# Screenshots
bindsym $mod+Ctrl+p exec grim -g "$(slurp -d -b \#ffffff11)" ~/Pictures/Screenshots/$(date +%Y%m%d_%Hh%Mm%Ss)_grim.png
bindsym $mod+Shift+p exec grim ~/Pictures/Screenshots/$(date +%Y%m%d_%Hh%Mm%Ss)_grim.png
bindsym $mod+Ctrl+f exec "( pkill flameshot || true && flameshot & ) && ( sleep 0.5s && flameshot gui )"

View file

@ -10,18 +10,22 @@ in
description = "Feature flag for iso builds";
};
config = {
boot = {
# Enable plymouth for better experience of booting
boot.plymouth.enable = true;
plymouth.enable = true;
# Mount / luks device in initrd
# Allow fstrim to work on it.
# The ! makes this enabled by default
boot.initrd = mkIf (!cfg.iso-options.enable) {
initrd = mkIf (!cfg.iso-options.enable) {
luks.devices."cryptroot" = {
allowDiscards = true;
};
};
boot.loader.systemd-boot.enable = true;
resumeDevice = "/swapfile";
loader.systemd-boot.enable = true;
};
};
}