aboutsummaryrefslogtreecommitdiff
path: root/.config/yadm/root/bootstrap
diff options
context:
space:
mode:
Diffstat (limited to '.config/yadm/root/bootstrap')
-rwxr-xr-x.config/yadm/root/bootstrap12
1 files changed, 11 insertions, 1 deletions
diff --git a/.config/yadm/root/bootstrap b/.config/yadm/root/bootstrap
index b244471..f8b59fb 100755
--- a/.config/yadm/root/bootstrap
+++ b/.config/yadm/root/bootstrap
@@ -2,6 +2,12 @@
cd "$(dirname "$0")"
. ../lib/bootstrap
+# never use custom locale in TTY/logs
+export LANG=C
+
+alias s=silent
+
+
wrong_call() {
cat << EOF
run this script as root and with the username of your user account
@@ -25,7 +31,7 @@ s getent passwd "$SETUP_USER" || wrong_call
[ $(id -u "$SETUP_USER") -eq 0 ] && wrong_call
begintask "copy system config files"
-s cp -r etc/. /etc
+s cp -r --preserve=mode,timestamps etc/. /etc
endtask
PINENTRY="pinentry-gnome3"
@@ -72,6 +78,10 @@ s grep '^#\s*\<Color\>' /etc/pacman.conf && (
endtask
)
+begintask "set autorandr to run at lightdm display startup"
+s augtool set '/files/etc/lightdm/lightdm.conf/Seat:*/display-setup-script' '/etc/lightdm/autorandr-change'
+endtask
+
[ "$(getent passwd "$SETUP_USER" | cut -d: -f7 | xargs basename)" != "zsh" ] && (
begintask "set user shell to zsh"
s chsh -s "$(command -v zsh)" "$SETUP_USER"