diff --git a/groff/math b/groff/math index 9da6623..522bef7 100644 --- a/groff/math +++ b/groff/math @@ -1,9 +1,6 @@ \" Quality of life utilities \" for easier eqn usage. -\" Define register -.nr eqn 0 1 - .EQ delim $$ define / 'over' diff --git a/groff/utils b/groff/utils index ca79033..4f2cf02 100644 --- a/groff/utils +++ b/groff/utils @@ -3,3 +3,15 @@ .de rule \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 diff --git a/scripts/menu/menu-addbookmark b/scripts/menu/menu-addbookmark index 0dbefdf..c394417 100755 --- a/scripts/menu/menu-addbookmark +++ b/scripts/menu/menu-addbookmark @@ -4,13 +4,13 @@ bookmark="$(xsel -ob)" -if grep -q "$bookmark" "$HOME/Desktop/bookmarks" ; then +if grep -q "$bookmark" "$HOME/Documents/bookmarks" ; then notify-send "󰃀 Bookmarks" "Already bookmarked" exit else name="$(menu "Bookmark name:" empty)" [ -z "$name" ] && exit entry="$name-$bookmark" - echo "$entry" >> "$HOME/Desktop/bookmarks" + echo "$entry" >> "$HOME/Documents/bookmarks" notify-send "󰃀 Bookmarks" "Added '$entry'" fi diff --git a/scripts/menu/menu-bookmarks b/scripts/menu/menu-bookmarks index 69bf781..c41f44e 100755 --- a/scripts/menu/menu-bookmarks +++ b/scripts/menu/menu-bookmarks @@ -2,7 +2,7 @@ # Open URLs from bookmarks file # 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 -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" diff --git a/scripts/prtsc b/scripts/prtsc index c7a04bc..36d332e 100755 --- a/scripts/prtsc +++ b/scripts/prtsc @@ -1,4 +1,4 @@ #!/bin/sh # 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'