diff options
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(); | 
