Update notes to have category support, add background to i3, set gruvbox to high contrast mode for my colorblind self, set rofi theme to high contrast gruvbox too

This commit is contained in:
Tony Blyler 2021-10-29 10:41:50 -04:00
parent 303b6ce5a6
commit db7b2df76e
5 changed files with 29 additions and 2 deletions

View file

@ -12,6 +12,8 @@ exec --no-startup-id blueman-applet
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
# screen before suspend. Use loginctl lock-session to lock your screen.
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock -c 000000 --nofork
# background
exec --no-startup-id feh --bg-fill ~/bg.png
set $mod Mod4

View file

@ -49,6 +49,8 @@ if executable('ag')
let g:ackprg = 'ag --vimgrep'
endif
let g:gruvbox_contrast_dark = 'hard'
set background=dark " make sure dark mode is used
autocmd vimenter * ++nested colorscheme gruvbox " Color scheme
set laststatus=2 " Enable airline

1
home/.config/rofi/config Normal file
View file

@ -0,0 +1 @@
rofi.theme: /usr/share/rofi/themes/gruvbox-dark-hard.rasi

View file

@ -5,6 +5,10 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
if [ -e /etc/profile.d/flatpak.sh ]; then
source /etc/profile.d/flatpak.sh
fi
if [ -f "${HOME}/.zshrc.d/init" ]; then
source "${HOME}/.zshrc.d/init"
fi

View file

@ -1,7 +1,7 @@
#!/bin/bash
notes() {
local -r NOTES_DIR="${NOTES_DIR:-${HOME}/notes}"
local NOTES_DIR="${NOTES_DIR:-${HOME}/notes}"
local -r EDITOR="${EDITOR:-vim}"
local EDITOR_OPTIONS=()
@ -20,6 +20,15 @@ notes() {
cd "$NOTES_DIR"
case "${ARG}" in
'category')
shift
export NOTES_DIR="$NOTES_DIR/$1"
shift
notes "$@"
exit 255
;;
'fzf')
"${EDITOR}" "${EDITOR_OPTIONS[@]}" "$(notes ls | fzf)"
;;
@ -50,7 +59,16 @@ notes() {
exit 1
;;
esac
) || return $?
)
local EXIT_CODE=$?
if [ $EXIT_CODE != 0 ]; then
if [ $EXIT_CODE = 255 ]; then
return 0
fi
return $EXIT_CODE
fi
done
# return if the above loop didn't return a bad code