From eccd915bc980ac80658e7e6f923a1a0455e538a9 Mon Sep 17 00:00:00 2001 From: Tony Blyler Date: Fri, 20 Aug 2021 09:29:28 -0400 Subject: [PATCH] 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 --- home/.config/alacritty/alacritty.yml | 2 +- home/.config/waybar/config | 2 +- home/.zshrc.d/notes.sh | 12 +++++++++++- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/home/.config/alacritty/alacritty.yml b/home/.config/alacritty/alacritty.yml index 75313a6..c84dcad 100644 --- a/home/.config/alacritty/alacritty.yml +++ b/home/.config/alacritty/alacritty.yml @@ -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 diff --git a/home/.config/waybar/config b/home/.config/waybar/config index df69a2c..8319ccf 100644 --- a/home/.config/waybar/config +++ b/home/.config/waybar/config @@ -65,7 +65,7 @@ }, "clock": { "tooltip-format": "{:%Y %B}\n{calendar}", - "format": "{:%m/%d/%y %H:%M}" + "format": "{:%m/%d/%y %H:%M}" }, "cpu": { "format": "{usage}% ", diff --git a/home/.zshrc.d/notes.sh b/home/.zshrc.d/notes.sh index fee0ea5..c7b539c 100755 --- a/home/.zshrc.d/notes.sh +++ b/home/.zshrc.d/notes.sh @@ -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}" ) }