showclip and qrcode show binds

This commit is contained in:
Luke Smith
2018-11-18 20:31:24 -05:00
parent 7fdc2fac93
commit 21b4f8c613
3 changed files with 27 additions and 1 deletions

16
.scripts/i3cmds/showclip Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/sh
# Display contents of selection via dunst if running.
# Separate script for i3.
! pgrep -x dunst >/dev/null && echo "dunst not running." && exit
clip=$(xclip -o -selection clipboard)
prim=$(xclip -o -selection primary)
[ "$prim" != "" ] && notify-send "<b>Clipboard:</b>
$prim"
[ "$clip" != "" ] && notify-send "<b>Primary:</b>
$clip"

9
.scripts/i3cmds/xcqr Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/sh
# Credit to Maddison Hellstrom (@b0o on Github)
qrencode -o - -s 1 \
"$(xclip -out -selection clipboard)" |
feh --zoom max \
-F \
--force-aliasing \
--image-bg white \
-