diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-06-09 18:21:35 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-06-09 18:21:35 +0200 |
commit | 02da333eb51cc5f7cfc28e194681db0e5f59d485 (patch) | |
tree | 8a6c6a629acceb22eb481ea97341c9f2a0f6cd9c /config/extra | |
parent | 1db03774f313f1d740cda3f7e4dbc05a50c75d15 (diff) |
checkpoint
Diffstat (limited to 'config/extra')
-rwxr-xr-x | config/extra/qrclip | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/config/extra/qrclip b/config/extra/qrclip deleted file mode 100755 index 2f5da5c..0000000 --- a/config/extra/qrclip +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -if [ "$WAYLAND_DISPLAY" ] -then - which wl-copy > /dev/null || exit 1 - clipp () { - wl-copy - } - clipo () { - wl-paste - } -else - which xclip > /dev/null || exit 1 - clipp () { - xclip -selection clipboard -r - } - clipo () { - xclip -o -selection clipboard -r - } -fi - -case $1 in - '-o') - qrencode -s 16 "$(clipo)" -o - | - imv -w "imv - $(clipo)" - ;; - '-s') - qrencode -s 16 "https://duckduckgo.com/$(clipo)" -o - | - imv -w "imv - search $(clipo)" - ;; -esac |