cli-visualizer icon indicating copy to clipboard operation
cli-visualizer copied to clipboard

cli visualizer not using terminal colors

Open darkralts opened this issue 4 years ago • 9 comments

before image

during image

i tried this ##Turns off overriding the user's terminal colors. This is true by default. colors.override.terminal=false

darkralts avatar Nov 09 '20 23:11 darkralts

image with it enabled it looks like this, which isnt that bad but the colors are still dark

darkralts avatar Nov 09 '20 23:11 darkralts

idk what i did but i fixed it but rebroke it somehow else

darkralts avatar Nov 11 '20 07:11 darkralts

Did you figure this out? I'm running vis on a non GUI terminal (I boot straight into multiuser runlevel without graphical user interface), and I can't get colours right.

mgarces avatar May 20 '21 10:05 mgarces

i am having this problem too

0xGodspeed avatar Aug 05 '21 08:08 0xGodspeed

How I solve it: sudo mkdir ~/.config/vis sudo mkdir ~/.config/vis/colors cd [your-directory-where-you-cloned-repository]/cli-visualizer/examples sudo cp config ~/.config/vis/ sudo cp rainbow ~/.config/vis/colors

uncommented all parameters except for those where # is used because I don't like them in visualization. But you can use them. Run vis in terminal

P.S. you can also copy this config: ##Refresh rate of the visualizers. A really high refresh rate may cause screen tearing. Default is 20. visualizer.fps=60

##Sets the audio sources to use. Currently available ones are "mpd" and "alsa"Sets the audio sources to use. ##Currently available ones are "mpd", "pulse" and "alsa". Defaults to "mpd". audio.sources=pulse

##vis tries to find the correct pulseaudio sink, however this will not work on all systems. ##If pulse audio is not working with vis try switching the audio source. A list can be found by running the ##command pacmd list-sinks | grep -e 'name:' -e 'index' #audio.pulse.source=0

##Defaults to "/tmp/mpd.fifo" mpd.fifo.path=/tmp/mpd.fifo

##If set to false the visualizers will use mono mode instead of stereo. Some visualizers will ##behave differently when mono is enabled. For example, spectrum show two sets of bars. audio.stereo.enabled=true

##Specifies how often the visualizer will change in seconds. 0 means do not rotate. Default is 0. #visualizer.rotation.secs=10

##Configures the samples rate and the cutoff frequencies. audio.sampling.frequency=44100 audio.low.cutoff.frequency=30 audio.high.cutoff.frequency=22050

##Applies scaling factor to both lorenz and ellipse visualizers. This is useful when the system audio is set #to a low volume. visualizer.scaling.multiplier=1.0

##Configures the visualizers and the order they are in. Available visualizers are spectrum,lorenz,ellipse. ##Defaults to spectrum,ellipse,lorenz visualizers=spectrum,ellipse,lorenz

##Configures what character the spectrum visualizer will use. Specifying a space (e.g " ") means the ##background will be colored instead of the character. Defaults to " ". #visualizer.spectrum.character=#

##Spectrum bar width. Defaults to 2. visualizer.spectrum.bar.width=2

##The amount of space between each bar in the spectrum visualizer. Defaults to 1. It's possible to set this to ##zero to have no space between bars visualizer.spectrum.bar.spacing=1

##Available smoothing options are monstercat, sgs, none. visualizer.spectrum.smoothing.mode=none

##This configures the falloff effect on the spectrum visualizer. Available falloff options are fill,top,none. ##Defaults to "fill" visualizer.spectrum.falloff.mode=fill

##Configures how fast the falloff character falls. This is an exponential falloff so values usually look ##best 0.9+ and small changes in this value can have a large effect. Defaults to 0.95 visualizer.spectrum.falloff.weight=0.95

##Margins in percent of total screen for spectrum visualizer. All margins default to 0 #visualizer.spectrum.top.margin=0.30 #visualizer.spectrum.bottom.margin=0.10 #visualizer.spectrum.right.margin=0.10 #visualizer.spectrum.left.margin=0.10

##Reverses the direction of the spectrum so that high freqs are first and low freqs last. Defaults to false. visualizer.spectrum.reversed=false

##This configures the sgs smoothing effect on the spectrum visualizer. More points spreads out the smoothing ##effect and increasing passes runs the smoother multiple times on reach run. Defaults are points=3 and passes=1 visualizer.sgs.smoothing.points=3 visualizer.sgs.smoothing.passes=1

##Configures what character the ellipse visualizer will use. Specifying a space (e.g " ") means the ##background will be colored instead of the character. Defaults to "█". #visualizer.ellipse.character=#

##The radius of each color ring in the ellipse visualizer. Defaults to 2. #visualizer.ellipse.radius=2

##Configures what character the lorenz visualizer will use. Specifying a space (e.g " ") means the ##background will be colored instead of the character. Defaults to "█". #visualizer.lorenz.character=#

##Turns off overriding the user's terminal colors. This is true by default. colors.override.terminal=true

##Specifies the color scheme. The color scheme must be in ~/.config/vis/colors/ directory. The default scheme is "colors". colors.scheme=rainbow

RedDofamine avatar Mar 08 '22 22:03 RedDofamine

I tried colors.scheme=basic_colors,rainbow at end to play with more color list files, but it seems like file basic_colors is not so handy to read: hexadecimal seems to work much better.

rogonow avatar Oct 17 '22 19:10 rogonow

I add here that dark bluish rainbow hexadecimal code:

#24043c
#1c093f
#131040
#0c183f
#06213b
#022a36
#00322f
#003826
#033d1e
#084015
#0f400d
#163e07
#203a02
#293300
#302c00
#372303
#3c1b07
#40120e
#400b15
#3f051e
#3B0127

rogonow avatar Oct 17 '22 20:10 rogonow

xD the weed background. but yeah if anyones wondering this is an easy fix, you really just have to make your own colorscheme or steal the rainbow one off of the git. (this git right here)

darkralts avatar Oct 30 '22 02:10 darkralts

https://github.com/dpayne/cli-visualizer/blob/master/examples/rainbow (what im talking about)

darkralts avatar Oct 30 '22 02:10 darkralts