diff options
author | Adam Stück <adam@adast.xyz> | 2023-02-08 20:08:10 +0100 |
---|---|---|
committer | Adam Stück <adam@adast.xyz> | 2023-02-08 20:08:10 +0100 |
commit | bf623e1ff040a5cfa91510008fed74a7ec6074e8 (patch) | |
tree | 4dbb7723bb3c8227a5ccf910698e9fb8833f47bb | |
parent | 73ddab1d5b6a3680763267ea8f2df3667564f0ef (diff) |
scripts: 'scheme' script now toggles btop theme
-rw-r--r-- | .config/scheme/btop-theme-dark | 1 | ||||
-rw-r--r-- | .config/scheme/btop-theme-light | 1 | ||||
-rwxr-xr-x | .local/bin/scheme | 6 |
3 files changed, 7 insertions, 1 deletions
diff --git a/.config/scheme/btop-theme-dark b/.config/scheme/btop-theme-dark new file mode 100644 index 0000000..c11dbbd --- /dev/null +++ b/.config/scheme/btop-theme-dark @@ -0,0 +1 @@ +/usr/share/btop/themes/tokyo-storm.theme diff --git a/.config/scheme/btop-theme-light b/.config/scheme/btop-theme-light new file mode 100644 index 0000000..dea95ad --- /dev/null +++ b/.config/scheme/btop-theme-light @@ -0,0 +1 @@ +/usr/share/btop/themes/whiteout.theme 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 ? |