aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_local/bin/executable_wqr
blob: 5f9d36db9d3d259c1a2a34a30155575b6cd1f305 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env dash

if [ -z "$1" ]; then
  text=$(wl-paste)
elif [ "$1" = "-" ]; then
  read -r text
else
  text="$1"
fi

printf '%s' "$text" | qrencode -t PNG -o - | imv -