diff --git a/modules/01-packages.sh b/modules/01-packages.sh index 99eb989..6f92736 100755 --- a/modules/01-packages.sh +++ b/modules/01-packages.sh @@ -22,6 +22,7 @@ PACKAGES=( zsh-completions btop pkgfile + inetutils # Add more packages here ) diff --git a/modules/02-symlinks.sh b/modules/02-symlinks.sh index f48d4b0..4455589 100755 --- a/modules/02-symlinks.sh +++ b/modules/02-symlinks.sh @@ -39,12 +39,17 @@ if [ -d "$CONFIG_DIR" ]; then # Device-specific symlinks for Hyprland and Waybar if [ -n "$DOTFILES_DEVICE" ]; then - # Hyprland monitors - ln -sf "$CONFIG_DIR/hypr/includes/monitors-$DOTFILES_DEVICE.conf" "$CONFIG_DIR/hypr/includes/monitors.conf" - echo "Linked monitors-$DOTFILES_DEVICE.conf as monitors.conf" - # Hyprland input - ln -sf "$CONFIG_DIR/hypr/includes/input-$DOTFILES_DEVICE.conf" "$CONFIG_DIR/hypr/includes/input.conf" - echo "Linked input-$DOTFILES_DEVICE.conf as input.conf" + # Hyprland monitors (hostname-based) + HOSTNAME=$(hostname) + if [ -f "$CONFIG_DIR/hypr/includes/monitors-$HOSTNAME.conf" ]; then + ln -sf "$CONFIG_DIR/hypr/includes/monitors-$HOSTNAME.conf" "$CONFIG_DIR/hypr/includes/monitors.conf" + echo "Linked monitors-$HOSTNAME.conf as monitors.conf" + else + echo "Warning: No monitors config for hostname $HOSTNAME" + fi + # Hyprland hypridle + ln -sf "$CONFIG_DIR/hypr/includes/hypridle-$DOTFILES_DEVICE.conf" "$CONFIG_DIR/hypr/hypridle.conf" + echo "Linked hypridle-$DOTFILES_DEVICE.conf as hypridle.conf" # Waybar config ln -sf "$CONFIG_DIR/waybar/config-$DOTFILES_DEVICE" "$CONFIG_DIR/waybar/config" echo "Linked config-$DOTFILES_DEVICE as waybar config"