Màj diverses

This commit is contained in:
Breizh 2020-10-21 00:43:21 +02:00
parent 66c8ae283f
commit c7d002a5b6
6 changed files with 67 additions and 36 deletions

View file

@ -22,9 +22,8 @@
# 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
; 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'
@ -48,29 +54,42 @@
#
# 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;
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

View file

@ -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

View file

@ -4,6 +4,7 @@
--sub-lang fr,en
--embed-subs
--write-sub
#--write-auto-sub
-i
#--hls-prefer-ffmpeg
#--external-downloader aria2c

View file

@ -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 ]]

8
.local/bin/pik Executable file
View file

@ -0,0 +1,8 @@
#!/bin/bash
if [[ "$#" -eq 0 ]]
then
exec /usr/bin/pikaur -Syua
else
exec /usr/bin/pikaur "$@"
fi

1
.local/bin/pikaur Symbolic link
View file

@ -0,0 +1 @@
pik