view .chezmoiscripts/run_onchange_after_15-configure-ubuntu-gnome.sh.tmpl @ 1083:6a132d60cb29 draft

feat: update to fish 4.0.0
author Zeger Van de Vannet <zeger@vandevan.net>
date Sat, 01 Mar 2025 18:34:55 +0100
parents 04ad0b576298
children
line wrap: on
line source

{{ if eq .chezmoi.os "linux" -}}
{{ if eq .chezmoi.osRelease.name "Ubuntu" -}}
#!/usr/bin/env bash

if [ -x "$(command -v dconf)" ]; then

	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 }}