The picker blocks on user input for however long they take. In that window niri can destroy a dynamic workspace (its last window closed) and renumber every later one down, so the pre-pick current["idx"] can point at the wrong workspace by the time move-window-to-workspace runs — restoring to the wrong place. The stashed window itself can also have closed in the meantime, in which case the move/focus calls would silently no-op. main() now re-reads workspaces/windows after pick() returns, recomputes the current workspace, and confirms the chosen window still exists before acting; each bails with a notify and the documented exit code otherwise. Adds window_exists() as a pure, tested helper alongside the existing pure functions. Also: clarify the focus=false comment in niri/config.kdl (it read as if focus=false caused the problem it actually prevents), and note in the design doc's Out of scope section that the stash's index-1 pinning is per-output, so a second monitor would need its own analysis of the Mod+1..9 offset.
Dotfiles (Niri + Wayland)
A personal Wayland desktop configuration centered around the Niri tiling compositor.
| Area | Tool |
|---|---|
| Compositor | niri |
| Bar | waybar |
| Terminal | alacritty |
| Shell | fish + starship |
| Launcher | wofi |
| Notifications | mako |
| Lockscreen | hyprlock |
| Login/greeter | greetd + regreet |
| Wallpaper | awww |
| Screenshots | grim + slurp + satty |
| Clipboard | cliphist |
| Theme | Tomorrow Night (GTK: Materia-dark, icons: Papirus) |
Everything is symlinked into ~/.config via install.sh, with packages listed in packages.txt.
Setup
git clone git@github.com:YOURNAME/dotfiles.git
cd dotfiles
./install.sh
One-time hibernation enablement
Hibernation requires a persistent swap file, kernel resume parameters, and a regenerated UKI. Run once, then reboot:
sudo bash scripts/enable-hibernation.sh
After reboot, systemctl hibernate will work, and lid close / 30-min idle will suspend-then-hibernate per the tracked logind config.
One-time NetworkManager activation
After install.sh deploys the NetworkManager config, swap from systemd-networkd to NetworkManager (one-time, persistent across reboots):
sudo systemctl disable --now systemd-networkd
sudo systemctl enable --now NetworkManager
Wifi will drop for a few seconds and reconnect via iwd's stored profiles. If reconnection fails, re-enter the wifi password via nm-applet (tray icon) or networkmanager_dmenu (waybar network widget click).
One-time fingerprint setup
After install.sh installs fprintd, enroll a finger and wire it into the sudo + lockscreen auth stacks:
fprintd-enroll # interactive; touch the reader as prompted
sudo bash scripts/enable-fingerprint.sh # idempotent — safe to re-run
Test with sudo true (should prompt for fingerprint) or Mod+Shift+E to lock + touch the reader.
To enroll additional fingers: fprintd-enroll -f left-thumb (or right-thumb, left-index, etc.).