diff --git a/.config/waybar/config.jsonc b/.config/waybar/config.jsonc index fa10437..1f2529c 100644 --- a/.config/waybar/config.jsonc +++ b/.config/waybar/config.jsonc @@ -33,8 +33,7 @@ "custom/arch", "clock", "custom/weather", - "hyprland/workspaces", - "backlight" + "hyprland/workspaces" ], "modules-center": [ "hyprland/window" @@ -45,6 +44,7 @@ "tray", "hyprland/language", "battery", + "backlight", "network", "bluetooth" ], @@ -52,4 +52,4 @@ "~/.config/waybar/default-modules.jsonc" ] } -] \ No newline at end of file +] diff --git a/.config/waybar/scripts/cava.sh b/.config/waybar/scripts/cava.sh new file mode 100755 index 0000000..561e7c8 --- /dev/null +++ b/.config/waybar/scripts/cava.sh @@ -0,0 +1,15 @@ +#! /bin/bash + +bar="▁▂▃▄▅▆▇█" +dict="s/;//g;" + +i=0 +while [ $i -lt ${#bar} ] +do + dict="${dict}s/$i/${bar:$i:1}/g;" + i=$((i=i+1)) +done + +cava -p ~/.config/cava/config-waybar | while read -r line; do + echo $line | sed $dict +done diff --git a/.config/waybar/style.css b/.config/waybar/style.css index 42be69e..72bdf22 100644 --- a/.config/waybar/style.css +++ b/.config/waybar/style.css @@ -95,7 +95,9 @@ tooltip { } #backlight { - border-radius: 10px 0px 0px 10px; + color: mix(@BANANA, @theme_fg_color, 0.5); + margin-right: 0px; + border-radius: 0px; } #tray {} @@ -167,10 +169,11 @@ tooltip { #battery { color: mix(@LIME, @theme_fg_color, 0.5); border-radius: 10px 0px 0px 10px; + margin-right: 0px; } #custom-weather { color: mix(@ORANGE, @theme_fg_color, 0.5); border-radius: 0px 10px 10px 0px; margin-left: 0px; -} \ No newline at end of file +}