summaryrefslogtreecommitdiffstats
path: root/.local/bin/dmrun
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2025-03-02 01:53:30 +0100
committerJoe <rbo@gmx.us>2025-03-02 01:53:30 +0100
commite449b39043002976a3ca9275a1582ae6d6920a89 (patch)
treeedba6a008d30e4a3b9c7a66a0af0d7a55ec8c8a4 /.local/bin/dmrun
parentway (diff)
downloaddotfiles-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 '')
-rwxr-xr-x.local/bin/dmrun6
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();