summaryrefslogtreecommitdiff
path: root/archsetup
diff options
context:
space:
mode:
Diffstat (limited to 'archsetup')
-rwxr-xr-xarchsetup41
1 files changed, 32 insertions, 9 deletions
diff --git a/archsetup b/archsetup
index 0779d2b..2eae786 100755
--- a/archsetup
+++ b/archsetup
@@ -688,7 +688,7 @@ prerequisites() {
for software in linux-firmware wireless-regdb base-devel ca-certificates \
chrony coreutils curl git go openssh python \
- stow tar vi zsh; do
+ stow tar vim zsh; do
pacman_install "$software"
done
@@ -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" "$?"
@@ -1251,6 +1267,7 @@ EOF
# Btrfs: Install snapper for snapshot management
display "task" "btrfs detected - installing snapper and grub-btrfs"
pacman_install snapper
+ pacman_install snap-pac # auto-snapshot on pacman transactions
pacman_install grub-btrfs
# inotify-tools is an optional dep of grub-btrfs but required for grub-btrfsd daemon
pacman_install inotify-tools
@@ -1378,7 +1395,9 @@ hyprland() {
pacman_install cpio # hyprpm (plugin manager) dependency
pacman_install waybar # status bar
pacman_install fuzzel # app launcher (native Wayland, pinentry support)
- pacman_install swww # wallpaper
+ pacman_install swww # wallpaper daemon
+ aur_install waypaper # wallpaper GUI (swww frontend)
+ aur_install wlogout-git # logout menu
pacman_install grim # screenshot
pacman_install slurp # region select
pacman_install satty # screenshot annotation
@@ -1387,6 +1406,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 +1544,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
@@ -1557,12 +1579,12 @@ desktop_environment() {
# Command Line Utilities
action="Command Line Utilities" && display "subtitle" "$action"
- for software in htop mc ncdu tmux fzf zip unzip atool wget detox \
- lsof usbutils moreutils; do
+ for software in htop btop mc ncdu tmux fzf zip unzip atool wget detox \
+ lsof usbutils moreutils nvtop s-tui wavemon bandwhich; do
pacman_install "$software"
done
- for software in task-spooler-cpu speedtest-go-bin gotop-bin rar; do
+ for software in task-spooler-cpu speedtest-go-bin rar; do
aur_install "$software"
done
@@ -1608,7 +1630,7 @@ desktop_environment() {
action="UI Theme" && display "subtitle" "$action"
- for software in picom lxappearance gnome-themes-extra; do
+ for software in picom lxappearance gnome-themes-extra adwaita-qt5 adwaita-qt6; do
pacman_install "$software"
done
@@ -1868,8 +1890,9 @@ supplemental_software() {
aur_install insync # Google Drive sync client
aur_install nsxiv # image viewer
aur_install snore-git # sleep with feedback
- pacman_install thunar # file manager
- pacman_install gvfs-smb # SMB network share browsing in Thunar
+ pacman_install gvfs-smb # SMB network share browsing in Nautilus
+ 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