diff --git a/.config/cava/config b/.config/cava/config index 7f85e4c..2a233a1 100644 --- a/.config/cava/config +++ b/.config/cava/config @@ -5,7 +5,7 @@ # Smoothing mode. Can be 'normal', 'scientific' or 'waves'. DEPRECATED as of 0.6.0 ; mode = normal - + # Accepts only non-negative values. ; framerate = 60 @@ -21,10 +21,9 @@ # The number of bars (0-200). 0 sets it to auto (fill up console). # Bars' width and space between bars in number of characters. -;bars = 0 -;bar_width = 1 -;bar_spacing = 0 - +; bars = 0 +; bar_width = 2 +; bar_spacing = 1 # Lower and higher cutoff frequencies for lowest and highest bars # the bandwidth of the visualizer. @@ -33,11 +32,18 @@ ; lower_cutoff_freq = 50 ; higher_cutoff_freq = 10000 +# FFT buffer is set in the exponent of 2 and must be between 8 - 16, 8 = 256, 16 = 65536 +# this is the audio buffer used to create the spectrum +# increasing the will improve the accuracy of the visualization, +# but will also make it slower and increase CPU usage +# anything below 10 and above 13 is considered experimental. +; FFTbufferSize = 12; + [input] -# Audio capturing method. Possible methods are: 'pulse', 'alsa', 'fifo' or 'sndio'. +# Audio capturing method. Possible methods are: 'pulse', 'alsa', 'fifo', 'sndio' or 'shmem' # Defaults to 'pulse', 'alsa' or 'fifo', in that order, dependent on what support cava was built with. # # All input methods uses the same config variable 'source' @@ -45,32 +51,45 @@ # # For pulseaudio 'source' will be the source. Default: 'auto', which uses the monitor source of the default sink # (all pulseaudio sinks(outputs) have 'monitor' sources(inputs) associated with them). -# +# # For alsa 'source' will be the capture device. # For fifo 'source' will be the path to fifo-file. -method = pulse -source = auto +# For shmem 'source' will be /squeezelite-AA:BB:CC:DD:EE:FF where 'AA:BB:CC:DD:EE:FF' will be squeezelite's MAC address +; method = pulse +; source = auto ; method = alsa ; source = hw:Loopback,1 ; method = fifo ; source = /tmp/mpd.fifo +; sample_rate = 44100 +; sample_bits = 16 +; method = shmem +; source = /squeezelite-AA:BB:CC:DD:EE:FF + +; method = portaudio +; source = auto [output] -# Ouput method. Can be 'ncurses', 'noncurses' or 'raw'. -# 'noncurses' is for systems that does not suport ncurses. -# 'raw' is a 16 bit data stream of the bar heights that can be used to send to other applications. +# Output method. Can be 'ncurses', 'noncurses' or 'raw'. +# 'noncurses' uses a custom framebuffer technique and draws only changes +# from frame to frame. As of version 0.7.0 'noncurses' is default. +# +# 'raw' is an 8 or 16 bit (configurable via the 'bit_format' option) data +# stream of the bar heights that can be used to send to other applications. # 'raw' defaults to 200 bars, which can be adjusted in the 'bars' option above. -; method = ncurses +method = ncurses # Visual channels. Can be 'stereo' or 'mono'. # 'stereo' mirrors both channels with low frequencies in center. -# 'mono' averages both channels and outputs left to right lowest to highest frequencies. +# 'mono' outputs left to right lowest to highest frequencies. +# 'mono_option' set mono to either take input from 'left', 'right' or 'average'. ; channels = stereo +; mono_option = average # Raw output target. A fifo will be created if target does not exist. ; raw_target = /dev/stdout @@ -94,19 +113,25 @@ source = auto [color] # Colors can be one of seven predefined: black, blue, cyan, green, magenta, red, white, yellow. -# Or defined by hex code '#xxxxxx' (hex code must be within ''). User defined colors requires a -# terminal that can change color definitions such as Gnome-terminal or rxvt. -; background = black -; foreground = '#008080' +# Or defined by hex code '#xxxxxx' (hex code must be within ''). User defined colors requires +# ncurses output method and a terminal that can change color definitions such as Gnome-terminal or rxvt. +# default is to keep current terminal color +; background = default +; foreground = default -# Gradient mode, only hex defined colors are supported, background must also be defined in hex -# or remain commented out. 1 = on, 0 = off. Warning: for certain terminal emulators cava will -# not able to restore color definitions on exit, simply restart your terminal to restore colors. +# Gradient mode, only hex defined colors (and thereby ncurses mode) are supported, +# background must also be defined in hex or remain commented out. 1 = on, 0 = off. +# You can define as many as 8 different colors. They range from bottom to top of screen gradient = 1 -gradient_count = 3 -gradient_color_1 = '#008080' -gradient_color_2 = '#D58E00' -gradient_color_3 = '#D50000' +gradient_count = 8 +gradient_color_1 = '#6699CC' +gradient_color_2 = '#6699CC' +gradient_color_3 = '#6699CC' +gradient_color_4 = '#6699CC' +gradient_color_5 = '#CC99CC' +gradient_color_6 = '#CC99CC' +gradient_color_7 = '#F2777A' +gradient_color_8 = '#F2777A' @@ -114,17 +139,15 @@ gradient_color_3 = '#D50000' # Percentage value for integral smoothing. Takes values from 0 - 100. # Higher values means smoother, but less precise. 0 to disable. -; integral = 70 +; integral = 77 -# Disables or enables the so-called "Monstercat smoothing" with or without "waves". Set to 0 to disable. -; monstercat = 1 -; waves = 0; +# Disables or enables the so-called "Monstercat smoothing" with or without "waves". Set to 0 to disable. +monstercat = 1 +; waves = 1 # Set gravity percentage for "drop off". Higher values means bars will drop faster. # Accepts only non-negative values. 50 means half gravity, 200 means double. Set to 0 to disable "drop off". ; gravity = 100 -; gravity = 200 -gravity = 0 # In bar height, bars that would have been lower that this will not be drawn. @@ -141,5 +164,3 @@ gravity = 0 ; 3 = 1 # midtone ; 4 = 1 ; 5 = 1 # treble - - diff --git a/.config/i3/config b/.config/i3/config index 26cc167..fa1a63b 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -67,13 +67,13 @@ bindsym $mod+Shift+q kill # start program launcher # bindsym $mod+d exec --no-startup-id dmenu_recent -f -nb '#2d2d2d' -nf '#747369' -sb '#6699cc' -sf '#2d2d2d' -p 'execute' -fn 'xos4 Terminus' -bindsym $mod+i exec --no-startup-id dmenu_recent +bindcode $mod+40 exec --no-startup-id dmenu_recent # launch desktop menu bindsym $mod+z exec --no-startup-id i3-dmenu-desktop --dmenu='dmenu -p "Launch:"' # launch without history -bindsym $mod+Ctrl+i exec --no-startup-id dmenu_run -p "Execute:" +bindcode $mod+Ctrl+40 exec --no-startup-id dmenu_run -p "Execute:" # HUD # exec ~/.i3/i3-appmenu-service.py diff --git a/.config/youtube-dl/config b/.config/youtube-dl/config index 75a45b5..3b7806c 100644 --- a/.config/youtube-dl/config +++ b/.config/youtube-dl/config @@ -4,6 +4,7 @@ --sub-lang fr,en --embed-subs --write-sub +#--write-auto-sub -i #--hls-prefer-ffmpeg #--external-downloader aria2c diff --git a/.i3blocks/updates b/.i3blocks/updates index 5f585db..244a3d3 100755 --- a/.i3blocks/updates +++ b/.i3blocks/updates @@ -17,7 +17,7 @@ then fi avail=($(checkupdates | cut -d' ' -f1)) -aur=($(yaourt -Qua | cut -d' ' -f1 | grep 'aur/')) +aur=($(pikaur -Qua)) total=$((${#avail[@]} + ${#aur[@]})) if [[ $total -eq 0 ]] diff --git a/.local/bin/pik b/.local/bin/pik new file mode 100755 index 0000000..59553bd --- /dev/null +++ b/.local/bin/pik @@ -0,0 +1,8 @@ +#!/bin/bash + +if [[ "$#" -eq 0 ]] +then + exec /usr/bin/pikaur -Syua +else + exec /usr/bin/pikaur "$@" +fi diff --git a/.local/bin/pikaur b/.local/bin/pikaur new file mode 120000 index 0000000..ec0b95b --- /dev/null +++ b/.local/bin/pikaur @@ -0,0 +1 @@ +pik \ No newline at end of file