Amélioration de la gestion des périfériques audio avec i3blocks

This commit is contained in:
Breizh 2023-07-16 04:49:25 +02:00
parent 80d56ee914
commit a900bd2a2d
5 changed files with 7 additions and 8 deletions

View file

@ -63,9 +63,9 @@ URxvt.font: xft:xos4 Terminus:pixelsize=16,xft:DejaVu Sans Mono:antialias=false:
!URxvt.depth: 32
!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/gnome/16x16/apps/terminal.png
!URxvt.iconFile: /usr/share/icons/gnome/16x16/apps/terminal.png
URxvt*scrollBar: true
URxvt*mouseWheelScrollPage: false

View file

@ -13,7 +13,7 @@
--hls-use-mpegts
--compat-options no-keep-subs
--download-archive ".yt-dlp_archive"
-N 1
#-N 4
#--netrc
# For 429 errors

View file

@ -12,7 +12,7 @@ then
fi
# https://atlas.ripe.net/anchors/about/
# 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
color="#99CC99"
if [ -f /dev/shm/claws_offline ]
@ -21,7 +21,7 @@ then
rm /dev/shm/claws_offline
fi
# 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
color="#FFCC66"
else

View file

@ -1,7 +1,6 @@
#!/bin/bash
#SINK="alsa_output.pci-0000_2b_00.3.3.analog-stereo"
SINK="alsa_output.pci-0000_2b_00.3.analog-stereo"
SINK="$(pactl get-default-sink)"
currentport=$(pactl list sinks | grep -Po "Active Port: analog.*")

View file

@ -68,7 +68,7 @@ do
(
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 && \
echo "[${green} OK ${reset}] ${dir#./}$file" || \
echo "[${red}FAIL${reset}] ${dir#./}$file"