Meilleure gestion des morceaux sans artiste
This commit is contained in:
parent
0dd9c39183
commit
213f3b4ef2
6 changed files with 19 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
|
|
|
@ -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 ]
|
||||
|
|
|
@ -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 '<b>%s</b>%s<b>%s</b>%s%s\n' "$bloc1" "$bloc2" "$bloc3" "$bloc4" " $status$time</span>"
|
||||
done
|
||||
|
||||
self-reset
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ do
|
|||
declare -a running
|
||||
|
||||
running=($(jobs -p))
|
||||
if [[ "${#running[@]}" -ge 6 ]]
|
||||
if [[ "${#running[@]}" -ge 12 ]]
|
||||
then
|
||||
wait -n
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue