aboutsummaryrefslogtreecommitdiff
path: root/.local/share/bin
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-09-23 11:39:48 +0200
committerlonkaars <loek@pipeframe.xyz>2022-09-23 11:39:48 +0200
commitdf924a12accc06b0fdfd55f4bc82c2238f0c7181 (patch)
tree8c7f9ba0b87a9cb7628dd2745a3a0f196f0ae08d /.local/share/bin
parent4028eaa4f3ee2b5d570a3f0025b3eba798041cf9 (diff)
start page color switch
Diffstat (limited to '.local/share/bin')
-rwxr-xr-x.local/share/bin/mode27
1 files changed, 27 insertions, 0 deletions
diff --git a/.local/share/bin/mode b/.local/share/bin/mode
index 3af37c2..654f0fe 100755
--- a/.local/share/bin/mode
+++ b/.local/share/bin/mode
@@ -103,6 +103,32 @@ EOF
echo "$conf" | cat ~/.local/share/fcitx5/themes/loek/base.conf - > ~/.local/share/fcitx5/themes/loek/theme.conf
}
+switch_startpage() {
+ read -r -d '' conf << EOF
+/* AUTOMATICALLY GENERATED, DO NOT EDIT */
+
+:root {
+ --color0: $(get_color color0);
+ --color1: $(get_color color1);
+ --color2: $(get_color color2);
+ --color3: $(get_color color3);
+ --color4: $(get_color color4);
+ --color5: $(get_color color5);
+ --color6: $(get_color color6);
+ --color7: $(get_color color7);
+ --color8: $(get_color color8);
+ --color9: $(get_color color9);
+ --color10: $(get_color color10);
+ --color11: $(get_color color11);
+ --color12: $(get_color color12);
+ --color13: $(get_color color13);
+ --color14: $(get_color color14);
+ --color15: $(get_color color15);
+}
+EOF
+ echo "$conf" > ~/.config/startpage/colors.css
+}
+
switch_chrome() {
cd ~/.cache/wal/chromium
rm -f Cached Theme.pak bg.png manifest.json
@@ -162,6 +188,7 @@ switch_cfgs() {
switch_gtk $1
switch_fcitx5 $1
switch_chrome $1
+ switch_startpage $1
mkdir -p ~/.local/share/mode
echo $1 > ~/.local/share/mode/active