aboutsummaryrefslogtreecommitdiff
path: root/.local/share
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-06-04 15:19:38 +0200
committerlonkaars <loek@pipeframe.xyz>2023-06-04 15:19:38 +0200
commit2f5ecfcd737cdf8052c01f2547e810dc22f35425 (patch)
tree522a92d54bef6fa11451f170ce50c59fb2b4034d /.local/share
parentea3be098bbb682bb0c155534a9fffc09a559cb15 (diff)
create crappy discord theme
Diffstat (limited to '.local/share')
-rwxr-xr-x.local/share/bin/mode34
1 files changed, 34 insertions, 0 deletions
diff --git a/.local/share/bin/mode b/.local/share/bin/mode
index 97259fb..39aed52 100755
--- a/.local/share/bin/mode
+++ b/.local/share/bin/mode
@@ -223,6 +223,39 @@ EOF
echo "$conf" | cat - ~/.config/nvim/lightline-base.vim > ~/.config/nvim/lightline.vim
}
+switch_discord() {
+ read -r -d '' conf << EOF
+/**
+ * @name mode
+ * @author mode
+ * @version 0
+*/
+
+/* AUTOMATICALLY GENERATED, DO NOT EDIT */
+
+.theme-dark, .theme-light {
+ --background-primary: $(get_color background);
+ --background-secondary: $(get_color background);
+ --background-secondary-alt: $(get_color background);
+ --text-primary: $(get_color foreground);
+ --text-secondary: $(get_color color15);
+ --accent: $(get_color color4);
+ --accent-alt: $(get_color color12);
+ --error: $(get_color color1);
+ --error-alt: $(get_color color9);
+}
+
+.theme-dark {
+ --background-tertiary: $(mix_rgb $(get_color background) '#000000' '0.7');
+}
+
+.theme-light {
+ --background-tertiary: $(get_color background);
+}
+EOF
+ echo "$conf" > ~/.config/BetterDiscord/themes/mode.theme.css
+}
+
reload_terms() {
read -r -d '' escape_msgs << EOF
\033]11;$(get_color background)\007
@@ -288,6 +321,7 @@ switch_cfgs() {
switch_startpage $1
switch_polybar $1
switch_vim_lightline $1
+ switch_discord $1
mkdir -p ~/.local/share/mode
echo $1 > ~/.local/share/mode/active