From c5cd41b3fd3f36ab1b7a4281c501431a09f7a92f Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 14 Jan 2021 14:39:40 +0100 Subject: [PATCH] cava module --- .config/polybar/config | 21 ++- .config/polybar/scripts/modules/cava.py | 188 +++++++++++++++++++ .config/polybar/scripts/modules/cava_read.sh | 12 ++ 3 files changed, 214 insertions(+), 7 deletions(-) create mode 100644 .config/polybar/scripts/modules/cava.py create mode 100644 .config/polybar/scripts/modules/cava_read.sh diff --git a/.config/polybar/config b/.config/polybar/config index 96045b0..84acc1a 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -27,7 +27,7 @@ unfocused = ${xrdb:foreground} [bar/floating] ;modules-right = disk_short_pc checkupdates ovpn nvpn eth_pc modules-left = sysinfo button_pavucontrol -modules-center = clock playerctl_long +modules-center = cava clock playerctl_long modules-right = sensors_cpu_pc nvgpu memory monitor = ${env:MONITOR:DP-4} width = 60% @@ -66,7 +66,7 @@ offset-x = 20% offset-y = 54px fixed-center = true background = ${colors.background} -foreground = ${colors.foreground} +forFeground = ${colors.foreground} line-size = 1 line-color = #000 separator =| @@ -228,11 +228,11 @@ click-middle = "bash ~/Userdata/Scripts/Launchers/restart_pulseaudio_1s.sh" [module/clock] type = internal/date interval = 1 -date = -date-alt = %d.%m.%Y, -time = %H:%M -time-alt = %H:%M:%S -label = %date% %time% +date = +date-alt =%d.%m.%Y +time =" %H:%M" +time-alt =%H:%M:%S, +label =%time% %date% [module/clock_icon] inherit = "module/clock" @@ -381,6 +381,13 @@ exec = ~/.config/polybar/scripts/polypopup.sh click-left = ~/.config/polybar/scripts/polypopup.sh --toggle content = 󰋼 +[module/cava] +type = custom/script +tail = true +interval = 0.1 +format =