Amélioration de la gestion des périfériques audio avec i3blocks
This commit is contained in:
parent
80d56ee914
commit
a900bd2a2d
5 changed files with 7 additions and 8 deletions
|
@ -63,9 +63,9 @@ URxvt.font: xft:xos4 Terminus:pixelsize=16,xft:DejaVu Sans Mono:antialias=false:
|
||||||
!URxvt.depth: 32
|
!URxvt.depth: 32
|
||||||
!URxvt.background: [100]#000000
|
!URxvt.background: [100]#000000
|
||||||
|
|
||||||
!URxvt.iconFile: /usr/share/icons/Vertex-Icons/apps/symbolic/utilities-terminal-symbolic.svg
|
URxvt.iconFile: /usr/share/icons/Vertex-Icons/apps/symbolic/utilities-terminal-symbolic.svg
|
||||||
!URxvt.iconFile: /usr/share/icons/Adwaita/scalable/apps/utilities-terminal-symbolic.svg
|
!URxvt.iconFile: /usr/share/icons/Adwaita/scalable/apps/utilities-terminal-symbolic.svg
|
||||||
URxvt.iconFile: /usr/share/icons/gnome/16x16/apps/terminal.png
|
!URxvt.iconFile: /usr/share/icons/gnome/16x16/apps/terminal.png
|
||||||
|
|
||||||
URxvt*scrollBar: true
|
URxvt*scrollBar: true
|
||||||
URxvt*mouseWheelScrollPage: false
|
URxvt*mouseWheelScrollPage: false
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
--hls-use-mpegts
|
--hls-use-mpegts
|
||||||
--compat-options no-keep-subs
|
--compat-options no-keep-subs
|
||||||
--download-archive ".yt-dlp_archive"
|
--download-archive ".yt-dlp_archive"
|
||||||
-N 1
|
#-N 4
|
||||||
#--netrc
|
#--netrc
|
||||||
|
|
||||||
# For 429 errors
|
# For 429 errors
|
||||||
|
|
|
@ -12,7 +12,7 @@ then
|
||||||
fi
|
fi
|
||||||
# https://atlas.ripe.net/anchors/about/
|
# https://atlas.ripe.net/anchors/about/
|
||||||
# fr-rns-as204092.anchors.atlas.ripe.net
|
# fr-rns-as204092.anchors.atlas.ripe.net
|
||||||
elif ping -c 1 2a00:5884:822c::1 -W 1 &>/dev/null || ping -c 1 80.67.190.218 -W 1 &>/dev/null
|
elif ping -c 4 2a00:5884:822c::1 -W 1 &>/dev/null || ping -c 4 80.67.190.218 -W 1 &>/dev/null
|
||||||
then
|
then
|
||||||
color="#99CC99"
|
color="#99CC99"
|
||||||
if [ -f /dev/shm/claws_offline ]
|
if [ -f /dev/shm/claws_offline ]
|
||||||
|
@ -21,7 +21,7 @@ then
|
||||||
rm /dev/shm/claws_offline
|
rm /dev/shm/claws_offline
|
||||||
fi
|
fi
|
||||||
# test-debit.free.fr
|
# test-debit.free.fr
|
||||||
elif ping -c 1 2a01:e0c:1:1598::3 -W 1 &>/dev/null || ping -c 1 212.27.42.153 -W 1 &>/dev/null
|
elif ping -c 4 2a01:e0c:1:1598::3 -W 1 &>/dev/null || ping -c 4 212.27.42.153 -W 1 &>/dev/null
|
||||||
then
|
then
|
||||||
color="#FFCC66"
|
color="#FFCC66"
|
||||||
else
|
else
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
#SINK="alsa_output.pci-0000_2b_00.3.3.analog-stereo"
|
SINK="$(pactl get-default-sink)"
|
||||||
SINK="alsa_output.pci-0000_2b_00.3.analog-stereo"
|
|
||||||
|
|
||||||
currentport=$(pactl list sinks | grep -Po "Active Port: analog.*")
|
currentport=$(pactl list sinks | grep -Po "Active Port: analog.*")
|
||||||
|
|
||||||
|
|
|
@ -68,7 +68,7 @@ do
|
||||||
|
|
||||||
(
|
(
|
||||||
echo " ${dir#./}$file"
|
echo " ${dir#./}$file"
|
||||||
ffmpeg -n -loglevel error -i "file:$file" -c:a libopus -b:a 256K "file:${dstdir}${dstfile}" && \
|
ffmpeg -n -loglevel error -i "file:$file" -c:a libopus -b:a 128K "file:${dstdir}${dstfile}" && \
|
||||||
loudgain -S -r -k -q -s e "${dstdir}${dstfile}" &>/dev/null && \
|
loudgain -S -r -k -q -s e "${dstdir}${dstfile}" &>/dev/null && \
|
||||||
echo "[${green} OK ${reset}] ${dir#./}$file" || \
|
echo "[${green} OK ${reset}] ${dir#./}$file" || \
|
||||||
echo "[${red}FAIL${reset}] ${dir#./}$file"
|
echo "[${red}FAIL${reset}] ${dir#./}$file"
|
||||||
|
|
Loading…
Reference in a new issue