update alacritty font size to be nicer with x11, fix indentation for waybar config, and update notes.sh to automatically do spell checking if EDITOR is (n)vim

This commit is contained in:
Tony Blyler 2021-08-20 09:29:28 -04:00
parent fa502576f7
commit eccd915bc9
3 changed files with 13 additions and 3 deletions

View file

@ -150,7 +150,7 @@ font:
#style: Bold Italic
# Point size
size: 11.0
size: 7.0
# Offset is the extra space around each character. `offset.y` can be thought
# of as modifying the line spacing, and `offset.x` as modifying the letter

View file

@ -65,7 +65,7 @@
},
"clock": {
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format": "{:%m/%d/%y %H:%M}"
"format": "{:%m/%d/%y %H:%M}"
},
"cpu": {
"format": "{usage}% ",

View file

@ -56,6 +56,16 @@ notes() {
echo -e "# $(date -d "@${NOW}" +'%a %d %b %Y')\n\n## todo\n\n" > "${FILE_PATH}"
fi
"${EDITOR:-vim}" "${FILE_PATH}"
local -r EDITOR="${EDITOR:-vim}"
local EDITOR_OPTIONS=()
if [[ "${EDITOR}" =~ 'vim$' ]]; then
EDITOR_OPTIONS=(
'-c'
'set spell'
)
fi
"${EDITOR}" "${EDITOR_OPTIONS[@]}" "${FILE_PATH}"
)
}