Skip to content

Instantly share code, notes, and snippets.

@tyjak
Created September 11, 2022 09:12
Show Gist options
  • Save tyjak/3d87379105af6b5b4f5eb1463fee6228 to your computer and use it in GitHub Desktop.
Save tyjak/3d87379105af6b5b4f5eb1463fee6228 to your computer and use it in GitHub Desktop.
#!/bin/sh
# Display qrcode in floating window in i3wm
# GistID: 3d87379105af6b5b4f5eb1463fee6228
qrcode() {
qrencode -o - | feh --class "_popup-notitle" -x -
}
if [ -t 1 ]
then
qrcode
else
xsel -o | qrcode
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment