niri: use wmenu, chromium script for wayland without X

This commit is contained in:
2026-05-19 21:39:18 +02:00
parent 226667afdd
commit fccbc60400
2 changed files with 7 additions and 1 deletions

View File

@@ -120,7 +120,7 @@ binds {
// Suggested binds for running programs: terminal, app launcher, screen locker.
Mod+T hotkey-overlay-title="Open a Terminal: alacritty" { spawn "kitty" "--single-instance" "--instance-group" "default"; }
Mod+D hotkey-overlay-title="Run an Application: fuzzel" { spawn "fuzzel"; }
Mod+D hotkey-overlay-title="Run an Application: wmenu" { spawn "wmenu-run" "-f" "HurmitNerdFont 10"; }
Super+Alt+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock"; }
Mod+Shift+T hotkey-overlay-title="Toggle theme" { spawn "lupan-set-theme" "toggle"; }

6
niri/bin/chromium Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/sh
if [ -n "$WAYLAND_DISPLAY" ]; then
exec /usr/bin/chromium --enable-features=UseOzonePlatform --ozone-platform=wayland "$@"
fi
exec /usr/bin/chromium "$@"