summaryrefslogtreecommitdiffstats
path: root/.local
diff options
context:
space:
mode:
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/dmclip19
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__