Files
linux-bin/mv2figs.sh
2020-05-10 22:25:36 -07:00

12 lines
349 B
Bash
Executable File

#!/bin/bash
#mv2figs: used by the <ctrl-z> screenshot shortcut set in .config/i3/config
#default image location
blobFolder=$HOME/figures
# wayland: use "wl-copy"
#xorg-x11: use "xclip -selection clipboard"
mv $1 $blobFolder/$1
echo "<figure><img src=\""$(basename $blobFolder)/$1"\" width=\"500px\"><figcaption></figcaption></figure>" | wl-copy