aboutsummaryrefslogtreecommitdiff
path: root/.local/share/mode/switch.d/chromium
diff options
context:
space:
mode:
Diffstat (limited to '.local/share/mode/switch.d/chromium')
-rwxr-xr-x.local/share/mode/switch.d/chromium9
1 files changed, 4 insertions, 5 deletions
diff --git a/.local/share/mode/switch.d/chromium b/.local/share/mode/switch.d/chromium
index 9048b80..fb701a5 100755
--- a/.local/share/mode/switch.d/chromium
+++ b/.local/share/mode/switch.d/chromium
@@ -1,17 +1,16 @@
#!/bin/sh
-PREFIX="$XDG_CACHE_HOME/mode/chromium"
+mkcd "$XDG_CACHE_HOME/mode/chromium"
-mkdir -p "$PREFIX"
-rm -f "$PREFIX/Cached Theme.pak"
+rm -f 'Cached Theme.pak'
-magick -size 100x100 "xc:$bg" "$PREFIX/bg.png"
+magick -size 100x100 "xc:$bg" 'bg.png'
bg_alt=$(mix_rgb $color7 $bg 0.20)
fg_alt=$(mix_rgb $color15 $fg 0.60)
bg="$(hex_to_rgb_array "$bg")"
fg="$(hex_to_rgb_array "$fg")"
bg_alt="$(hex_to_rgb_array "$bg_alt")"
fg_alt="$(hex_to_rgb_array "$fg_alt")"
-cat << EOF > "$PREFIX/manifest.json"
+cat << EOF > 'manifest.json'
{
"description": "colorscheme generated by mode",
"manifest_version": 2,