diff options
| author | bozo.kopic <bozo@kopic.xyz> | 2026-10-23 23:45:35 +0200 |
|---|---|---|
| committer | bozo.kopic <bozo@kopic.xyz> | 2026-10-23 23:45:35 +0200 |
| commit | 7ba2f3494fbf93c06364858d6bddd4aefc9924c7 (patch) | |
| tree | 16c66392edef4b2625a7f93c81b180d38e047270 /niri/run-niri.sh | |
| parent | bb2dae2aaafab0bb7f1c1d03dc6ebe10deee0b24 (diff) | |
.
Diffstat (limited to 'niri/run-niri.sh')
| -rwxr-xr-x | niri/run-niri.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/niri/run-niri.sh b/niri/run-niri.sh new file mode 100755 index 0000000..eae7cec --- /dev/null +++ b/niri/run-niri.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +exec >~/.niri.log 2>&1 + +export QT_QPA_PLATFORM=wayland + +if ( command -v systemctl && systemctl --user is-system-running ) >/dev/null; then + exec niri-session + +elif pgrep -U $(id -u) dbus-daemon >/dev/null; then + exec niri --session + +else + exec dbus-run-session -- niri --session +fi |
