diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-09-23 09:52:05 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-09-23 09:52:05 +0200 |
commit | 5ee0b9a18e52b415b3ca4edebb8403694ecc9d08 (patch) | |
tree | f6f9f9e8db62670e10826aa5169fb80994ac039b /.local/share/bin/mode | |
parent | 5d5deb56a62b85ae1b066be337ec28f67812cc1a (diff) |
add chromium to `mode` script
Diffstat (limited to '.local/share/bin/mode')
-rwxr-xr-x | .local/share/bin/mode | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.local/share/bin/mode b/.local/share/bin/mode index 23f069d..3af37c2 100755 --- a/.local/share/bin/mode +++ b/.local/share/bin/mode @@ -103,6 +103,13 @@ EOF echo "$conf" | cat ~/.local/share/fcitx5/themes/loek/base.conf - > ~/.local/share/fcitx5/themes/loek/theme.conf } +switch_chrome() { + cd ~/.cache/wal/chromium + rm -f Cached Theme.pak bg.png manifest.json + ln -sf "bg-$1.png" bg.png + ln -sf "manifest-$1.json" manifest.json +} + reload_terms() { read -r -d '' escape_msgs << EOF \033]11;$(get_color background)\007 @@ -154,6 +161,7 @@ switch_cfgs() { switch_zathura $1 switch_gtk $1 switch_fcitx5 $1 + switch_chrome $1 mkdir -p ~/.local/share/mode echo $1 > ~/.local/share/mode/active |