Skip to content

Instantly share code, notes, and snippets.

@Omar-Elrefaei
Created February 5, 2018 15:45
Show Gist options
  • Save Omar-Elrefaei/104c4e5dac8f09a2b111028860b7f4a9 to your computer and use it in GitHub Desktop.
Save Omar-Elrefaei/104c4e5dac8f09a2b111028860b7f4a9 to your computer and use it in GitHub Desktop.
Radial config for Glava in (~/.config/glava/)
/* center radius (pixels) */
#define C_RADIUS 112
/* center line thickness (pixels) */
#define C_LINE 2
/* outline color --- (R, G, B, transparency)*/
#define OUTLINE vec4(0, 0, 0, 0)
/* number of bars (use even values for best results) */
#define NBARS 50
/* width (in pixels) of each bar*/
#define BAR_WIDTH 6
/* outline color */
#define BAR_OUTLINE OUTLINE
/* outline width (in pixels, set to 0 to disable outline drawing) */
#define BAR_OUTLINE_WIDTH 0
/* Amplify magnitude of the results each bar displays */
#define AMPLIFY 300
/* Bar color */
/* Color R G B trans * ((d / x) + y)
y = {0 = 1 opaqe color, < 1 = starts with grey, >1 = more bahet/brigtness}
x = { higher values drives the gradient slower toward white
Green is (0.09, 0.39, 0.09, 1) * ((d / 60) + 1)) */
#define COLOR (vec4(0.39, 0.39, 0.39, 1) * ((d / 60) + 1))
/* Angle (in radians) for how much to rotate the visualizer */
#define ROTATE (-PI / 2)
/* Whether to switch left/right audio buffers */
#define INVERT 0
/* Smoothing factor, in normalized width */
#define SMOOTH 0.02
/* How many frames to queue and run through the average function */
#request setavgframes 6
/* Whether to window frames ran through the average function (new & old frames
are weighted less). This massively helps smoothing out spikes in the animation */
#request setavgwindow true
/* Gravity step, higher values means faster drops. The step is applied in a rate
independant method like so:
val -= (gravitystep) * (seconds per update) */
#request setgravitystep 6
/* This is just the changed values to fit these two wallpapers
(imgur.com/TGdtZ2C.png) (imgur.com/YREBbDn.png).
The rest are glava defaults */
/* GLFW window geometry (x, y, width, height) */
#request setgeometry 433 148 500 530
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment