summaryrefslogtreecommitdiff
path: root/.local/bin
diff options
context:
space:
mode:
authorAdam Stück <adam@adast.xyz>2023-02-08 20:08:10 +0100
committerAdam Stück <adam@adast.xyz>2023-02-08 20:08:10 +0100
commitbf623e1ff040a5cfa91510008fed74a7ec6074e8 (patch)
tree4dbb7723bb3c8227a5ccf910698e9fb8833f47bb /.local/bin
parent73ddab1d5b6a3680763267ea8f2df3667564f0ef (diff)
scripts: 'scheme' script now toggles btop theme
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/scheme6
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 ?