summaryrefslogtreecommitdiff
path: root/.local/bin/shorts/xprint
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/shorts/xprint')
-rwxr-xr-x.local/bin/shorts/xprint8
1 files changed, 8 insertions, 0 deletions
diff --git a/.local/bin/shorts/xprint b/.local/bin/shorts/xprint
new file mode 100755
index 0000000..12156f2
--- /dev/null
+++ b/.local/bin/shorts/xprint
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+[ -n "$TERMUX_VERSION" ] && { termux-clipboard-get; exit; }
+
+xclip -out -selection clipboard 2>/dev/null ||
+xclip -out -selection secondry 2>/dev/null ||
+xclip -out -selection primary 2>/dev/null ||
+notify-send "Selection and clipboard is empty"