commit e5bee1448fa21c545ae3bcd0a6a0adf3c5347fac from: Omar Polo date: Mon May 09 09:51:45 2022 UTC +clip commit - 0e4b4d70c148c5c48b2f86be260b8309b822a6b2 commit + e5bee1448fa21c545ae3bcd0a6a0adf3c5347fac blob - /dev/null blob + 5093db1c7caca7358cbb96a05bbc057c6112a853 (mode 644) --- /dev/null +++ bin/clip.lp @@ -0,0 +1,15 @@ +# clip + +clip is a small utility to manage the X clipboard sensibly. It's +meant to be used interactively, not in scripts. + +if the standard input is not a tty, slurp everything (except the last +newline!) to the clipboard + + if [ ! -t 0 ]; then + exec xclip -r -selection clipboard >/dev/null + fi + +otherwise output its contents + + exec xclip -o -selection clipboard blob - df3e8e76b5eab8dbbd629db606de181060b0d444 blob + 10e394d16be9a6170dba74cde7ac6364efa27b06 --- gen +++ gen @@ -66,6 +66,7 @@ pair .cwmrc cwmrc.lp pair bin/acmerc bin/acmerc.lp +x pair bin/amused-monitor bin/amused-monitor.lp +x pair bin/browser bin/browser.lp +x +pair bin/clip bin/clip.lp +x pair bin/sshot bin/sshot.lp +x pair .config/herbstluftwm/autostart config/herbstluftwm/autostart.lp