diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-09-24 12:18:39 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-09-24 12:19:41 +0200 |
commit | d6d48b7790ec2a68112a5dc491bf56b4feae57ec (patch) | |
tree | 9485477b99dd2eb5dc5cbd8b71bf74b1e903cfac | |
parent | 23a888aa872a5deefc000288932ea213f1415402 (diff) |
change fallback colors polybar
-rw-r--r-- | .config/polybar/config##template | 8 | ||||
-rwxr-xr-x | .local/share/bin/mode | 17 |
2 files changed, 18 insertions, 7 deletions
diff --git a/.config/polybar/config##template b/.config/polybar/config##template index 8a78051..3e231db 100644 --- a/.config/polybar/config##template +++ b/.config/polybar/config##template @@ -1,13 +1,7 @@ [barsettings] padding = 1.9 -[color] -bg = ${xrdb:background:#fdf9f7} -fg = ${xrdb:foreground:#121213} -fg-alt = ${xrdb:background:#fdf9f7} -fg-half = ${xrdb:color8:#bbb8b7} - -alpha = #00000000 +include-file = ./colors [global/wm] margin-bottom = 50 diff --git a/.local/share/bin/mode b/.local/share/bin/mode index e25404b..096435f 100755 --- a/.local/share/bin/mode +++ b/.local/share/bin/mode @@ -193,6 +193,22 @@ switch_chrome() { }' > manifest.json } +switch_polybar() { + read -r -d '' conf << EOF +[color] +bg = \${xrdb:background:$(get_color background)} +fg = \${xrdb:foreground:$(get_color foreground)} +fg-alt = \${xrdb:background:$(get_color background)} +fg-half = \${xrdb:color8:$(get_color color8)} + +alpha = #00000000 + +; vim:ft=dosini +EOF + echo "$conf" > ~/.config/polybar/colors + +} + reload_terms() { read -r -d '' escape_msgs << EOF \033]11;$(get_color background)\007 @@ -246,6 +262,7 @@ switch_cfgs() { switch_fcitx5 $1 switch_chrome $1 switch_startpage $1 + switch_polybar $1 mkdir -p ~/.local/share/mode echo $1 > ~/.local/share/mode/active |