This commit is contained in:
2026-06-15 00:24:26 +03:00
commit 3fab9257e0
45 changed files with 2729 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
[general]
bars = 6
[output]
method = raw
raw_target = /dev/stdout
data_format = ascii
ascii_max_range = 7
# Remove the 'ascii_data_format = box' lines—they don't apply to raw ascii mode.
[input]
# If it stays as zeros even when music plays, try changing 'pulse' to 'pipewire'
method = pulse
source = auto

View File

@@ -0,0 +1,7 @@
#!/bin/bash
killall -9 waybar
swaync-client --reload-css
waybar &
# swaync &

View File

@@ -0,0 +1,22 @@
#!/bin/bash
# Define the bar icons (same ones in your config)
icons=(" " "·" "" "=" "≡" "≡" "≡")
killall -q cava
# We read the numbers from CAVA and swap them for icons
cava -p ~/.config/waybar/scripts/cava_config | while read -r line; do
output=""
# Loop through each digit in the output (e.g., '0', '1', '7')
for ((i = 0; i < ${#line}; i++)); do
digit="${line:$i:1}"
# If it's a number, pick the icon. Otherwise, keep it.
if [[ $digit =~ [0-7] ]]; then
output+="${icons[$digit]}"
# If it's a semicolon or anything else, just skip it
else
continue
fi
done
echo "$output"
done