From 44c9b11c9dd6e80b533833f1e6880f52a4e2a14d Mon Sep 17 00:00:00 2001 From: Hermes Date: Wed, 20 May 2026 14:29:07 -0400 Subject: [PATCH 1/2] feat: add disk-monitor daemon autostart to Hyprland config --- hypr/.config/hypr/hyprland.conf | 1 + waybar/.config/waybar/style.css | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/hypr/.config/hypr/hyprland.conf b/hypr/.config/hypr/hyprland.conf index 9982a2f..40d5ff9 100644 --- a/hypr/.config/hypr/hyprland.conf +++ b/hypr/.config/hypr/hyprland.conf @@ -77,6 +77,7 @@ exec-once = hypridle exec-once = hyprlock exec-once = /usr/bin/emacs --daemon exec-once = dbus-update-activation-environment --systemd HYPRLAND_INSTANCE_SIGNATURE +exec-once = $HOME/.config/waybar/scripts/disk-monitor.sh --daemon ############################# ### ENVIRONMENT VARIABLES ### diff --git a/waybar/.config/waybar/style.css b/waybar/.config/waybar/style.css index a916161..d154dfc 100644 --- a/waybar/.config/waybar/style.css +++ b/waybar/.config/waybar/style.css @@ -213,6 +213,28 @@ tooltip label { } /* custom modules */ +#custom-disk-monitor { + margin: 0px 0px 0px 5px; + padding: 1px 8px 0px 8px; + font-size: 16px; + color: @text; + border-radius: 5px; + background-color: @set; +} +#custom-disk-monitor.warning { + background-color: #ff9a3c; + color: #FFFFFF; +} +#custom-disk-monitor.critical { + background-color: #dc2f2f; + color: #FFFFFF; + animation-name: blink; + animation-duration: 0.5s; + animation-timing-function: linear; + animation-iteration-count: infinite; + animation-direction: alternate; +} + #custom-exit { margin: 0px 18px 0px 5px; padding: 0px; -- 2.49.1 From bd57909664fe25c5a4c10648a7292fd464d9b069 Mon Sep 17 00:00:00 2001 From: Hermes Date: Wed, 20 May 2026 14:31:04 -0400 Subject: [PATCH 2/2] feat: add proper local stow package targets to Makefile - Add STOW_LOCAL_DIR variable explicitly defining the local package - Add dedicated stow_local target with cleanup (follows rclone pattern) - Add .PHONY declaration for all targets - Add clean target for unstowing all packages --- Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Makefile b/Makefile index e7de0fa..265bd2c 100644 --- a/Makefile +++ b/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 -- 2.49.1