blob: eaa37d2e81fac14dbbbf7adaa7860dfe247dee02 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/usr/bin/env bash
set -e
# TODO: Move settings to .chezmoi.toml.tmpl
dconf write /org/gnome/desktop/interface/color-scheme "'prefer-dark'"
{{ if eq .chezmoi.username "sophie" }}
dconf write /org/gnome/desktop/wm/preferences/button-layout "':appmenu,close'"
{{ else }}
dconf write /org/gnome/desktop/wm/preferences/button-layout "'close,appmenu:'"
{{ end }}
{{ if and (lookPath "systemd-detect-virt") (ne (output "systemd-detect-virt") "none") }}
dconf write /org/gnome/desktop/session/idle-delay "uint32 0"
dconf write /org/gnome/settings-daemon/plugins/power/sleep-inactive-ac-type "'nothing'"
{{ end }}
{{ if and (lookPath "hostnamectl") (eq (output "hostnamectl" "chassis") "laptop" "vm") }}
dconf write /org/gnome/desktop/peripherals/mouse/natural-scroll "true"
dconf write /org/gnome/desktop/peripherals/touchpad/two-finger-scrolling-enabled "true"
{{ end }}
|