Update aerospace keybinds, remove skhd, consolidate some theme scripts
This commit is contained in:
@@ -9,6 +9,35 @@
|
||||
|
||||
##########################################################################################
|
||||
|
||||
theme_update_terminal() {
|
||||
case "$TERMINAL" in
|
||||
("havoc" | "foot")
|
||||
echo "TODO: theme update for havoc or foot not yet implemented"
|
||||
;;
|
||||
("kitty")
|
||||
killall -SIGUSR1 kitty
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
theme_update_tmux() {
|
||||
tmux source-file $DIR_THEME_SETTINGS/.current-theme/tmux.conf
|
||||
}
|
||||
|
||||
theme_update_neovim() {
|
||||
nvim_stdpath_run=$(dirname $(
|
||||
nvim -l <(echo "vim.cmd.echo('stdpath(\"run\")')") > /dev/stdout 2>&1
|
||||
))
|
||||
find "$nvim_stdpath_run" -type s -name "nvim*" 2> /dev/null |
|
||||
while IFS= read -r nvim_server; do
|
||||
timeout 2s nvim --server "$nvim_server" \
|
||||
--remote-expr "execute('lua ThemeUpdate()')" \
|
||||
> /dev/null 2>&1
|
||||
done
|
||||
}
|
||||
|
||||
##########################################################################################
|
||||
|
||||
[[ ! -z $1 ]] && raw_target="$1" ||
|
||||
raw_target=$(
|
||||
find $DIR_THEME_SETTINGS -mindepth 1 -maxdepth 1 -type d -exec basename -- {} \; |
|
||||
@@ -20,14 +49,12 @@ target_theme="$DIR_THEME_SETTINGS/$(echo $raw_target | tr ' ' '-' | tr '[:upper:
|
||||
|
||||
ln -sF "$target_theme" $DIR_THEME_SETTINGS/.current-theme
|
||||
|
||||
theme-update-terminal
|
||||
theme-update-tmux
|
||||
theme-update-neovim &
|
||||
# theme-update-obsidian # TODO: implement
|
||||
# theme-update-browser # TODO: implement
|
||||
# theme-update-reaper # TODO: implement
|
||||
# theme-update-gimp # TODO: possible and actually desired? my main use case is just a blackboard, maybe let it be
|
||||
# theme-update-mutt # TODO: possible and actually desired?
|
||||
# theme-update-irc # TODO: possible and actually desired?
|
||||
theme_update_terminal
|
||||
theme_update_tmux
|
||||
theme_update_neovim &
|
||||
# theme_update_obsidian # TODO: decide if theming beyond transparency is worth it, if so, implement
|
||||
# theme_update_browser # TODO: implement
|
||||
# theme_update_reaper # TODO: implement
|
||||
# theme_update_mutt # TODO: possible and actually desired?
|
||||
|
||||
theme-update-wallpaper "zz-default-for-theme" &
|
||||
|
||||
Reference in New Issue
Block a user