diff options
Diffstat (limited to '.local/bin/dmclip')
-rwxr-xr-x | .local/bin/dmclip | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/.local/bin/dmclip b/.local/bin/dmclip new file mode 100755 index 0000000..d2369a1 --- /dev/null +++ b/.local/bin/dmclip @@ -0,0 +1,19 @@ +#!/usr/bin/env perl + +use strict; +use warnings; + +sub main +{ + my $color; + + $color = '#cc241d'; + if (@ARGV == 1) { + $color = $ARGV[0]; + } + return exec("clipmenu -i -sb '$color' -shb '$color'"); +} + +main(); + +__END__ |