diff options
Diffstat (limited to 'archsetup')
| -rwxr-xr-x | archsetup | 23 |
1 files changed, 22 insertions, 1 deletions
@@ -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 @@ -1077,6 +1089,10 @@ EOF systemctl enable avahi-daemon.service >> "$logfile" 2>&1 || error_warn "$action" "$?" fi + pacman_install wsdd + action="enabling wsdd for Windows network discovery" && display "task" "$action" + systemctl enable wsdd.service >> "$logfile" 2>&1 || error_warn "$action" "$?" + pacman_install geoclue # geolocation service for location-aware apps action="enabling geoclue geolocation service" && display "task" "$action" systemctl enable geoclue.service >> "$logfile" 2>&1 || error_warn "$action" "$?" @@ -1387,6 +1403,9 @@ hyprland() { pacman_install brightnessctl # brightness control pacman_install pamixer # audio control pacman_install foot # native Wayland terminal + pacman_install nautilus # file manager + pacman_install sushi # nautilus spacebar file preview + aur_install nautilus-open-any-terminal # right-click "open in terminal" with configurable terminal } ### Display Server (conditional) @@ -1522,7 +1541,7 @@ desktop_environment() { action="Audio System" && display "subtitle" "$action" for software in alsa-utils pipewire wireplumber pipewire-pulse \ - pipewire-docs pamixer pulsemixer ffmpeg rtkit; do + pipewire-docs pamixer pulsemixer easyeffects ffmpeg rtkit; do pacman_install "$software" done # disable the pc speaker beep @@ -1870,6 +1889,8 @@ supplemental_software() { aur_install snore-git # sleep with feedback pacman_install thunar # file manager pacman_install gvfs-smb # SMB network share browsing in Thunar + pacman_install wsdd # WS-Discovery daemon (Windows network discovery) + pacman_install gvfs-wsdd # WS-Discovery backend for gvfs (browse Windows shares) aur_install topgrade # upgrade everything utility aur_install ueberzug # allows for displaying images in terminals aur_install warpinator # secure file transfers |
