diff --git a/.config/gtk-3.0/settings.ini b/.config/gtk-3.0/settings.ini
index d0c1b2b..a2e8dab 100644
--- a/.config/gtk-3.0/settings.ini
+++ b/.config/gtk-3.0/settings.ini
@@ -3,6 +3,7 @@ gtk-application-prefer-dark-theme=true
gtk-theme-name=Vertex-Dark
gtk-icon-theme-name=Vertex-Icons
gtk-font-name=IBM Plex Sans 10
+#gtk-font-name=xos4 Terminus 10
gtk-button-images=1
gtk-menu-images=1
gtk-enable-event-sounds=1
diff --git a/.config/i3/config b/.config/i3/config
index e1ab256..68ff50a 100644
--- a/.config/i3/config
+++ b/.config/i3/config
@@ -375,7 +375,8 @@ exec --no-startup-id sleep 5 && play "$HOME/Musique/WELCOME BACK.wav"
# Start i3bar to display a workspace bar (plus the system information i3status if available)
bar {
# position top
- status_command i3blocks
+ #status_command i3blocks
+ status_command 2>/tmp/i3blocks.err i3blocks
## please set your primary output first. Example: 'xrandr --output eDP1 --primary'
tray_output primary
diff --git a/.config/mpd/mpd.conf b/.config/mpd/mpd.conf
index d8a174a..eee7979 100644
--- a/.config/mpd/mpd.conf
+++ b/.config/mpd/mpd.conf
@@ -410,7 +410,7 @@ replaygain_limit "yes"
# result in the volume of all playing audio to be adjusted so the output has
# equal "loudness". This setting is disabled by default.
#
-#volume_normalization "no"
+volume_normalization "no"
#
###############################################################################
diff --git a/.i3blocks/internet b/.i3blocks/internet
index 6d5ec40..a8f789a 100755
--- a/.i3blocks/internet
+++ b/.i3blocks/internet
@@ -15,7 +15,7 @@ then
#i3-msg -q -- exec claws-mail --offline
touch /dev/shm/claws_offline
fi
-elif ping -c 1 1.1.1.1 -W 1 &>/dev/null || ping -c 1 8.8.8.8 -W 1 &>/dev/null
+elif ping -c 1 212.27.48.4 -W 1 &>/dev/null || ping -c 1 80.67.169.40 -W 1 &>/dev/null
then
color="#99CC99"
if [ -f /dev/shm/claws_offline ]
diff --git a/.i3blocks/mpd b/.i3blocks/mpd
index ea3071c..bb011f9 100755
--- a/.i3blocks/mpd
+++ b/.i3blocks/mpd
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/bash -x
# Fonction de réinitialisation en cas de perte de la connexion
self-reset() {
@@ -99,11 +99,18 @@ do
# on réinitialise l’affichage défilant
if [[ "${o["file"]}" != "${old["file"]}" || "${o["Title"]}" != "${old["Title"]}" || "${o["Name"]}" != "${old["Name"]}" ]]
then
- unset bloc1 bloc2 bloc3 bloc4
artist="${o["Artist"]:-${o["Name"]}}"
song="${o["Title"]}"
- [[ -z "$artist$song" ]] && song="$(basename "${o["file"]}")"
-
+ if [[ -z "$artist" ]]
+ then
+ if [[ -z "$song" ]]
+ then
+ song="$(basename "${o["file"]}")"
+ else
+ song="$song ❮$(basename "${o["file"]}")❯"
+ fi
+ fi
+
if [[ "$(( ${#song} + ${#artist} + 1 ))" -gt "$SCROLL" ]]
then
scroll=true
@@ -180,3 +187,5 @@ do
printf '%s%s%s%s%s\n' "$bloc1" "$bloc2" "$bloc3" "$bloc4" " $status$time"
done
+self-reset
+
diff --git a/.local/bin/music-replaygain-solo b/.local/bin/music-replaygain-solo
index 7cd6e9d..8020a5b 100755
--- a/.local/bin/music-replaygain-solo
+++ b/.local/bin/music-replaygain-solo
@@ -24,7 +24,7 @@ do
declare -a running
running=($(jobs -p))
- if [[ "${#running[@]}" -ge 6 ]]
+ if [[ "${#running[@]}" -ge 12 ]]
then
wait -n
fi