diff options
author | Joe <rbo@gmx.us> | 2025-03-02 01:53:30 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2025-03-02 01:53:30 +0100 |
commit | e449b39043002976a3ca9275a1582ae6d6920a89 (patch) | |
tree | edba6a008d30e4a3b9c7a66a0af0d7a55ec8c8a4 /.local/bin/dmrun | |
parent | way (diff) | |
download | dotfiles-bsd-e449b39043002976a3ca9275a1582ae6d6920a89.tar.gz dotfiles-bsd-e449b39043002976a3ca9275a1582ae6d6920a89.tar.bz2 dotfiles-bsd-e449b39043002976a3ca9275a1582ae6d6920a89.tar.xz dotfiles-bsd-e449b39043002976a3ca9275a1582ae6d6920a89.tar.zst dotfiles-bsd-e449b39043002976a3ca9275a1582ae6d6920a89.zip |
up
Diffstat (limited to '.local/bin/dmrun')
-rwxr-xr-x | .local/bin/dmrun | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/.local/bin/dmrun b/.local/bin/dmrun index f47c232..41c0e0e 100755 --- a/.local/bin/dmrun +++ b/.local/bin/dmrun @@ -11,7 +11,11 @@ sub main if (@ARGV == 1) { $color = $ARGV[0]; } - return exec("dmenu_run -i -sb '$color' -shb '$color'"); + my $menu = "dmenu_run -sb '$color' -shb '$color'"; + if (defined $ENV{WAYLAND_DISPLAY}) { + $menu = "wmenu-run -S '$color'"; + } + return exec("$menu -i"); } main(); |