aboutsummaryrefslogtreecommitdiff
path: root/.config/yadm/root
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-03-02 20:49:25 +0100
committerlonkaars <loek@pipeframe.xyz>2024-03-02 20:49:25 +0100
commitf98d95f842529a497140e8713694e7001fc57059 (patch)
treedf2dcc0105d26ff4840a31fbd6b576a88c6c6054 /.config/yadm/root
parent9cd50d0dbdc9386d80701d668fe645ee80abbeae (diff)
add system config files to yadm
Diffstat (limited to '.config/yadm/root')
-rwxr-xr-x.config/yadm/root/bootstrap42
-rw-r--r--.config/yadm/root/etc/X11/xorg.conf.d/00-keyboard.conf6
-rw-r--r--.config/yadm/root/etc/X11/xorg.conf.d/50-mouse-acceleration.conf8
-rw-r--r--.config/yadm/root/etc/X11/xorg.conf.d/72-wacom-options.conf11
-rw-r--r--.config/yadm/root/etc/X11/xorg.conf.d/90-libinput-wacom.conf9
-rw-r--r--.config/yadm/root/etc/X11/xorg.conf.d/90-wacom-overrides.conf7
-rw-r--r--.config/yadm/root/etc/lightdm/lightdm-gtk-greeter.conf3
-rw-r--r--.config/yadm/root/etc/locale.conf2
-rw-r--r--.config/yadm/root/etc/locale.gen3
-rw-r--r--.config/yadm/root/etc/sudoers.d/10-wheel-nopasswd4
10 files changed, 95 insertions, 0 deletions
diff --git a/.config/yadm/root/bootstrap b/.config/yadm/root/bootstrap
new file mode 100755
index 0000000..ea9e20b
--- /dev/null
+++ b/.config/yadm/root/bootstrap
@@ -0,0 +1,42 @@
+#!/bin/sh
+cd "$(dirname "$0")"
+. ../lib/bootstrap
+
+wrong_call() {
+ cat << EOF
+run this script as root and with the username of your user account
+
+examples:
+ $ sudo $0 loek
+
+ $ sudo $0 "\$LOGNAME"
+
+ # $0 gert
+EOF
+ exit 1
+}
+
+# this script needs to run with root privileges
+[ $(id -u) -ne 0 ] && wrong_call
+# SETUP_USER must exist
+SETUP_USER="$1"
+getent passwd "$SETUP_USER" > /dev/null || wrong_call
+# SETUP_USER can not be root
+[ $(id -u "$SETUP_USER") -eq 0 ] && wrong_call
+
+begintask "copy system config files"
+s cp -r etc/. /etc
+endtask
+
+begintask "set pinentry program to pinentry-gnome3 (GTK 3)"
+s ln -sf pinentry-gnome3 "$(command -v pinentry)"
+endtask
+
+begintask "enabling services"
+s systemctl enable bluetooth ntpd cups
+endtask
+
+# TODO: pam-gnupg setup
+# TODO: enable pacman colors
+# TODO: add SETUP_USER to groups
+
diff --git a/.config/yadm/root/etc/X11/xorg.conf.d/00-keyboard.conf b/.config/yadm/root/etc/X11/xorg.conf.d/00-keyboard.conf
new file mode 100644
index 0000000..6c7cfad
--- /dev/null
+++ b/.config/yadm/root/etc/X11/xorg.conf.d/00-keyboard.conf
@@ -0,0 +1,6 @@
+Section "InputClass"
+ Identifier "default keyboard repeat speed"
+ MatchIsKeyboard "on"
+ Option "AutoRepeat" "250 40"
+EndSection
+
diff --git a/.config/yadm/root/etc/X11/xorg.conf.d/50-mouse-acceleration.conf b/.config/yadm/root/etc/X11/xorg.conf.d/50-mouse-acceleration.conf
new file mode 100644
index 0000000..199635d
--- /dev/null
+++ b/.config/yadm/root/etc/X11/xorg.conf.d/50-mouse-acceleration.conf
@@ -0,0 +1,8 @@
+Section "InputClass"
+ Identifier "default mouse acceleration"
+ Driver "libinput"
+ MatchIsPointer "yes"
+ Option "AccelProfile" "flat"
+ Option "AccelSpeed" "0"
+EndSection
+
diff --git a/.config/yadm/root/etc/X11/xorg.conf.d/72-wacom-options.conf b/.config/yadm/root/etc/X11/xorg.conf.d/72-wacom-options.conf
new file mode 100644
index 0000000..81aaf60
--- /dev/null
+++ b/.config/yadm/root/etc/X11/xorg.conf.d/72-wacom-options.conf
@@ -0,0 +1,11 @@
+Section "InputClass"
+ Identifier "default wacom pen area + double click interval"
+ MatchDriver "wacom"
+ MatchProduct "Pen"
+ NoMatchProduct "eraser"
+ NoMatchProduct "cursor"
+ Option "Area" "0 0 15200 4275"
+ Option "MapToOutput" "1920x1080+0+0"
+ Option "TapTime" "100"
+EndSection
+
diff --git a/.config/yadm/root/etc/X11/xorg.conf.d/90-libinput-wacom.conf b/.config/yadm/root/etc/X11/xorg.conf.d/90-libinput-wacom.conf
new file mode 100644
index 0000000..26643b8
--- /dev/null
+++ b/.config/yadm/root/etc/X11/xorg.conf.d/90-libinput-wacom.conf
@@ -0,0 +1,9 @@
+Section "InputClass"
+ Identifier "force libinput as driver for wacom tablet touchpad"
+ MatchUSBID "056a:*"
+ MatchDevicePath "/dev/input/event*"
+ MatchIsTouchpad "true"
+ Driver "libinput"
+ Option "NaturalScrolling" "true"
+EndSection
+
diff --git a/.config/yadm/root/etc/X11/xorg.conf.d/90-wacom-overrides.conf b/.config/yadm/root/etc/X11/xorg.conf.d/90-wacom-overrides.conf
new file mode 100644
index 0000000..f2e2bbf
--- /dev/null
+++ b/.config/yadm/root/etc/X11/xorg.conf.d/90-wacom-overrides.conf
@@ -0,0 +1,7 @@
+Section "InputClass"
+ Identifier "Wacom Tablet Overrides"
+ MatchDriver "wacom"
+ Option "AccelerationProfile" "5"
+ Option "ConstantDeceleration" "2"
+ Option "AdaptiveDeceleration" "3"
+EndSection
diff --git a/.config/yadm/root/etc/lightdm/lightdm-gtk-greeter.conf b/.config/yadm/root/etc/lightdm/lightdm-gtk-greeter.conf
new file mode 100644
index 0000000..8dae65c
--- /dev/null
+++ b/.config/yadm/root/etc/lightdm/lightdm-gtk-greeter.conf
@@ -0,0 +1,3 @@
+[greeter]
+theme-name=Skeuos-Blue-Dark
+indicators=~session;~power
diff --git a/.config/yadm/root/etc/locale.conf b/.config/yadm/root/etc/locale.conf
new file mode 100644
index 0000000..abfaa52
--- /dev/null
+++ b/.config/yadm/root/etc/locale.conf
@@ -0,0 +1,2 @@
+LANG=en_US.UTF-8
+LC_COLLATE=C
diff --git a/.config/yadm/root/etc/locale.gen b/.config/yadm/root/etc/locale.gen
new file mode 100644
index 0000000..6ab95e3
--- /dev/null
+++ b/.config/yadm/root/etc/locale.gen
@@ -0,0 +1,3 @@
+en_US.UTF-8 UTF-8
+ja_JP.UTF-8 UTF-8
+nl_NL.UTF-8 UTF-8
diff --git a/.config/yadm/root/etc/sudoers.d/10-wheel-nopasswd b/.config/yadm/root/etc/sudoers.d/10-wheel-nopasswd
new file mode 100644
index 0000000..46208d6
--- /dev/null
+++ b/.config/yadm/root/etc/sudoers.d/10-wheel-nopasswd
@@ -0,0 +1,4 @@
+# allow all users in `wheel` group to use sudo for all commands without prompt
+# for password
+%wheel ALL=(ALL) NOPASSWD: ALL
+