nixos/home/hyprland/ironbar/reference/scripts/cava

4 lines
317 B
Plaintext
Raw Normal View History

2023-10-10 20:00:04 +01:00
#! /usr/bin/env bash
printf "[general]\nframerate=160\nbars = 7\n[output]\nmethod = raw\nraw_target = /dev/stdout\ndata_format = ascii\nascii_max_range = 7\n[input]\nmethod=pulse\nsource=auto\n" | cava -p /dev/stdin | sed -u 's/;//g;s/0/▁/g;s/1/▂/g;s/2/▃/g;s/3/▄/g;s/4/▅/g;s/5/▆/g;s/6/▇/g;s/7/█/g; '