diff options
author | Joe <rbo@gmx.us> | 2025-01-02 15:04:58 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2025-01-02 15:04:58 +0100 |
commit | 37ff104d1fccb081ec15be43eb2a02eebad4bb8c (patch) | |
tree | c9b11abdf9c64afc15a86843b2541b0c7c7f5c4a /.local/bin/dmclip | |
parent | up (diff) | |
download | dotfiles-bsd-37ff104d1fccb081ec15be43eb2a02eebad4bb8c.tar.gz dotfiles-bsd-37ff104d1fccb081ec15be43eb2a02eebad4bb8c.tar.bz2 dotfiles-bsd-37ff104d1fccb081ec15be43eb2a02eebad4bb8c.tar.xz dotfiles-bsd-37ff104d1fccb081ec15be43eb2a02eebad4bb8c.tar.zst dotfiles-bsd-37ff104d1fccb081ec15be43eb2a02eebad4bb8c.zip |
up
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__ |