From c957034dfb55e8cd087d2f39def5aa9b25a58cf2 Mon Sep 17 00:00:00 2001 From: har0ke Date: Sun, 19 Jan 2025 19:47:57 +0100 Subject: [PATCH] Split "workstation" dotfiles into "extra" and "system" subgroups --- common.sh | 5 +++++ install_dotfiles.sh | 11 ++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/common.sh b/common.sh index 4d7dd40..3cf9691 100644 --- a/common.sh +++ b/common.sh @@ -5,6 +5,7 @@ CORE=0 DEV=0 EXTRA=0 WORKSTATION=0 +SYSTEM=0 if [[ -n "$DISPLAY" ]] && command -v meld &> /dev/null; @@ -43,6 +44,9 @@ while true; do -w | --workstation) WORKSTATION=1 ;; + -s | --system) + SYSTEM=1 + ;; --) shift break @@ -56,4 +60,5 @@ if [ "${ALL}" -eq 1 ]; then WORKSTATION=1 EXTRA=1 DEV=1 + SYSTEM=1 fi diff --git a/install_dotfiles.sh b/install_dotfiles.sh index 1286deb..9fa4815 100755 --- a/install_dotfiles.sh +++ b/install_dotfiles.sh @@ -134,17 +134,22 @@ if [ "${WORKSTATION}" -eq 1 ]; then install .xinitrc install .config/i3/config install .config/i3status-rust/config.toml +fi + +if [ "${SYSTEM}" -eq 1 ] && [ "${WORKSTATION}" -eq 1 ]; then install -r etc/modprobe.d/nobeep.conf install -r etc/systemd/logind.conf install -r etc/acpi/handler.sh install -r etc/acpi/toggle_mute.sh install -r etc/acpi/volume.sh - install -r usr/share/X11/xorg.conf.d/40-libinput.conf + install -r usr/share/X11/xorg.conf.d/40-libinput.confxml + install -r etc/udev/rules.d/backlight.rules +fi +if [ "${EXTRA}" -eq 1 ] && [ "${WORKSTATION}" -eq 1 ]; then install .config/darktable/darktablerc install -r usr/share/darktable/noiseprofiles.json - install -r usr/share/lensfun/version_1/compact-sony.xml - install -r etc/udev/rules.d/backlight.rules + install -r usr/share/lensfun/version_1/compact-sony. fi if [ "${DEV}" -eq 1 ] && [ "${WORKSTATION}" -eq 1 ]; then