From 5d5deb56a62b85ae1b066be337ec28f67812cc1a Mon Sep 17 00:00:00 2001 From: lonkaars Date: Fri, 23 Sep 2022 09:15:07 +0200 Subject: fix chrome light theme --- .cache/wal/chromium/manifest.json##hostname.thoncc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.cache/wal/chromium/manifest.json##hostname.thoncc b/.cache/wal/chromium/manifest.json##hostname.thoncc index 5505716..1c630db 100644 --- a/.cache/wal/chromium/manifest.json##hostname.thoncc +++ b/.cache/wal/chromium/manifest.json##hostname.thoncc @@ -4,9 +4,9 @@ "name": "pywal", "theme": { "images": { "theme_frame": "bg.png" }, - "colors": { + "colors": { "bookmark_text": [ 18, 18, 19 ], - "frame": [ 0, 0, 0 ], + "frame": [ 253, 249, 247 ], "ntp_background": [ 253, 249, 247 ], "ntp_text": [ 253, 249, 247 ], "tab_background_text": [ 18, 18, 19 ], -- cgit v1.2.3 From 5ee0b9a18e52b415b3ca4edebb8403694ecc9d08 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Fri, 23 Sep 2022 09:52:05 +0200 Subject: add chromium to `mode` script --- .cache/wal/chromium/bg-dark.png | Bin 0 -> 275 bytes .cache/wal/chromium/bg-light.png | Bin 0 -> 285 bytes .cache/wal/chromium/bg.png##default | Bin 275 -> 0 bytes .cache/wal/chromium/bg.png##hostname.thoncc | Bin 285 -> 0 bytes .cache/wal/chromium/manifest-dark.json | 32 +++++++++++++++++++++ .cache/wal/chromium/manifest-light.json | 29 +++++++++++++++++++ .../wal/chromium/manifest.json##hostname.superesc | 32 --------------------- .cache/wal/chromium/manifest.json##hostname.thoncc | 29 ------------------- .local/share/bin/mode | 8 ++++++ 9 files changed, 69 insertions(+), 61 deletions(-) create mode 100644 .cache/wal/chromium/bg-dark.png create mode 100644 .cache/wal/chromium/bg-light.png delete mode 100644 .cache/wal/chromium/bg.png##default delete mode 100644 .cache/wal/chromium/bg.png##hostname.thoncc create mode 100644 .cache/wal/chromium/manifest-dark.json create mode 100644 .cache/wal/chromium/manifest-light.json delete mode 100644 .cache/wal/chromium/manifest.json##hostname.superesc delete mode 100644 .cache/wal/chromium/manifest.json##hostname.thoncc diff --git a/.cache/wal/chromium/bg-dark.png b/.cache/wal/chromium/bg-dark.png new file mode 100644 index 0000000..46227a9 Binary files /dev/null and b/.cache/wal/chromium/bg-dark.png differ diff --git a/.cache/wal/chromium/bg-light.png b/.cache/wal/chromium/bg-light.png new file mode 100644 index 0000000..1eeca16 Binary files /dev/null and b/.cache/wal/chromium/bg-light.png differ diff --git a/.cache/wal/chromium/bg.png##default b/.cache/wal/chromium/bg.png##default deleted file mode 100644 index 46227a9..0000000 Binary files a/.cache/wal/chromium/bg.png##default and /dev/null differ diff --git a/.cache/wal/chromium/bg.png##hostname.thoncc b/.cache/wal/chromium/bg.png##hostname.thoncc deleted file mode 100644 index 1eeca16..0000000 Binary files a/.cache/wal/chromium/bg.png##hostname.thoncc and /dev/null differ diff --git a/.cache/wal/chromium/manifest-dark.json b/.cache/wal/chromium/manifest-dark.json new file mode 100644 index 0000000..529b863 --- /dev/null +++ b/.cache/wal/chromium/manifest-dark.json @@ -0,0 +1,32 @@ +{ + "description": "Colorscheme generated by jswal", + "manifest_version": 2, + "name": "pywal", + "theme": { + "images": { "theme_frame": "bg.png" }, + "colors": { + "frame": [ 15, 20, 25 ], + "button_background": [ 255, 255, 255 ], + "ntp_background": [ 15, 20, 25 ], + "ntp_text": [ 15, 20, 25 ], + "toolbar": [ 23, 28, 36 ], + "tab_background_text": [ 73, 81, 98 ], + "tab_background_text_inactive": [ 73, 81, 98 ], + "tab_background_text_incognito": [ 73, 81, 98 ], + "tab_background_text_incognito_inactive": [ 73, 81, 98 ], + "bookmark_text": [ 248, 248, 240 ], + "tab_text": [ 248, 248, 240 ] + }, + "tints": { + "buttons": [ + 0.5461538461538459, + 29.279279279279276, + 87.05882352941177 + ], + "frame_inactive": [ -1, -1, -1 ], + "frame_incognito": [ -1, -1, -1 ], + "frame_incognito_inactive": [ -1, -1, -1 ] + } + }, + "version": "2" +} diff --git a/.cache/wal/chromium/manifest-light.json b/.cache/wal/chromium/manifest-light.json new file mode 100644 index 0000000..1c630db --- /dev/null +++ b/.cache/wal/chromium/manifest-light.json @@ -0,0 +1,29 @@ +{ + "description": "Colorscheme generated by jswal", + "manifest_version": 2, + "name": "pywal", + "theme": { + "images": { "theme_frame": "bg.png" }, + "colors": { + "bookmark_text": [ 18, 18, 19 ], + "frame": [ 253, 249, 247 ], + "ntp_background": [ 253, 249, 247 ], + "ntp_text": [ 253, 249, 247 ], + "tab_background_text": [ 18, 18, 19 ], + "tab_background_text_inactive": [ 18, 18, 19 ], + "tab_background_text_incognito": [ 18, 18, 19 ], + "tab_background_text_incognito_inactive": [ 18, 18, 19 ], + "tab_text": [ 18, 18, 19 ], + "toolbar": [ 253, 249, 247 ], + "button_background": [ 255, 255, 255 ] + }, + "tints": { + "buttons": [ 0.5461538461538459, 29.279279279279276, + 87.05882352941177 ], + "frame_inactive": [ -1, -1, -1 ], + "frame_incognito": [ -1, -1, -1 ], + "frame_incognito_inactive": [ -1, -1, -1 ] + } + }, + "version": "2" +} diff --git a/.cache/wal/chromium/manifest.json##hostname.superesc b/.cache/wal/chromium/manifest.json##hostname.superesc deleted file mode 100644 index 529b863..0000000 --- a/.cache/wal/chromium/manifest.json##hostname.superesc +++ /dev/null @@ -1,32 +0,0 @@ -{ - "description": "Colorscheme generated by jswal", - "manifest_version": 2, - "name": "pywal", - "theme": { - "images": { "theme_frame": "bg.png" }, - "colors": { - "frame": [ 15, 20, 25 ], - "button_background": [ 255, 255, 255 ], - "ntp_background": [ 15, 20, 25 ], - "ntp_text": [ 15, 20, 25 ], - "toolbar": [ 23, 28, 36 ], - "tab_background_text": [ 73, 81, 98 ], - "tab_background_text_inactive": [ 73, 81, 98 ], - "tab_background_text_incognito": [ 73, 81, 98 ], - "tab_background_text_incognito_inactive": [ 73, 81, 98 ], - "bookmark_text": [ 248, 248, 240 ], - "tab_text": [ 248, 248, 240 ] - }, - "tints": { - "buttons": [ - 0.5461538461538459, - 29.279279279279276, - 87.05882352941177 - ], - "frame_inactive": [ -1, -1, -1 ], - "frame_incognito": [ -1, -1, -1 ], - "frame_incognito_inactive": [ -1, -1, -1 ] - } - }, - "version": "2" -} diff --git a/.cache/wal/chromium/manifest.json##hostname.thoncc b/.cache/wal/chromium/manifest.json##hostname.thoncc deleted file mode 100644 index 1c630db..0000000 --- a/.cache/wal/chromium/manifest.json##hostname.thoncc +++ /dev/null @@ -1,29 +0,0 @@ -{ - "description": "Colorscheme generated by jswal", - "manifest_version": 2, - "name": "pywal", - "theme": { - "images": { "theme_frame": "bg.png" }, - "colors": { - "bookmark_text": [ 18, 18, 19 ], - "frame": [ 253, 249, 247 ], - "ntp_background": [ 253, 249, 247 ], - "ntp_text": [ 253, 249, 247 ], - "tab_background_text": [ 18, 18, 19 ], - "tab_background_text_inactive": [ 18, 18, 19 ], - "tab_background_text_incognito": [ 18, 18, 19 ], - "tab_background_text_incognito_inactive": [ 18, 18, 19 ], - "tab_text": [ 18, 18, 19 ], - "toolbar": [ 253, 249, 247 ], - "button_background": [ 255, 255, 255 ] - }, - "tints": { - "buttons": [ 0.5461538461538459, 29.279279279279276, - 87.05882352941177 ], - "frame_inactive": [ -1, -1, -1 ], - "frame_incognito": [ -1, -1, -1 ], - "frame_incognito_inactive": [ -1, -1, -1 ] - } - }, - "version": "2" -} 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 -- cgit v1.2.3 From 4028eaa4f3ee2b5d570a3f0025b3eba798041cf9 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Fri, 23 Sep 2022 10:07:43 +0200 Subject: added missing keyboard indicator --- .config/polybar/config##template | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.config/polybar/config##template b/.config/polybar/config##template index 1359709..8a78051 100644 --- a/.config/polybar/config##template +++ b/.config/polybar/config##template @@ -137,6 +137,12 @@ exec = echo "%{T2}$(id -u -n)%{T-}@%{T2}$(uname -n)%{T-}" interval = 9999999 label-font = 2 +[module/keyboard] +type = custom/script +exec = ~/.local/share/bin/kbindicator +interval = 3 +label-font = 1 + {% include "config.{{ yadm.hostname }}" %} ; vim:ft=dosini -- cgit v1.2.3 From df924a12accc06b0fdfd55f4bc82c2238f0c7181 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Fri, 23 Sep 2022 11:39:48 +0200 Subject: start page color switch --- .config/startpage/index.html | 1 + .config/startpage/style.css | 44 ++++++++++++++++++++++++ .config/startpage/style.css##template | 63 ----------------------------------- .local/share/bin/mode | 27 +++++++++++++++ 4 files changed, 72 insertions(+), 63 deletions(-) create mode 100644 .config/startpage/style.css delete mode 100644 .config/startpage/style.css##template diff --git a/.config/startpage/index.html b/.config/startpage/index.html index 6a46387..1a8ed1b 100644 --- a/.config/startpage/index.html +++ b/.config/startpage/index.html @@ -5,6 +5,7 @@ New Tab + diff --git a/.config/startpage/style.css b/.config/startpage/style.css new file mode 100644 index 0000000..d7aa8d6 --- /dev/null +++ b/.config/startpage/style.css @@ -0,0 +1,44 @@ +:root { + --color0: #fdf9f7; + --color1: #8c627a; + --color2: #628c6e; + --color3: #8c8b62; + --color4: #626b8c; + --color5: #6e628c; + --color6: #62808c; + --color7: #121213; + --color8: #ffffff; + --color9: #725063; + --color10: #50725a; + --color11: #727250; + --color12: #505872; + --color13: #5a5072; + --color14: #506872; + --color15: #393b3b; +} + +html, body { + margin: 0; + padding: 0; + background: var(--color0); + color: var(--color15); + font-family: "JetBrainsMono Nerd Font"; +} + +* { + cursor: normal; + user-select: none; +} + +h1 { + margin: 0; +} + +.center { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + white-space: nowrap; +} + diff --git a/.config/startpage/style.css##template b/.config/startpage/style.css##template deleted file mode 100644 index 26e4fba..0000000 --- a/.config/startpage/style.css##template +++ /dev/null @@ -1,63 +0,0 @@ -:root { -{% if yadm.hostname == "thoncc" %} - --color0: #fdf9f7; - --color1: #8c627a; - --color2: #628c6e; - --color3: #8c8b62; - --color4: #626b8c; - --color5: #6e628c; - --color6: #62808c; - --color7: #121213; - --color8: #ffffff; - --color9: #725063; - --color10: #50725a; - --color11: #727250; - --color12: #505872; - --color13: #5a5072; - --color14: #506872; - --color15: #393b3b; -{% else %} - --color0: #0f1419; - --color1: #ff3f4f; - --color2: #81f900; - --color3: #ffd945; - --color4: #45a1ed; - --color5: #ef47c5; - --color6: #19d1e5; - --color7: #f8f8f0; - --color8: #495162; - --color9: #f95c76; - --color10: #7dfc5a; - --color11: #f9ce70; - --color12: #6395f2; - --color13: #ea79fc; - --color14: #88f0fc; - --color15: #fffff4; -{% endif %} -} - -html, body { - margin: 0; - padding: 0; - background: var(--color0); - color: var(--color15); - font-family: "JetBrainsMono Nerd Font"; -} - -* { - cursor: normal; - user-select: none; -} - -h1 { - margin: 0; -} - -.center { - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); - white-space: nowrap; -} - 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 -- cgit v1.2.3