diff options
| author | Nick Moore <nicholasvmoore@gmail.com> | 2026-11-07 09:20:22 -0600 |
|---|---|---|
| committer | Nick Moore <nicholasvmoore@gmail.com> | 2026-11-07 09:20:22 -0600 |
| commit | 6c4039aebbe7ec25f47cb4623e44b96373e9e6e5 (patch) | |
| tree | 6b29ac15408e586c41d6bc91561294709c87a962 /rigel/.config/sway/machines/rigel.conf | |
| parent | 34abcb44caf7266ce40063daca05a2a06f1b26c7 (diff) | |
Track sway (shared + rigel machine overlay), replace fibonacci with dwm-dwindle listener
- sway package: shared config (styling, all muscle-memory binds, no exec
lines) including ~/.config/sway/machines/*.conf overlays included LAST;
floating_windows + machines/README contract; sway/AGENTS.md doctrine
- rigel package: machine overlay (outputs, touchpad, session stack, power
bindings) + session scripts now stow-managed; fibonacci.py replaced by
a POSIX sh+jq dwindle listener (dwm dwindle geometry, --monitor
subscription, mark+move re-home, flock singleton); machines/rigel.conf
exec line updated to the new path
- validated in a headless nested sway against a literal port of
fibonacci.c: five- and seven-window trees plus refocus-before-spawn
all match dwm's rects (modulo the bar offset)
Diffstat (limited to 'rigel/.config/sway/machines/rigel.conf')
| -rw-r--r-- | rigel/.config/sway/machines/rigel.conf | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/rigel/.config/sway/machines/rigel.conf b/rigel/.config/sway/machines/rigel.conf new file mode 100644 index 0000000..e653985 --- /dev/null +++ b/rigel/.config/sway/machines/rigel.conf @@ -0,0 +1,72 @@ +# ============================================================================= +# 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 <name>` 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 |
