Created
September 11, 2022 09:12
-
-
Save tyjak/3d87379105af6b5b4f5eb1463fee6228 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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