niri: chromium script on wayland without X
This commit is contained in:
@@ -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: rofi" { spawn "rofi" "-show" "run" "-theme" "Arc-Dark"; }
|
||||
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
6
niri/bin/chromium
Executable 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 "$@"
|
||||
Reference in New Issue
Block a user