summaryrefslogtreecommitdiff
path: root/archsetup
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-01-28 06:18:25 -0600
committerCraig Jennings <c@cjennings.net>2026-01-28 06:18:25 -0600
commitef8b2e1fcd216ce6aed21f11e011246b033a9138 (patch)
tree5034869cb702b6d2830beb905d840060d4eff355 /archsetup
parentc42e4829181fbe65985b467c23ae41351b5aef9a (diff)
fix(hyprland): add persistent logging and fix waybar/script issues
- 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
Diffstat (limited to 'archsetup')
-rwxr-xr-xarchsetup12
1 files changed, 12 insertions, 0 deletions
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