summary refs log tree commit diff
path: root/home/.local/bin/pbcopy
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-02-09 17:40:41 -0500
committerJune McEnroe <june@causal.agency>2021-02-09 17:40:41 -0500
commit1f327d4a4ab30b95ee41e94bcb3efc60441304d7 (patch)
tree8160f002b6e7a848b68a14610285f8bcdf586bfd /home/.local/bin/pbcopy
parentUse flags for pbd client behaviour (diff)
downloadsrc-1f327d4a4ab30b95ee41e94bcb3efc60441304d7.tar.gz
src-1f327d4a4ab30b95ee41e94bcb3efc60441304d7.zip
Add pbcopy, pbpaste, open dispatch scripts
Diffstat (limited to 'home/.local/bin/pbcopy')
-rwxr-xr-xhome/.local/bin/pbcopy11
1 files changed, 11 insertions, 0 deletions
diff --git a/home/.local/bin/pbcopy b/home/.local/bin/pbcopy
new file mode 100755
index 00000000..a804f836
--- /dev/null
+++ b/home/.local/bin/pbcopy
@@ -0,0 +1,11 @@
+#!/bin/sh
+set -eu
+
+if [ -n "${SSH_CLIENT:-}" ]; then
+	exec pbd -c
+elif [ -n "${DISPLAY:-}" ]; then
+	exec xsel -bi
+else
+	echo "${0}: don't know what to do" >&2
+	exit 1
+fi
>2019-12-20Set LANG in cgit filtersJune McEnroe 2019-12-20Source .editrc before applying -v or -eJune McEnroe 2019-12-20Disable signing commitsJune McEnroe 2019-12-19Ignore about-filterJune McEnroe 2019-12-19Fix matching make tags with no sourcesJune McEnroe 2019-12-19Avoid matching := assignments as tagsJune McEnroe 2019-12-18Hide line numbers when rendering mdocJune McEnroe 2019-12-18Customize cgit CSSJune McEnroe 2019-12-18Use :target rather than :focus pseudo-classJune McEnroe 2019-12-18Copy cgit auxiliary binaries properlyJune McEnroe 2019-12-18Add git.causal.agency cgit configJune McEnroe 2019-12-18Bail from hi if input is binaryJune McEnroe 2019-12-16Post "cgit setup"June McEnroe