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:
parent
303b6ce5a6
commit
db7b2df76e
5 changed files with 29 additions and 2 deletions
|
@ -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
|
# 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.
|
# screen before suspend. Use loginctl lock-session to lock your screen.
|
||||||
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock -c 000000 --nofork
|
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
|
set $mod Mod4
|
||||||
|
|
||||||
|
|
|
@ -49,6 +49,8 @@ if executable('ag')
|
||||||
let g:ackprg = 'ag --vimgrep'
|
let g:ackprg = 'ag --vimgrep'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
let g:gruvbox_contrast_dark = 'hard'
|
||||||
|
|
||||||
set background=dark " make sure dark mode is used
|
set background=dark " make sure dark mode is used
|
||||||
autocmd vimenter * ++nested colorscheme gruvbox " Color scheme
|
autocmd vimenter * ++nested colorscheme gruvbox " Color scheme
|
||||||
set laststatus=2 " Enable airline
|
set laststatus=2 " Enable airline
|
||||||
|
|
1
home/.config/rofi/config
Normal file
1
home/.config/rofi/config
Normal file
|
@ -0,0 +1 @@
|
||||||
|
rofi.theme: /usr/share/rofi/themes/gruvbox-dark-hard.rasi
|
|
@ -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"
|
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -e /etc/profile.d/flatpak.sh ]; then
|
||||||
|
source /etc/profile.d/flatpak.sh
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -f "${HOME}/.zshrc.d/init" ]; then
|
if [ -f "${HOME}/.zshrc.d/init" ]; then
|
||||||
source "${HOME}/.zshrc.d/init"
|
source "${HOME}/.zshrc.d/init"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
notes() {
|
notes() {
|
||||||
local -r NOTES_DIR="${NOTES_DIR:-${HOME}/notes}"
|
local NOTES_DIR="${NOTES_DIR:-${HOME}/notes}"
|
||||||
local -r EDITOR="${EDITOR:-vim}"
|
local -r EDITOR="${EDITOR:-vim}"
|
||||||
local EDITOR_OPTIONS=()
|
local EDITOR_OPTIONS=()
|
||||||
|
|
||||||
|
@ -20,6 +20,15 @@ notes() {
|
||||||
cd "$NOTES_DIR"
|
cd "$NOTES_DIR"
|
||||||
|
|
||||||
case "${ARG}" in
|
case "${ARG}" in
|
||||||
|
'category')
|
||||||
|
shift
|
||||||
|
export NOTES_DIR="$NOTES_DIR/$1"
|
||||||
|
shift
|
||||||
|
|
||||||
|
notes "$@"
|
||||||
|
exit 255
|
||||||
|
;;
|
||||||
|
|
||||||
'fzf')
|
'fzf')
|
||||||
"${EDITOR}" "${EDITOR_OPTIONS[@]}" "$(notes ls | fzf)"
|
"${EDITOR}" "${EDITOR_OPTIONS[@]}" "$(notes ls | fzf)"
|
||||||
;;
|
;;
|
||||||
|
@ -50,7 +59,16 @@ notes() {
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
) || return $?
|
)
|
||||||
|
|
||||||
|
local EXIT_CODE=$?
|
||||||
|
if [ $EXIT_CODE != 0 ]; then
|
||||||
|
if [ $EXIT_CODE = 255 ]; then
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
return $EXIT_CODE
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# return if the above loop didn't return a bad code
|
# return if the above loop didn't return a bad code
|
||||||
|
|
Loading…
Reference in a new issue