I am using wofi
on an arch-linux
system with swaywm
.
I want to use the Wofi drun
menu to launch the Brave Browser. Sadly Brave doesn't support wayland
by default so I have to add these parameters to make it work
--enable-features=UseOzonePlatform --ozone-platform=wayland
Is there a way to configure wofi
to call
/usr/bin/brave --enable-features=UseOzonePlatform --ozone-platform=wayland
instead of just /usr/bin/brave
?
If you set Wofi to run with drun
so it uses .desktop
files you can create a local desktop file with the parameters you need. This may be different for you based on your Linux distribution, this answer is based on Arch.
~/.config/sway/config
) for the right wofi show option, for example: set $menu wofi --style ~/.config/wofi/style.css --show drun
~/.local/share
cp /usr/share/applications/obsidian.desktop ~/.local/share/applications
in this example I use the Obsidian desktop fileExec=/usr/bin/obsidian --ozone-platform-hint=auto