Mercurial > dotfiles
view .chezmoiscripts/run_onchange_after_16-configure-ubuntu-gnome.sh.tmpl @ 1044:fb4670b7526a
feat: replicate push-line function from zsh
source: https://github.com/fish-shell/fish-shell/issues/7800#issuecomment-792915764
author | Zeger Van de Vannet <zeger@vandevan.net> |
---|---|
date | Thu, 02 May 2024 08:48:33 +0200 |
parents | 45d1a5571c52 |
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 }}