comparison .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
comparison
equal deleted inserted replaced
1074:8ea059eef6af 1077:04ad0b576298
1 {{ if eq .chezmoi.os "linux" -}}
2 {{ if eq .chezmoi.osRelease.name "Ubuntu" -}}
3 #!/usr/bin/env bash
4
5 if [ -x "$(command -v dconf)" ]; then
6
7 dconf write /org/gnome/desktop/input-sources/xkb-options "['ctrl:nocaps']"
8
9 fi
10
11 sudo mkdir -p /etc/polkit-1/localauthority/50-local.d
12 sudo apt install polkitd-pkla
13
14 cat <<EOF
15 [Re-enable hibernate by default in upower]
16 Identity=unix-user:*
17 Action=org.freedesktop.upower.hibernate
18 ResultActive=yes
19
20 [Re-enable hibernate by default in logind]
21 Identity=unix-user:*
22 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
23 ResultActive=yes
24 EOF | sudo tee /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
25 {{- end }}
26 {{- end }}