Mercurial > dotfiles
diff .chezmoiscripts/run_onchange_after_16-configure-ubuntu-gnome.sh.tmpl @ 1035:45d1a5571c52
feat: enable hibernation in menu
author | Zeger Van de Vannet <zeger@vandevan.net> |
---|---|
date | Thu, 13 Jun 2024 19:39:13 +0200 |
parents | 72744c944497 |
children |
line wrap: on
line diff
--- a/.chezmoiscripts/run_onchange_after_16-configure-ubuntu-gnome.sh.tmpl Sun Jun 09 18:19:18 2024 +0200 +++ b/.chezmoiscripts/run_onchange_after_16-configure-ubuntu-gnome.sh.tmpl Thu Jun 13 19:39:13 2024 +0200 @@ -7,5 +7,20 @@ dconf write /org/gnome/desktop/input-sources/xkb-options "['ctrl:nocaps']" fi + +sudo mkdir -p /etc/polkit-1/localauthority/50-local.d +sudo apt install polkitd-pkla + +cat <<EOF +[Re-enable hibernate by default in upower] +Identity=unix-user:* +Action=org.freedesktop.upower.hibernate +ResultActive=yes + +[Re-enable hibernate by default in logind] +Identity=unix-user:* +Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.login1.hibernate-ignore-inhibit +ResultActive=yes +EOF | sudo tee /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla {{- end }} {{- end }}