Compare commits
1 Commits
feat/per-h
...
feat/stow-
| Author | SHA1 | Date | |
|---|---|---|---|
| abdecd2b4a |
20
Makefile
20
Makefile
@@ -1,10 +1,15 @@
|
||||
# Define list of directories you want to stow
|
||||
CONFIG_DIRS := btop doom hypr kitty local nvim rclone starship tmux wallpapers waybar wireplumber wofi yazi zsh
|
||||
|
||||
# Local stow package directory (installed to ~/.local)
|
||||
STOW_LOCAL_DIR := local
|
||||
|
||||
all: stow_all
|
||||
wal -i ~/.config/wallpapers/green_yellow_forest.jpg -o ~/.config/waybar/launch.sh
|
||||
neofetch
|
||||
|
||||
.PHONY: all stow_all stow_local stow_rclone post_install_rclone clean
|
||||
|
||||
# Main target to handle stowing for all directories except rclone
|
||||
stow_all: $(filter-out rclone, $(CONFIG_DIRS))
|
||||
@echo "Cleaning broken symlinks in ~/.config..."
|
||||
@@ -21,6 +26,13 @@ stow_%:
|
||||
@echo "Stowing $*"
|
||||
stow -v -t $(HOME) $*
|
||||
|
||||
# Special target for the local stow package
|
||||
stow_local:
|
||||
@echo "Cleaning broken symlinks in ~/.local/share/applications..."
|
||||
find ~/.local/share/applications -xtype l -delete -print
|
||||
@echo "Stowing local package"
|
||||
stow -v -t $(HOME) $(STOW_LOCAL_DIR)
|
||||
|
||||
# Post-installation script for rclone (executed after stowing)
|
||||
post_install_rclone:
|
||||
@echo "Running post-installation script for rclone"
|
||||
@@ -35,3 +47,11 @@ stow_rclone:
|
||||
@echo "Stowing rclone"
|
||||
stow -v -t $(HOME) rclone
|
||||
@$(MAKE) post_install_rclone
|
||||
|
||||
# Unstow all packages
|
||||
clean:
|
||||
@echo "Unstowing all packages..."
|
||||
@for dir in $(CONFIG_DIRS); do \
|
||||
echo "Unstowing $$dir..."; \
|
||||
stow -v -D -t $(HOME) $$dir 2>/dev/null || true; \
|
||||
done
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
# Per-host overrides for lazyworkhorse (nixos-laptop)
|
||||
# The main hyprland.conf already covers this machine.
|
||||
# Add any lazyworkhorse-specific overrides here.
|
||||
@@ -1,26 +0,0 @@
|
||||
# Per-host overrides for uconsole-cm5 (Raspberry Pi CM5)
|
||||
# This file is sourced from the main hyprland.conf.
|
||||
# Override monitor, env, and input settings specific to the uConsole here.
|
||||
#
|
||||
# Recommended overrides:
|
||||
#
|
||||
# Monitor (single 720×1280 portrait display):
|
||||
# monitor = DSI-1, 720x1280, 0x0, 1
|
||||
#
|
||||
# No nvidia on this machine — remove nvidia env vars:
|
||||
# env = LIBVA_DRIVER_NAME,mesa
|
||||
# env = __GLX_VENDOR_LIBRARY_NAME,mesa
|
||||
# env = GBM_BACKEND,
|
||||
#
|
||||
# uConsole keyboard (compact layout):
|
||||
# kb_layout = us
|
||||
#
|
||||
# Smaller cursor on small screen:
|
||||
# env = XCURSOR_SIZE,16
|
||||
# env = HYPRCURSOR_SIZE,16
|
||||
|
||||
monitor = DSI-1, 720x1280, 0x0, 1
|
||||
|
||||
env = LIBVA_DRIVER_NAME,mesa
|
||||
env = __GLX_VENDOR_LIBRARY_NAME,mesa
|
||||
env = WLR_NO_HARDWARE_CURSOR,0
|
||||
@@ -423,8 +423,3 @@ bind = $mainMod, grave, exec, kitty --class btop btop
|
||||
bind = $mainMod, grave, exec, kitty --class ncspot ncspot
|
||||
bind = $mainMod, grave, exec, kitty --class ncpamixer ncpamixer
|
||||
bind = $mainMod, grave, exec, kitty --class bluetuith bluetuith
|
||||
|
||||
# Per-host overrides (monitor, env, input)
|
||||
# Each machine has its own override file in this directory.
|
||||
# Create a file named after $HOST (e.g., lazyworkhorse.conf, uconsole-cm5.conf)
|
||||
source = ~/.config/hypr/hosts/$HOST.conf
|
||||
|
||||
Reference in New Issue
Block a user