proper directories in scripts, eqn tbl and fig counters

This commit is contained in:
tavo-wasd 2023-09-17 22:17:21 -06:00
parent 2d14194095
commit 652c223c9b
5 changed files with 17 additions and 8 deletions

View file

@ -1,9 +1,6 @@
\" Quality of life utilities
\" for easier eqn usage.
\" Define register
.nr eqn 0 1
.EQ
delim $$
define / 'over'

View file

@ -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

View file

@ -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

View file

@ -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"

View file

@ -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'