fa2020 update

This commit is contained in:
ackman678
2020-10-05 23:08:33 -07:00
parent 69c3270c51
commit 14f1c48838
5 changed files with 34 additions and 6 deletions

View File

@@ -1,8 +1,24 @@
#!/bin/bash
#mv2figs: used by the <ctrl-z> screenshot shortcut set in .config/i3/config
#!/bin/bash
if [ "$1" == "-h" ] ; then
echo "
mv2figs - move image to figure assets folder and put html figure string containing relative link to the asset on system clipboard
- used by the <ctrl-z> screenshot shortcut set in .config/sway/config and .config/i3/config
- default figure assets set as HOME/figures
Usage: mv2figs.sh img.jpg
mv2figs.sh img.jpg ~/myproject/assets
"
exit 0
fi
set -e
#default image location
blobFolder=$HOME/figures
# blobFolder=$HOME/figures
blobFolder=${2:-$HOME/figures}
#TODO: add xorg-x11 vs wayland logic here
# wayland: use "wl-copy"
#xorg-x11: use "xclip -selection clipboard"