From 6011f90328d88a2c449442d6a31fef3614926ec9 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sat, 24 Jan 2026 13:21:01 -0600 Subject: fix(archsetup): bug fixes, locale support, and code improvements Bug fixes: - Initialize errors_encountered at script start (not in intro) - Capture correct exit code in retry_install loop - Add missing error_fatal parameters - Fix unclosed quote in error message - Quote variables in pacman_install/aur_install commands - Standardize done statements (remove trailing semicolons) New features: - Locale selection prompt with 8 common options + custom entry - Auto-derive wireless region from locale - Extract zfs-replicate to separate script file - Make archsetup repo URL configurable - Add MulticastDNS=no to avoid avahi conflict Code improvements: - Single STEPS array for show_status and main execution loop - Document security note for config file sourcing - Add explanatory comment for UFW VM behavior - Silence update-desktop-database warnings Config updates: - Add LOCALE and ARCHSETUP_REPO to example config Also adds Wayland/Hyprland desktop alternative to V2MOM roadmap. --- todo.org | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) (limited to 'todo.org') diff --git a/todo.org b/todo.org index 1a004f1..8a7cd76 100644 --- a/todo.org +++ b/todo.org @@ -655,6 +655,61 @@ Steps: Reference: Removed from archsetup on 2025-11-15 +** Method 6: Add Wayland/Hyprland Desktop Alternative + +Currently archsetup installs only Xorg with DWM. This method adds a Wayland-based alternative using Hyprland that preserves the same workflow and keybindings while modernizing the graphics stack. + +*Goal:* Post-install, user can choose between: +- Xorg + DWM + dmenu + st + sxhkd (current) +- Wayland + Hyprland + rofi + foot + polybar (new) + +*Why this matters:* +- Wayland is the future; Xorg maintenance is declining +- Hyprland offers smooth animations and modern compositor features +- Polybar provides more pleasant status bar aesthetics +- Same keybindings = same muscle memory, no relearning +- Choice allows gradual migration without losing fallback + +*** TODO [#A] Create Wayland/Hyprland desktop environment option +**** Requirements +- Same keybindings as DWM/sxhkd (translate config) +- Visual style matches current DWM setup initially +- Components: hyprland, rofi-wayland, foot, polybar +- Dotfiles: hyprland.conf, rofi config, foot.ini, polybar config + +**** Implementation considerations +- Keybinding translation: sxhkdrc → hyprland.conf format +- DWM window rules → Hyprland windowrules +- Polybar needs Hyprland IPC module for workspaces +- rofi-wayland vs rofi (X11) - may need separate configs +- foot terminal vs st - similar minimalist philosophy +- Screen locking: swaylock instead of slock +- Wallpaper: hyprpaper or swaybg instead of feh +- Screenshots: grim+slurp instead of maim + +**** User interface for selection +Options to explore: +- Config file option: DESKTOP=xorg or DESKTOP=wayland +- Interactive prompt during install +- Install both, choose at login (display manager or .xinitrc equivalent) +- Separate scripts: archsetup-xorg, archsetup-wayland + +**** Phased approach +1. Create working Hyprland config with matching keybindings +2. Test on current system manually +3. Add to dotfiles/ +4. Add archsetup logic to install Wayland stack +5. Implement user selection mechanism +6. Document differences and gotchas + +*** TODO [#B] Write detailed Hyprland implementation plan +Create docs/hyprland-implementation-plan.org with: +- Full keybinding mapping from sxhkdrc +- Package list comparison (Xorg vs Wayland) +- Config file locations and formats +- Testing checklist +- Rollback strategy + * Obstacles ** Limited Security Knowledge -- cgit v1.2.3