Update todo and workspace notes, fix skhdrc error, remove browser themes

This commit is contained in:
2026-01-17 01:40:28 -06:00
parent 95f90cd50e
commit 6ca8fb0c33
10 changed files with 20 additions and 40 deletions

View File

@@ -36,23 +36,6 @@ theme_update_neovim() {
done
}
theme_update_browser() {
policy='BrowserThemeColor'
color_hex=$(
printf '#%02x%02x%02x' $(
cat $DIR_THEME_SETTINGS/.current-theme/brave.theme | tr ',' ' '
)
)
[[ "$OSTYPE" != *"darwin"* ]] && {
echo "{\"$policy\": \"$color_hex\"}" > "/etc/brave/policies/managed/color.json"
brave --refresh-platform-policy --no-startup-window > /dev/null
} || {
# TODO: fix or just remove this macos part; currently, property is set and seen
# by brave, but colors are applied either with a huge delay or not at all
# defaults write com.brave.Browser $policy -string "$color_hex"
}
}
[[ ! -z $1 ]] && raw_target="$1" ||
raw_target=$(
find $DIR_THEME_SETTINGS -mindepth 1 -maxdepth 1 -type d -exec basename -- {} \; |
@@ -67,9 +50,7 @@ ln -snf "$target_theme" $DIR_THEME_SETTINGS/.current-theme
theme_update_terminal
theme_update_tmux
theme_update_neovim &
theme_update_browser
# theme_update_obsidian # TODO: decide if theming beyond transparency is worth it, if so, implement
# theme_update_mutt # TODO: possible? or does it just use terminal colors anyway?
# theme_update_reaper # TODO: implement
# theme_update_mutt # TODO: possible and actually desired?
theme-update-wallpaper "zz-default-for-theme" &