Split "workstation" dotfiles into "extra" and "system" subgroups

This commit is contained in:
har0ke 2025-01-19 19:47:57 +01:00
parent cbcf253aeb
commit c957034dfb
2 changed files with 13 additions and 3 deletions

View File

@ -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

View File

@ -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