summaryrefslogtreecommitdiffstats
path: root/.local/bin/dmrun
blob: 41c0e0e4023e4735fc008010bc3676ec92af4643 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env perl

use strict;
use warnings;

sub main
{
	my $color;

	$color = '#cc241d';
	if (@ARGV == 1) {
		$color = $ARGV[0];
	}
	my $menu = "dmenu_run -sb '$color' -shb '$color'";
	if (defined $ENV{WAYLAND_DISPLAY}) {
		$menu = "wmenu-run -S '$color'";
	}
	return exec("$menu -i");
}

main();

__END__