proper directories in scripts, eqn tbl and fig counters
This commit is contained in:
parent
2d14194095
commit
652c223c9b
5 changed files with 17 additions and 8 deletions
|
@ -1,9 +1,6 @@
|
||||||
\" Quality of life utilities
|
\" Quality of life utilities
|
||||||
\" for easier eqn usage.
|
\" for easier eqn usage.
|
||||||
|
|
||||||
\" Define register
|
|
||||||
.nr eqn 0 1
|
|
||||||
|
|
||||||
.EQ
|
.EQ
|
||||||
delim $$
|
delim $$
|
||||||
define / 'over'
|
define / 'over'
|
||||||
|
|
12
groff/utils
12
groff/utils
|
@ -3,3 +3,15 @@
|
||||||
.de rule
|
.de rule
|
||||||
\D'l \\$1 0'
|
\D'l \\$1 0'
|
||||||
..
|
..
|
||||||
|
|
||||||
|
\" Auto-numbered equation: \\n+[eqnnum]
|
||||||
|
\" Current equation: \\n[eqnnum]
|
||||||
|
.nr eqnnum 0 1
|
||||||
|
|
||||||
|
\" Auto-numbered figures: \\n+[fignum]
|
||||||
|
\" Current figure: \\n[fignum]
|
||||||
|
.nr fignum 0 1
|
||||||
|
|
||||||
|
\" Auto-numbered tables: \\n+[tblnum]
|
||||||
|
\" Current table: \\n[tblnum]
|
||||||
|
.nr tblnum 0 1
|
||||||
|
|
|
@ -4,13 +4,13 @@
|
||||||
|
|
||||||
bookmark="$(xsel -ob)"
|
bookmark="$(xsel -ob)"
|
||||||
|
|
||||||
if grep -q "$bookmark" "$HOME/Desktop/bookmarks" ; then
|
if grep -q "$bookmark" "$HOME/Documents/bookmarks" ; then
|
||||||
notify-send " Bookmarks" "Already bookmarked"
|
notify-send " Bookmarks" "Already bookmarked"
|
||||||
exit
|
exit
|
||||||
else
|
else
|
||||||
name="$(menu "Bookmark name:" empty)"
|
name="$(menu "Bookmark name:" empty)"
|
||||||
[ -z "$name" ] && exit
|
[ -z "$name" ] && exit
|
||||||
entry="$name-$bookmark"
|
entry="$name-$bookmark"
|
||||||
echo "$entry" >> "$HOME/Desktop/bookmarks"
|
echo "$entry" >> "$HOME/Documents/bookmarks"
|
||||||
notify-send " Bookmarks" "Added '$entry'"
|
notify-send " Bookmarks" "Added '$entry'"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# Open URLs from bookmarks file
|
# Open URLs from bookmarks file
|
||||||
|
|
||||||
# Print site names, then get URL based on the name. Exit if empty
|
# Print site names, then get URL based on the name. Exit if empty
|
||||||
name=$(cut -d '-' -f 1 $HOME/Desktop/bookmarks | grep -v '^#' | sed '/^\s*$/d' | menu "Site:")
|
name=$(cut -d '-' -f 1 $HOME/Documents/bookmarks | grep -v '^#' | sed '/^\s*$/d' | menu "Site:")
|
||||||
[ -z "$name" ] && exit
|
[ -z "$name" ] && exit
|
||||||
|
|
||||||
grep "$name" $HOME/Desktop/bookmarks | cut -d '-' -f 2- | xsel -ib && notify-send " Bookmarks" "'$name' copied to clipboard"
|
grep "$name" $HOME/Documents/bookmarks | cut -d '-' -f 2- | xsel -ib && notify-send " Bookmarks" "'$name' copied to clipboard"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Command alias to reference easily
|
# Command alias to reference easily
|
||||||
|
|
||||||
scrot -s '/home/tavo/Media/Pictures/Screenshots/%Y-%m-%d.png' -e 'xclip -selection clipboard -t image/png -i $f'
|
scrot -s '/home/tavo/Pictures/Screenshots/%Y-%m-%d.png' -e 'xclip -selection clipboard -t image/png -i $f'
|
||||||
|
|
Loading…
Reference in a new issue