aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-09-23 09:52:05 +0200
committerlonkaars <loek@pipeframe.xyz>2022-09-23 09:52:05 +0200
commit5ee0b9a18e52b415b3ca4edebb8403694ecc9d08 (patch)
treef6f9f9e8db62670e10826aa5169fb80994ac039b
parent5d5deb56a62b85ae1b066be337ec28f67812cc1a (diff)
add chromium to `mode` script
-rw-r--r--.cache/wal/chromium/bg-dark.png (renamed from .cache/wal/chromium/bg.png##default)bin275 -> 275 bytes
-rw-r--r--.cache/wal/chromium/bg-light.png (renamed from .cache/wal/chromium/bg.png##hostname.thoncc)bin285 -> 285 bytes
-rw-r--r--.cache/wal/chromium/manifest-dark.json (renamed from .cache/wal/chromium/manifest.json##hostname.superesc)0
-rw-r--r--.cache/wal/chromium/manifest-light.json (renamed from .cache/wal/chromium/manifest.json##hostname.thoncc)0
-rwxr-xr-x.local/share/bin/mode8
5 files changed, 8 insertions, 0 deletions
diff --git a/.cache/wal/chromium/bg.png##default b/.cache/wal/chromium/bg-dark.png
index 46227a9..46227a9 100644
--- a/.cache/wal/chromium/bg.png##default
+++ b/.cache/wal/chromium/bg-dark.png
Binary files differ
diff --git a/.cache/wal/chromium/bg.png##hostname.thoncc b/.cache/wal/chromium/bg-light.png
index 1eeca16..1eeca16 100644
--- a/.cache/wal/chromium/bg.png##hostname.thoncc
+++ b/.cache/wal/chromium/bg-light.png
Binary files differ
diff --git a/.cache/wal/chromium/manifest.json##hostname.superesc b/.cache/wal/chromium/manifest-dark.json
index 529b863..529b863 100644
--- a/.cache/wal/chromium/manifest.json##hostname.superesc
+++ b/.cache/wal/chromium/manifest-dark.json
diff --git a/.cache/wal/chromium/manifest.json##hostname.thoncc b/.cache/wal/chromium/manifest-light.json
index 1c630db..1c630db 100644
--- a/.cache/wal/chromium/manifest.json##hostname.thoncc
+++ b/.cache/wal/chromium/manifest-light.json
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