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 /.local/share | |
parent | 23a888aa872a5deefc000288932ea213f1415402 (diff) |
change fallback colors polybar
Diffstat (limited to '.local/share')
-rwxr-xr-x | .local/share/bin/mode | 17 |
1 files changed, 17 insertions, 0 deletions
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 |