summary refs log tree commit diff
path: root/run_gnome_tweaks.sh.tmpl
blob: b5d440effecee718460df471b7170d2dd01b0cb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env bash

set -e

dconf write /org/gnome/desktop/interface/color-scheme "'prefer-dark'"
dconf write /org/gnome/desktop/wm/preferences/button-layout "'{{ .gnome.buttonLayout }}'"

if systemd-detect-virt &>/dev/null; then
  dconf write /org/gnome/desktop/session/idle-delay "uint32 0"
  dconf write /org/gnome/settings-daemon/plugins/power/sleep-inactive-ac-type "'nothing'"
fi

if [[ "$(hostnamectl chassis 2>/dev/null)" =~ ^(vm|laptop)$ ]]; then
  dconf write /org/gnome/desktop/peripherals/mouse/natural-scroll "true"
  dconf write /org/gnome/desktop/peripherals/touchpad/two-finger-scrolling-enabled "true"
fi