From ef8b2e1fcd216ce6aed21f11e011246b033a9138 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Wed, 28 Jan 2026 06:18:25 -0600 Subject: fix(hyprland): add persistent logging and fix waybar/script issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add persistent logging for waybar, dunst, hypridle, gammastep to ~/.local/var/log/ - Create start-hyprland wrapper script for Hyprland logging - Fix waybar-layout and toggle-scratchpad to auto-detect Hyprland socket - Add swap-icon-label: false to waybar group, remove height setting - Fix GTK CSS margin units (1 → 1px) to silence deprecation warning - Add battery detection in archsetup to exclude module on desktops - Update cursor theme to Bibata-Modern-Ice size 24 --- archsetup | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'archsetup') diff --git a/archsetup b/archsetup index 63e53ec..2b23a71 100755 --- a/archsetup +++ b/archsetup @@ -833,6 +833,17 @@ user_customizations() { action="linking hyprland dotfiles" && display "task" "$action" (cd "$dotfiles_dir" && stow --target="/home/$username" --no-folding --adopt hyprland \ >> "$logfile" 2>&1 ) || error_warn "$action" "$?" + + # Remove battery module from waybar config on desktops (no battery) + if ! ls /sys/class/power_supply/BAT* &>/dev/null; then + action="removing waybar battery module (no battery detected)" && display "task" "$action" + waybar_config="/home/$username/.config/waybar/config" + # Remove "battery" from sysmonitor modules array and fix trailing comma + sed -i '/"battery"$/d' "$waybar_config" + sed -i 's/"custom\/disk",/"custom\/disk"/' "$waybar_config" + # Remove the battery config block + sed -i '/"battery": {/,/^ },$/d' "$waybar_config" + fi fi # Refresh font cache for any fonts in dotfiles @@ -870,6 +881,7 @@ user_customizations() { mkdir -p -m 751 "/home/$username/pictures/screenshots" mkdir -p -m 751 "/home/$username/videos" mkdir -p -m 751 "/home/$username/vms" + mkdir -p -m 751 "/home/$username/.local/var/log" chown -R "$username": "/home/$username" mkdir -p -m 751 /media/backup -- cgit v1.2.3