diff options
Diffstat (limited to '.local/bin/scheme')
-rwxr-xr-x | .local/bin/scheme | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/.local/bin/scheme b/.local/bin/scheme index af2edad..202a041 100755 --- a/.local/bin/scheme +++ b/.local/bin/scheme @@ -16,6 +16,7 @@ set_scheme () { GTK_THEME=$(cat "$XDG_CONFIG_HOME/scheme/gtk-theme-dark") QT_THEME=$(cat "$XDG_CONFIG_HOME/scheme/qt-theme-dark") TERM_THEME=$(cat "$XDG_CONFIG_HOME/scheme/term-theme-dark") + BTOP_THEME=$(cat "$XDG_CONFIG_HOME/scheme/btop-theme-dark") FZF_COLOR=dark PREFER_DARK="true" PREFER_DARK_STR="prefer-dark" @@ -23,6 +24,7 @@ set_scheme () { GTK_THEME=$(cat "$XDG_CONFIG_HOME/scheme/gtk-theme-light") QT_THEME=$(cat "$XDG_CONFIG_HOME/scheme/qt-theme-light") TERM_THEME=$(cat "$XDG_CONFIG_HOME/scheme/term-theme-light") + BTOP_THEME=$(cat "$XDG_CONFIG_HOME/scheme/btop-theme-light") FZF_COLOR=light PREFER_DARK="false" PREFER_DARK_STR="prefer-light" @@ -30,6 +32,8 @@ set_scheme () { sed -ir "s|^colors: .*$|colors: $TERM_THEME|" "$XDG_CONFIG_HOME"/alacritty/alacritty.yml + sed -ir "s|^color_theme = .*$|color_theme = $BTOP_THEME|" "$XDG_CONFIG_HOME"/btop/btop.conf + sed -ir "s|theme=.*$|theme=$QT_THEME|" \ "$XDG_CONFIG_HOME"/Kvantum/kvantum.kvconfig @@ -46,7 +50,7 @@ set_scheme () { gsettings set org.gnome.desktop.interface gtk-theme "$GTK_THEME" gsettings set org.gnome.desktop.wm.preferences theme "$GTK_THEME" - echo -n $FZF_COLOR > "$XDG_CONFIG_HOME"/scheme/fzf-color + echo $FZF_COLOR > "$XDG_CONFIG_HOME"/scheme/fzf-color # todo: # - dmenu ? |