Add initial dotfiles
This commit is contained in:
1
.config/glava/bars
Symbolic link
1
.config/glava/bars
Symbolic link
@@ -0,0 +1 @@
|
||||
/etc/xdg/glava//bars
|
32
.config/glava/bars.glsl
Executable file
32
.config/glava/bars.glsl
Executable file
@@ -0,0 +1,32 @@
|
||||
|
||||
/* Center line thickness (pixels) */
|
||||
#define C_LINE 1
|
||||
/* Width (in pixels) of each bar */
|
||||
#define BAR_WIDTH 4
|
||||
/* Width (in pixels) of each bar gap */
|
||||
#define BAR_GAP 0
|
||||
/* Outline color */
|
||||
#define BAR_OUTLINE #262626
|
||||
/* 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 400
|
||||
/* Whether the current settings use the alpha channel;
|
||||
enabling this is required for alpha to function
|
||||
correctly on X11 with `"native"` transparency. */
|
||||
#define USE_ALPHA 0
|
||||
/* How strong the gradient changes */
|
||||
#define GRADIENT_POWER 60
|
||||
/* Bar color changes with height */
|
||||
#define GRADIENT (d / GRADIENT_POWER + 1)
|
||||
/* Bar color */
|
||||
#define COLOR (#3366b2 * GRADIENT)
|
||||
/* Direction that the bars are facing, 0 for inward, 1 for outward */
|
||||
#define DIRECTION 0
|
||||
/* Whether to switch left/right audio buffers */
|
||||
#define INVERT 0
|
||||
/* Whether to flip the output vertically */
|
||||
#define FLIP 0
|
||||
/* Whether to mirror output along `Y = X`, causing output to render on the left side of the window */
|
||||
/* Use with `FLIP 1` to render on the right side */
|
||||
#define MIRROR_YX 0
|
1
.config/glava/circle
Symbolic link
1
.config/glava/circle
Symbolic link
@@ -0,0 +1 @@
|
||||
/etc/xdg/glava//circle
|
24
.config/glava/circle.glsl
Executable file
24
.config/glava/circle.glsl
Executable file
@@ -0,0 +1,24 @@
|
||||
/* center radius (pixels) */
|
||||
#define C_RADIUS 128
|
||||
/* center line thickness (pixels) */
|
||||
#define C_LINE 1.5
|
||||
/* outline color */
|
||||
#define OUTLINE #333333
|
||||
/* Amplify magnitude of the results each bar displays */
|
||||
#define AMPLIFY 150
|
||||
/* Angle (in radians) for how much to rotate the visualizer */
|
||||
#define ROTATE (PI / 2)
|
||||
/* Whether to switch left/right audio buffers */
|
||||
#define INVERT 0
|
||||
/* Whether to fill in the space between the line and inner circle */
|
||||
#define C_FILL 0
|
||||
/* Whether to apply a post-processing image smoothing effect
|
||||
1 to enable, 0 to disable. Only works with `xroot` transparency,
|
||||
and improves performance if disabled. */
|
||||
#define C_SMOOTH 1
|
||||
|
||||
/* Gravity step, overrude frin `smooth_parameters.glsl` */
|
||||
#request setgravitystep 6.0
|
||||
|
||||
/* Smoothing factor, override from `smooth_parameters.glsl` */
|
||||
#request setsmoothfactor 0.01
|
8
.config/glava/env_KWin.glsl
Executable file
8
.config/glava/env_KWin.glsl
Executable file
@@ -0,0 +1,8 @@
|
||||
#request setdecorated false
|
||||
#request setxwintype "normal"
|
||||
#request addxwinstate "below"
|
||||
#request addxwinstate "skip_taskbar"
|
||||
#request addxwinstate "skip_pager"
|
||||
#request addxwinstate "pinned"
|
||||
#request setclickthrough true
|
||||
|
2
.config/glava/env_Openbox.glsl
Executable file
2
.config/glava/env_Openbox.glsl
Executable file
@@ -0,0 +1,2 @@
|
||||
#request setxwintype "desktop"
|
||||
#request addxwinstate "pinned"
|
3
.config/glava/env_Xfwm4.glsl
Executable file
3
.config/glava/env_Xfwm4.glsl
Executable file
@@ -0,0 +1,3 @@
|
||||
#request setxwintype "desktop"
|
||||
#request addxwinstate "pinned"
|
||||
#request addxwinstate "below"
|
1
.config/glava/env_awesome.glsl
Executable file
1
.config/glava/env_awesome.glsl
Executable file
@@ -0,0 +1 @@
|
||||
#request setxwintype "!-"
|
1
.config/glava/env_default.glsl
Executable file
1
.config/glava/env_default.glsl
Executable file
@@ -0,0 +1 @@
|
||||
#request setxwintype "desktop"
|
1
.config/glava/env_i3.glsl
Executable file
1
.config/glava/env_i3.glsl
Executable file
@@ -0,0 +1 @@
|
||||
#request setxwintype "!-"
|
1
.config/glava/graph
Symbolic link
1
.config/glava/graph
Symbolic link
@@ -0,0 +1 @@
|
||||
/etc/xdg/glava//graph
|
31
.config/glava/graph.glsl
Executable file
31
.config/glava/graph.glsl
Executable file
@@ -0,0 +1,31 @@
|
||||
|
||||
/* Vertical scale, larger values will amplify output */
|
||||
#define VSCALE 300
|
||||
/* Rendering direction, either -1 (outwards) or 1 (inwards). */
|
||||
#define DIRECTION 1
|
||||
|
||||
/* Color gradient scale, (optionally) used in `COLOR` macro */
|
||||
#define GRADIENT_SCALE 75
|
||||
/* Color definition. By default this is a gradient formed by mixing two colors.
|
||||
`pos` represents the pixel position relative to the visualizer baseline. */
|
||||
#define COLOR mix(#802A2A, #4F4F92, clamp(pos / GRADIENT_SCALE, 0, 1))
|
||||
/* 1 to draw outline, 0 to disable */
|
||||
#define DRAW_OUTLINE 0
|
||||
/* 1 to draw edge highlight, 0 to disable */
|
||||
#define DRAW_HIGHLIGHT 1
|
||||
/* Whether to anti-alias the border of the graph, creating a smoother curve.
|
||||
This may have a small impact on performance.
|
||||
Note: requires `xroot` or `none` opacity to be set */
|
||||
#define ANTI_ALIAS 0
|
||||
/* outline color */
|
||||
#define OUTLINE #262626
|
||||
/* 1 to join the two channels together in the middle, 0 to clamp both down to zero */
|
||||
#define JOIN_CHANNELS 0
|
||||
/* 1 to invert (vertically), 0 otherwise */
|
||||
#define INVERT 0
|
||||
|
||||
/* Gravity step, overrude from `smooth_parameters.glsl` */
|
||||
#request setgravitystep 2.4
|
||||
|
||||
/* Smoothing factor, override from `smooth_parameters.glsl` */
|
||||
#request setsmoothfactor 0.015
|
1
.config/glava/radial
Symbolic link
1
.config/glava/radial
Symbolic link
@@ -0,0 +1 @@
|
||||
/etc/xdg/glava//radial
|
43
.config/glava/radial.glsl
Executable file
43
.config/glava/radial.glsl
Executable file
@@ -0,0 +1,43 @@
|
||||
|
||||
/* center radius (pixels) */
|
||||
#define C_RADIUS 855
|
||||
/* center line thickness (pixels) */
|
||||
#define C_LINE 0
|
||||
/* outline color */
|
||||
#define OUTLINE #333333
|
||||
/* number of bars (use even values for best results) */
|
||||
#define NBARS 300
|
||||
/* width (in pixels) of each bar*/
|
||||
#define BAR_WIDTH 3.5
|
||||
/* 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 350
|
||||
/* How strong the gradient changes */
|
||||
#define GRADIENT_POWER 60
|
||||
/* Bar color changes with height */
|
||||
#define GRADIENT (d / GRADIENT_POWER + 1)
|
||||
/* Bar color */
|
||||
#define COLOR (#3366b2 * GRADIENT)
|
||||
/* Angle (in radians) for how much to rotate the visualizer */
|
||||
#define ROTATE -(PI / 2)
|
||||
/* Whether to switch left/right audio buffers */
|
||||
#define INVERT 0
|
||||
/* Aliasing factors. Higher values mean more defined and jagged lines.
|
||||
Note: aliasing does not have a notable impact on performance, but requires
|
||||
`xroot` transparency to be enabled since it relies on alpha blending with
|
||||
the background. */
|
||||
#define BAR_ALIAS_FACTOR 1.2
|
||||
#define C_ALIAS_FACTOR 1.8
|
||||
/* Offset (Y) of the visualization */
|
||||
#define CENTER_OFFSET_Y 345
|
||||
/* Offset (X) of the visualization */
|
||||
#define CENTER_OFFSET_X -10
|
||||
|
||||
/* Gravity step, override from `smooth_parameters.glsl` */
|
||||
#request setgravitystep 5.0
|
||||
|
||||
/* Smoothing factor, override from `smooth_parameters.glsl` */
|
||||
#request setsmoothfactor 0.02
|
228
.config/glava/rc.glsl
Executable file
228
.config/glava/rc.glsl
Executable file
@@ -0,0 +1,228 @@
|
||||
|
||||
/* The module to use. A module is a set of shaders used to produce
|
||||
the visualizer. The structure for a module is the following:
|
||||
|
||||
module_name [directory]
|
||||
1.frag [file: fragment shader],
|
||||
2.frag [file: fragment shader],
|
||||
...
|
||||
|
||||
Shaders are loaded in numerical order, starting at '1.frag',
|
||||
continuing indefinitely. The results of each shader (except
|
||||
for the final pass) is given to the next shader in the list
|
||||
as a 2D sampler.
|
||||
|
||||
See documentation for more details. */
|
||||
#request mod bars
|
||||
|
||||
/* Window hints */
|
||||
#request setfloating true
|
||||
#request setdecorated false
|
||||
#request setfocused false
|
||||
#request setmaximized true
|
||||
|
||||
/* Set window background opacity mode. Possible values are:
|
||||
|
||||
"native" - True transparency provided by the compositor. Can
|
||||
reduce performance on some systems, depending on
|
||||
the compositor used.
|
||||
|
||||
"xroot" - Maintain a copy of the root window's pixmap
|
||||
(usually the desktop background) to provide a
|
||||
pseudo-transparent effect. Useful when no compositor
|
||||
is available or native transparency isn't nessecary.
|
||||
Has very little performance impact.
|
||||
|
||||
"none" - Disable window opacity completely. */
|
||||
#request setopacity "native"
|
||||
|
||||
/* Whether to mirror left and right audio input channels from PulseAudio.*/
|
||||
#request setmirror false
|
||||
|
||||
/* OpenGL context and GLSL shader versions, do not change unless
|
||||
you *absolutely* know what you are doing. */
|
||||
#request setversion 3 3
|
||||
#request setshaderversion 330
|
||||
|
||||
/* Window title */
|
||||
#request settitle "GLava"
|
||||
|
||||
/* Window geometry (x, y, width, height) */
|
||||
/* #request setgeometry 0 0 2560 750
|
||||
#request setgeometry 0 0 2560 750
|
||||
|
||||
/* Window background color (RGB format).
|
||||
Does not work with `setopacity "xroot"` */
|
||||
#request setbg 00000000
|
||||
|
||||
/* (X11 only) EWMH Window type. Possible values are:
|
||||
|
||||
"desktop", "dock", "toolbar", "menu",
|
||||
"utility", "splash", "dialog", "normal"
|
||||
|
||||
This will set _NET_WM_WINDOW_TYPE to _NET_WM_WINDOW_TYPE_(TYPE),
|
||||
where (TYPE) is the one of the window types listed (after being
|
||||
converted to uppercase).
|
||||
|
||||
Alternatively, you can set this value to "!", which will cause
|
||||
the window to be unmanaged. If this is set, then `addxwinstate`
|
||||
will do nothing, but you can use "!+" and "!-" to stack on top
|
||||
or below other windows.
|
||||
*/
|
||||
#request setxwintype "normal"
|
||||
|
||||
/* (X11 only) EWMH Window state atoms (multiple can be specified).
|
||||
Possible values are:
|
||||
|
||||
"modal", "sticky", "maximized_vert", "maximized_horz",
|
||||
"shaded", "skip_taskbar", "skip_pager", "hidden", "fullscreen",
|
||||
"above", "below", "demands_attention", "focused", "pinned"
|
||||
|
||||
This will add _NET_WM_STATE_(TYPE) atoms to _NET_WM_STATE,
|
||||
where (TYPE) is one of the window states listed (after being
|
||||
converted to uppercase).
|
||||
|
||||
The lines below (commented out by default) are of relevance
|
||||
if you are trying to get GLava to behave as a desktop widget
|
||||
and your WM is not correctly responding to the "desktop" value
|
||||
for `setxwintype`.
|
||||
*/
|
||||
#request addxwinstate "sticky"
|
||||
#request addxwinstate "skip_taskbar"
|
||||
#request addxwinstate "skip_pager"
|
||||
#request addxwinstate "below"
|
||||
// #request addxwinstate "pinned"
|
||||
|
||||
/* (X11 only) Use the XShape extension to support clicking through
|
||||
the GLava window. Useful when you want to interact with other
|
||||
desktop windows (icons, menus, desktop shells). Enabled by
|
||||
default when GLava itself is a desktop window. */
|
||||
#request setclickthrough true
|
||||
|
||||
/* Audio source
|
||||
|
||||
When the "pulseaudio" backend is set, this can be a number or
|
||||
a name of an audio sink or device to record from. Set to "auto"
|
||||
to use the default output device.
|
||||
|
||||
When the "fifo" backend is set, "auto" is interpreted as
|
||||
"/tmp/mpd.fifo". Otherwise, a valid path should be provided. */
|
||||
#request setsource "auto"
|
||||
|
||||
/* Buffer swap interval (vsync), set to '0' to prevent
|
||||
waiting for refresh, '1' (or more) to wait for the specified
|
||||
amount of frames. */
|
||||
#request setswap 1
|
||||
|
||||
/* Linear interpolation for audio data frames. Drastically
|
||||
improves smoothness with configurations that yield low UPS
|
||||
(`setsamplerate` and `setsamplesize`), or monitors that have
|
||||
high refresh rates.
|
||||
|
||||
This feature itself, however, will effect performance as it
|
||||
will have to interpolate data every frame on the CPU. It will
|
||||
automatically (and temporarily) disable itself if the update
|
||||
rate is close to, or higher than the framerate:
|
||||
|
||||
if (update_rate / frame_rate > 0.9) disable_interpolation;
|
||||
|
||||
This will delay data output by one update frame, so it can
|
||||
desync audio with visual effects on low UPS configs. */
|
||||
#request setinterpolate true
|
||||
|
||||
/* Frame limiter, set to the frames per second (FPS) desired or
|
||||
simply set to zero (or lower) to disable the frame limiter. */
|
||||
#request setframerate 0
|
||||
|
||||
/* Suspends rendering if a fullscreen window is focused while
|
||||
GLava is still visible (ie. on another monitor). This prevents
|
||||
rendering from interfering with other graphically intensive
|
||||
tasks.
|
||||
|
||||
If GLava is minimized or completely obscured, it will not
|
||||
render regardless of this option. */
|
||||
#request setfullscreencheck true
|
||||
|
||||
/* Enable/disable printing framerate every second. 'FPS' stands
|
||||
for 'Frames Per Second', and 'UPS' stands for 'Updates Per
|
||||
Second'. Updates are performed when new data is submitted
|
||||
by pulseaudio, and require transformations to be re-applied
|
||||
(thus being a good measure of how much work your CPU has to
|
||||
perform over time) */
|
||||
#request setprintframes true
|
||||
|
||||
/* PulseAudio sample buffer size. Lower values result in more
|
||||
frequent audio updates (also depends on sampling rate), but
|
||||
will also require all transformations to be applied much
|
||||
more frequently (CPU intensive).
|
||||
|
||||
High (>2048, with 22050 Hz) values will decrease accuracy
|
||||
(as some signals can be missed by transformations like FFT)
|
||||
|
||||
The following settings (@22050 Hz) produce the listed rates:
|
||||
|
||||
Sample UPS Description
|
||||
- 2048 -> 43.0 (low accuracy, cheap), use with < 60 FPS
|
||||
- 1024 -> 86.1 (high accuracy, expensive), use with >= 60 FPS
|
||||
- 512 -> 172.3 (extreme accuracy, very expensive), use only
|
||||
for graphing accurate spectrum data with
|
||||
custom modules.
|
||||
|
||||
If the framerate drops below the update rate, the update rate
|
||||
will be locked to the framerate (to prevent wasting CPU time).
|
||||
This behaviour means you can use a 1024 sample size on a 60Hz
|
||||
monitor with vsync enabled to get 60FPS and 60UPS.
|
||||
|
||||
For high refresh rate monitors (120+ Hz), it's recommended to
|
||||
also stick with the 1024 sample size and use interpolation to
|
||||
smooth the data, as accuracy beyond this setting is mostly
|
||||
meaningless for visual purposes.
|
||||
*/
|
||||
#request setsamplesize 1024
|
||||
|
||||
/* Audio buffer size to be used for processing and shaders.
|
||||
Increasing this value can have the effect of adding 'gravity'
|
||||
to FFT output, as the audio signal will remain in the buffer
|
||||
longer.
|
||||
|
||||
This value has a _massive_ effect on FFT performance and
|
||||
quality for some modules. */
|
||||
#request setbufsize 4096
|
||||
|
||||
/* PulseAudio sample rate. Lower values can add 'gravity' to
|
||||
FFT output, but can also reduce accuracy. Most hardware
|
||||
samples at 44100Hz.
|
||||
|
||||
Lower sample rates also can make output more choppy, when
|
||||
not using interpolation. It's generally OK to leave this
|
||||
value unless you have a strange PulseAudio configuration.
|
||||
|
||||
This option does nothing when using the "fifo" audio
|
||||
backend. Instead, an ideal rate should be be configured
|
||||
in the application generating the output. */
|
||||
#request setsamplerate 22050
|
||||
|
||||
/* ** DEPRECATED **
|
||||
Force window geometry (locking the window in place), useful
|
||||
for some pesky WMs that try to reposition the window when
|
||||
embedding in the desktop.
|
||||
|
||||
This routinely sends X11 events and should be avoided. */
|
||||
#request setforcegeometry false
|
||||
|
||||
/* ** DEPRECATED **
|
||||
Force window to be raised (focused in some WMs), useful for
|
||||
WMs that have their own stacking order for desktop windows.
|
||||
|
||||
This routinely sends X11 events and should be avoided. */
|
||||
#request setforceraised false
|
||||
|
||||
/* ** DEPRECATED **
|
||||
Scale down the audio buffer before any operations are
|
||||
performed on the data. Higher values are faster.
|
||||
|
||||
This value can affect the output of various transformations,
|
||||
since it applies (crude) averaging to the data when shrinking
|
||||
the buffer. It is reccommended to use `setsamplerate` and
|
||||
`setsamplesize` to improve performance or accuracy instead. */
|
||||
#request setbufscale 1
|
78
.config/glava/smooth_parameters.glsl
Executable file
78
.config/glava/smooth_parameters.glsl
Executable file
@@ -0,0 +1,78 @@
|
||||
|
||||
/* Settings for smoothing functions and transformations commonly
|
||||
used to display FFT output.
|
||||
|
||||
IMPORTANT: THESE VALUES CAN BE OVERRIDDEN IN MODULE CONFIG
|
||||
FILES, IF CHANGING VALUES HERE DOES NOT WORK, CHECK
|
||||
TO MAKE SURE THEY ARE NOT BEING SET ELSEWHERE.
|
||||
*/
|
||||
|
||||
/* The type of formula to use for weighting values when smoothing.
|
||||
Possible values:
|
||||
|
||||
- circular heavily rounded points
|
||||
- sinusoidal rounded at both low and high weighted values
|
||||
like a sine wave
|
||||
- linear not rounded at all; linear distance
|
||||
*/
|
||||
#define ROUND_FORMULA sinusoidal
|
||||
|
||||
/* The sampling mode for processing raw FFT input:
|
||||
|
||||
- average averages all the inputs in the sample range for
|
||||
a given point. Produces smooth output, but peaks
|
||||
are not well represented
|
||||
- maximum obtains the best value from the closest peak in
|
||||
the sample range. Very accurate peaks, but
|
||||
output is jagged and sporadic.
|
||||
- hybrid uses the results from both `average` and `maximum`
|
||||
with the weight provided in `SAMPLE_HYBRID_WEIGHT` */
|
||||
#define SAMPLE_MODE average
|
||||
/* Weight should be provided in the range (0, 1). Higher values favour
|
||||
averaged results. `hybrid` mode only. */
|
||||
#define SAMPLE_HYBRID_WEIGHT 0.65
|
||||
|
||||
/* Factor used to scale frequencies. Lower values allows lower
|
||||
frequencies to occupy more space. */
|
||||
#define SAMPLE_SCALE 8
|
||||
|
||||
/* The frequency range to sample. 1.0 would be the entire FFT output,
|
||||
and lower values reduce the displayed frequencies in a log-like
|
||||
scale. */
|
||||
#define SAMPLE_RANGE 0.9
|
||||
|
||||
/* Factor for how to scale higher frequencies. Used in a linear equation
|
||||
which is multiplied by the result of the fft transformation. */
|
||||
#request setfftscale 10.2
|
||||
|
||||
/* Cutoff for the bass end of the audio data when scaling frequencies.
|
||||
Higher values cause more of the bass frequencies to be skipped when
|
||||
scaling. */
|
||||
#request setfftcutoff 0.3
|
||||
|
||||
/* How many frames to queue and run through the average function.
|
||||
Increasing this value will create latency between the audio and the
|
||||
animation, but will make for much smoother results. */
|
||||
#request setavgframes 6
|
||||
|
||||
/* Whether to window frames ran through the average function (new & old
|
||||
frames are weighted less). This massively helps smoothing out
|
||||
spontaneous values 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 4.2
|
||||
|
||||
/* Smoothing factor. Larger values mean more smoothing in the output,
|
||||
however high values can be expensive to compute. Values are in
|
||||
normalized width: [0.0, 1.0) */
|
||||
#request setsmoothfactor 0.025
|
||||
|
||||
/* Whether to use a separate pass for audio data while smoothing. On
|
||||
most hardware, this will improve performance, but involves doing a
|
||||
separate render step for each audio texture and will add some driver
|
||||
(CPU) overhead. */
|
||||
#request setsmoothpass true
|
1
.config/glava/util
Symbolic link
1
.config/glava/util
Symbolic link
@@ -0,0 +1 @@
|
||||
/etc/xdg/glava//util
|
1
.config/glava/wave
Symbolic link
1
.config/glava/wave
Symbolic link
@@ -0,0 +1 @@
|
||||
/etc/xdg/glava//wave
|
14
.config/glava/wave.glsl
Executable file
14
.config/glava/wave.glsl
Executable file
@@ -0,0 +1,14 @@
|
||||
/* min (vertical) line thickness */
|
||||
#define MIN_THICKNESS 1
|
||||
|
||||
/* max (vertical) line thickness */
|
||||
#define MAX_THICKNESS 6
|
||||
|
||||
/* base color to use, distance from center will multiply the RGB components */
|
||||
#define BASE_COLOR vec4(0.7, 0.2, 0.45, 1)
|
||||
|
||||
/* amplitude */
|
||||
#define AMPLIFY 500
|
||||
|
||||
/* outline color */
|
||||
#define OUTLINE vec4(0.15, 0.15, 0.15, 1)
|
Reference in New Issue
Block a user