#!/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