Mercurial > dotfiles
diff .chezmoiscripts/run_onchange_after_15-configure-ubuntu-gnome.sh.tmpl @ 1077:04ad0b576298
fix: make sure mise is installed before mercurial
author | Zeger Van de Vannet <zeger@vandevan.net> |
---|---|
date | Sat, 22 Feb 2025 10:13:14 +0100 |
parents | .chezmoiscripts/run_onchange_after_16-configure-ubuntu-gnome.sh.tmpl@45d1a5571c52 |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.chezmoiscripts/run_onchange_after_15-configure-ubuntu-gnome.sh.tmpl Sat Feb 22 10:13:14 2025 +0100 @@ -0,0 +1,26 @@ +{{ 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 }}