diff options
author | Joe <rbo@gmx.us> | 2024-12-27 14:41:35 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-12-27 14:41:35 +0100 |
commit | b29ed0b265683702646eb209eafcc9a92b317b3b (patch) | |
tree | 6c2fe54fab038febcd506e93e3c8e6d085124910 /.local/bin/dmscrot | |
parent | good (diff) | |
download | dotfiles-bsd-b29ed0b265683702646eb209eafcc9a92b317b3b.tar.gz dotfiles-bsd-b29ed0b265683702646eb209eafcc9a92b317b3b.tar.bz2 dotfiles-bsd-b29ed0b265683702646eb209eafcc9a92b317b3b.tar.xz dotfiles-bsd-b29ed0b265683702646eb209eafcc9a92b317b3b.tar.zst dotfiles-bsd-b29ed0b265683702646eb209eafcc9a92b317b3b.zip |
up
Diffstat (limited to '.local/bin/dmscrot')
-rwxr-xr-x | .local/bin/dmscrot | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/.local/bin/dmscrot b/.local/bin/dmscrot index 82b3c27..dcefb70 100755 --- a/.local/bin/dmscrot +++ b/.local/bin/dmscrot @@ -129,11 +129,16 @@ sub main { my $list; my $choice; + my $color; + $color = '#cc241d'; + if (@ARGV == 1) { + $color = $ARGV[0]; + } for (@{+LIST}) { $list .= $_ . "\n"; } - $choice = `printf "%s" "$list" | dmenu -i -l 10`; + $choice = `printf "%s" "$list" | dmenu -i -sb '$color' -shb '$color'`; action($choice); return (0); } |