Pursuit of the right music visualiser

< 1 min read    01 Oct 2017    

https://github.com/karlstav/cava

You need to install mpd first: sudo apt install mpd [Music player daemon]

Install in ubuntu:

sudo add-apt-repository ppa:tehtotalpwnage/ppa
sudo apt-get update
sudo apt-get install cava

Running it in the background:

install wmctrl first

gnome-terminal -e "cava" --window-with-profile=dc1 --role=dc1; sleep 0.3; wmctrl -i -r "$(wmctrl -l | grep "cava" | tail -1 | cut -f1 -d' ')" -e 10,0,594,1920,500

cava-gui: https://github.com/nikp123/cava

https://github.com/nikp123/cava-monstercat

https://www.devpy.me/how-to-add-a-music-visualizer-to-your-linux-desktop/

Had to stick with this finally :

#!/bin/bash
xfce4-terminal -e "cava" --hide-borders --hide-toolbar --hide-menubar --title=visbar --geometry=197x20+0+484 &  
sleep 0.3
wmctrl -r visbar -b add,below,sticky
wmctrl -r visbar -b add,skip_taskbar,skip_pager

Use shortcut for wmctrl -r :ACTIVE: -b toggle, above so that you control if it’s above all or not.

Did not work :/ Use window manager tweaks in xfce (default key for Toggle above all windows) Things you need to mae sure it runs in foreground, but does not mess with your clicks. xdotool, xwininfo

Add vis as well.

use gpick to find colours you want

#1f80f3 #04bfc7 #09ec8b #34fd43 #70e814 #aeb801 #dc8409 #f84d29 #f91b64 #9f0edf

You can get the colours from ~/.config/vis/colors as well ! If only I knew earlier.

Some rights reserved.

Leave a Comment