view .chezmoiscripts/run_onchange_after_15-configure-ubuntu-gnome.sh.tmpl @ 1084:0ec3bf0cdf2f draft

feat: set some helix config options explicitly
author Zeger Van de Vannet <zeger@vandevan.net>
date Mon, 03 Mar 2025 09:07:52 +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 }}