funman300 be1fa77c6e niri: propagate XDG_CURRENT_DESKTOP to systemd-user and dbus
The niri 'environment' block only affects processes niri spawns
directly. Apps launched via dbus activation or systemd-user (most
.desktop launches go through one of these) get systemd-user's env,
which still has bare 'niri' — set by niri-session BEFORE niri itself
runs.

Adding a one-shot spawn-at-startup that re-imports XDG_CURRENT_DESKTOP
from niri's env into both systemd-user and dbus-activation, after
niri starts. Future dbus-activated apps will see niri:GNOME.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-13 13:35:23 -07:00

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 gtklock
Login/greeter greetd + regreet
Wallpaper swww
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.

S
Description
No description provided
Readme 279 KiB
Languages
Shell 74.7%
CSS 25.3%