Files
linux-bin/mv2figs.sh

12 lines
349 B
Bash
Raw Normal View History

2019-02-05 19:30:40 -08:00
#!/bin/bash
2020-02-13 12:11:29 -08:00
#mv2figs: used by the <ctrl-z> screenshot shortcut set in .config/i3/config
2019-02-05 19:30:40 -08:00
#default image location
blobFolder=$HOME/figures
2020-05-10 22:25:36 -07:00
# wayland: use "wl-copy"
#xorg-x11: use "xclip -selection clipboard"
2019-02-05 19:30:40 -08:00
mv $1 $blobFolder/$1
2020-05-10 22:25:36 -07:00
echo "<figure><img src=\""$(basename $blobFolder)/$1"\" width=\"500px\"><figcaption></figcaption></figure>" | wl-copy