# ============================================================================= # machines/rigel.conf — rigel machine overlay (Gentoo laptop) # # Included LAST by the shared sway config; values here win. This file may # only shape rigel's hardware, session stack, and power behavior — NEVER # styling. Stowed by the repo `rigel` package (stow --adopt -t ~ rigel), # whose session scripts (session-daemons.sh, fibonacci, ppd-switch.sh, # veila-session-start.sh) live alongside in ~/.config/sway/. # ============================================================================= ### Output — rigel hardware # laptop panel at 1.5x; external Philips 346B1C at native scale. Specific # `output ` rules beat the shared `output *` wallpaper fallback. output eDP-1 scale 1.5 output "Philips Consumer Electronics Company PHL 346B1C 0x000039DC" scale 1 ### Touchpad — laptop anatomy, meaningless on a desktop input type:touchpad { tap enabled drag enabled dwt enabled } ### Autostart — rigel's session stack # pipewire + pipewire-pulse + wireplumber + mako + waybar under a per-session # supervisor instead of bare `exec`: on OpenRC, sway-`exec`ed daemons become # orphans of dead sessions (2026-10-27: three pipewire-pulse survivors kept # /run/user/$UID/pulse/native out of reach while this session's pipewire and # wireplumber were dead, and waybar aborted its whole bar on the failed # pa_context_connect() — the bar-every-moonlight-connect bug). exec_always /home/nicholas/.config/sway/session-daemons.sh # Alternate split direction for each new tiled window; the helper is # singleton-safe so Sway config reloads won't start duplicate listeners. # dwindle listener (shell + jq, was fibonacci.py) exec_always /home/nicholas/.config/sway/fibonacci # polkit authentication agent: without it, polkit has no way to prompt and # NetworkManager settings (nmtui/nmcli edits) fail with "Insufficient privileges". exec /usr/libexec/polkit-gnome-authentication-agent-1 exec_always /home/nicholas/.config/sway/veila-session-start.sh ### Lock and idle — veila lock, battery/AC timeouts, gamepad watch # Lock via Veila (Doom One theme and live battery include in ~/.config/veila); # ~/.config/swaylock/lock.sh remains the fallback. bindsym $mod+Escape exec /home/nicholas/.config/swayidle/lock.sh # Idle: screen off after 5 min on battery / 15 min on AC; suspend after # 15 min on battery / 60 min on AC. The event table (timeouts, resume, # before-sleep) lives in ~/.config/swayidle/config — the standard location # per swayidle(1) — see that file for the full rationale: # swayidle has no built-in AC/battery split, so the battery-only timeouts are # no-ops when plugged in (see idle-screen-off.sh / idle-suspend.sh) and the # always-timeouts fire on either power source. Lock runs before power-off and # before suspend, so waking/resuming requires auth. Also locks on suspend # (closing the lid makes elogind suspend this session). # # Controller gaming: swayidle only counts keyboard/touchpad/tablet events as # activity, so playing on a gamepad with a hand never off the pad still tripped # the 15-min timeout and locked the screen mid-game. gamepad-idle-watch.py # timestamps real stick/button input; idle-screen-off.sh / idle-suspend.sh read # it and skip locking/suspending while the pad is in use. Needs nicholas in the # 'input' group. exec_always /home/nicholas/.config/swayidle/gamepad-idle-restart.sh exec_always /home/nicholas/.config/swayidle/idle-start.sh ### Power profile — laptop concern, machine-scoped by design # (see ~/.config/sway/ppd-switch.sh for the auto/manual zones): power-saver = # battery mode when armed into auto, performance = the manual zone that # ppd-switch.sh never touches. Setting balanced/power-saver by hand re-enters # auto, effective from the next plug/unplug transition. bindsym --locked Ctrl+Alt+Shift+1 exec powerprofilesctl set power-saver bindsym --locked Ctrl+Alt+Shift+2 exec powerprofilesctl set balanced bindsym --locked Ctrl+Alt+Shift+3 exec powerprofilesctl set performance