This commit is contained in:
Le_Foucheur committed 2024-09-15 22:10:50 +02:00
1 parent bd49911eca
commit e3de01bde8
3742 files changed
+64316

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
#!/bin/sh
class=$(playerctl metadata --player=Deezer --format '{{lc(status)}}')
icon=""
if [[ $class == "playing" ]]; then
info=$(playerctl metadata --player=Deezer --format '{{title}} - {{artist}}')
info=$(echo ${info//\"/\\\"}) # Escape quote with \"
if [[ ${#info} -ge 33 ]]; then
info=$(playerctl metadata --player=Deezer --format '{{title}}')
info=$(echo ${info//\"/\\\"}) # Escape quote with \"
fi
if [[ ${#info} -ge 33 ]]; then
info=$(echo $info | cut -c1-30)"..."
fi
tooltip=$(playerctl metadata --format "{{duration(position)}}/{{duration(mpris:length)}}")
text=$info" "$icon
elif [[ $class == "paused" ]]; then
text=$icon
elif [[ $class == "stopped" ]]; then
text=""
fi
echo -e "{\"text\":\""$text"\", \"tooltip\":\""$tooltip"\"}, \"class\":\""$class"\"}"
+24
View File
@@ -0,0 +1,24 @@
#!/bin/sh
class=$(playerctl metadata --player=Deezer --format '{{lc(status)}}')
icon=""
if [[ $class == "playing" ]]; then
info=$(playerctl metadata --player=Deezer --format '{{title}} - {{artist}}')
info=$(echo ${info//\"/\\\"}) # Escape quote with \"
if [[ ${#info} -ge 30 ]]; then
info=$(playerctl metadata --player=Deezer --format '{{title}}')
info=$(echo ${info//\"/\\\"}) # Escape quote with \"
fi
if [[ ${#info} -ge 33 ]]; then
info=$(echo $info | cut -c1-30)"..."
fi
tooltip=$(playerctl metadata --format "{{duration(position)}} / {{duration(mpris:length)}}")
text=$info" "$icon
elif [[ $class == "paused" ]]; then
text=$icon
elif [[ $class == "stopped" ]]; then
text=""
fi
echo -e "{\"text\":\""$text"\", \"tooltip\":\""$tooltip"\"}, \"class\":\""$class"\"}"
+25
View File
@@ -0,0 +1,25 @@
#!/bin/sh
class=$(playerctl metadata --player=Deezer --format '{{lc(status)}}')
icon=""
if [[ $class == "playing" ]]; then
if [[ ${#info} -ge 30 ]]; then
info=$(playerctl metadata --player=Deezer --format '{{title}}')
info=$(echo ${info//\"/\\\"}) # Escape quote with \"
else
info=$(playerctl metadata --player=Deezer --format '{{title}} - {{artist}}')
info=$(echo ${info//\"/\\\"}) # Escape quote with \"
fi
if [[ ${#info} -ge 33 ]]; then
info=$(echo $info | cut -c1-30)"..."
fi
tooltip=$(playerctl metadata --format "{{duration(position)}} / {{duration(mpris:length)}}")
text=$info" "$icon
elif [[ $class == "paused" ]]; then
text=$icon
elif [[ $class == "stopped" ]]; then
text=""
fi
echo -e "{\"text\":\""$text"\", \"tooltip\":\""$tooltip"\"}, \"class\":\""$class"\"}"
+25
View File
@@ -0,0 +1,25 @@
#!/bin/sh
class=$(playerctl metadata --player=Deezer --format '{{lc(status)}}')
icon=""
if [[ $class == "playing" ]]; then
info=$(playerctl metadata --player=Deezer --format '{{title}} - {{artist}}')
info=$(echo ${info//\"/\\\"}) # Escape quote with \"
if [[ ${#info} -ge 33 ]]; then
info=$(playerctl metadata --player=Deezer --format '{{title}}')
info=$(echo ${info//\"/\\\"}) # Escape quote with \"
fi
if [[ ${#info} -ge 33 ]]; then
info=$(echo $info | cut -c1-30)"..."
fi
tooltip=$(playerctl metadata --format "{{duration(position)}}/{{duration(mpris:length)}}")
text=$info" "$icon
tooltip="🜁 "$tooltip" 🜃"
elif [[ $class == "paused" ]]; then
text=$icon
elif [[ $class == "stopped" ]]; then
text=""
fi
echo -e "{\"text\":\""$text"\", \"tooltip\":\""$tooltip"\"}, \"class\":\""$class"\"}"
+24
View File
@@ -0,0 +1,24 @@
#!/bin/sh
class=$(playerctl metadata --player=Deezer --format '{{lc(status)}}')
icon=""
if [[ $class == "playing" ]]; then
info=$(playerctl metadata --player=Deezer --format '{{title}} - {{artist}}')
info=$(echo ${info//\"/\\\"}) # Escape quote with \"
if [[ ${#info} -ge 33 ]]; then
info=$(playerctl metadata --player=Deezer --format '{{title}}')
info=$(echo ${info//\"/\\\"}) # Escape quote with \"
fi
if [[ ${#info} -ge 33 ]]; then
info=$(echo $info | cut -c1-30)"..."
fi
tooltip=$(playerctl metadata --format "𝈝 {{duration(position)}}/{{duration(mpris:length)}} 𝈀")
text=$info" "$icon
elif [[ $class == "paused" ]]; then
text=$icon
elif [[ $class == "stopped" ]]; then
text=""
fi
echo -e "{\"text\":\""$text"\", \"tooltip\":\""$tooltip"\"}, \"class\":\""$class"\"}"
+24
View File
@@ -0,0 +1,24 @@
#!/bin/sh
class=$(playerctl metadata --player=Deezer --format '{{lc(status)}}')
icon=""
if [[ $class == "playing" ]]; then
info=$(playerctl metadata --player=Deezer --format '{{title}} - {{artist}}')
info=$(echo ${info//\"/\\\"}) # Escape quote with \"
if [[ ${#info} -ge 33 ]]; then
info=$(playerctl metadata --player=Deezer --format '{{title}}')
info=$(echo ${info//\"/\\\"}) # Escape quote with \"
fi
if [[ ${#info} -ge 33 ]]; then
info=$(echo $info | cut -c1-30)"..."
fi
tooltip=$(playerctl metadata --format "{{duration(position)}}/{{duration(mpris:length)}} 𝈀")
text=$info" "$icon
elif [[ $class == "paused" ]]; then
text=$icon
elif [[ $class == "stopped" ]]; then
text=""
fi
echo -e "{\"text\":\""$text"\", \"tooltip\":\""$tooltip"\"}, \"class\":\""$class"\"}"
+19
View File
@@ -0,0 +1,19 @@
#!/bin/sh
class=$(playerctl metadata --player=Deezer --format '{{lc(status)}}')
icon=""
if [[ $class == "playing" ]]; then
if [[ ${#info} -ge 30 ]]; then
info=$(playerctl metadata --player=Deezer --format '{{title}} - {{artist}}')
info=$(echo ${info//\"/\\\"}) # Escape quote with \"
fi
tooltip=$(playerctl metadata --format "{{duration(position)}} / {{duration(mpris:length)}}")
text=$info" "$icon
elif [[ $class == "paused" ]]; then
text=$icon
elif [[ $class == "stopped" ]]; then
text=""
fi
echo -e "{\"text\":\""$text"\", \"tooltip\":\""$tooltip"\"}, \"class\":\""$class"\"}"
+24
View File
@@ -0,0 +1,24 @@
#!/bin/sh
class=$(playerctl metadata --player=Deezer --format '{{lc(status)}}')
icon=""
if [[ $class == "playing" ]]; then
info=$(playerctl metadata --player=Deezer --format '{{title}} - {{artist}}')
info=$(echo ${info//\"/\\\"}) # Escape quote with \"
if [[ ${#info} -ge 33 ]]; then
info=$(playerctl metadata --player=Deezer --format '{{title}}')
info=$(echo ${info//\"/\\\"}) # Escape quote with \"
fi
if [[ ${#info} -ge 33 ]]; then
info=$(echo $info | cut -c1-30)"..."
fi
tooltip=$(playerctl metadata --format "{{duration(position)}}/{{duration(mpris:length)}}")
text=$info" "$icon
elif [[ $class == "paused" ]]; then
text=$icon
elif [[ $class == "stopped" ]]; then
text=""
fi
echo -e "{\"text\":\""$text"\", \"tooltip\":\""$tooltip"\"}, \"class\":\""$class"\"}"
@@ -0,0 +1 @@
{"version":1,"resource":"file:///home/jvj/.config/waybar/modules/spotify.sh","entries":[{"id":"WQvz.sh","timestamp":1725060158407},{"id":"tApt.sh","timestamp":1725060217503},{"id":"CIvT.sh","timestamp":1725060252297},{"id":"urbt.sh","timestamp":1725060335295},{"id":"9gnO.sh","timestamp":1725060355912},{"id":"tCII.sh","timestamp":1725060384162},{"id":"3wN0.sh","timestamp":1725060414374},{"id":"uSSA.sh","timestamp":1725060451050},{"id":"QqUD.sh","timestamp":1725060991203},{"id":"KUCb.sh","timestamp":1725061014886},{"id":"Y3k4.sh","source":"undoRedo.source","timestamp":1725061034321},{"id":"p2F8.sh","timestamp":1725061040332},{"id":"pJQg.sh","source":"undoRedo.source","timestamp":1725061046584},{"id":"mNvz.sh","timestamp":1725061069037},{"id":"vRXo.sh","source":"undoRedo.source","timestamp":1725061077129},{"id":"EVF7.sh","timestamp":1725061116393},{"id":"o5MB.sh","timestamp":1725062786825},{"id":"otwV.sh","timestamp":1725062809899}]}
+24
View File
@@ -0,0 +1,24 @@
#!/bin/sh
class=$(playerctl metadata --player=Deezer --format '{{lc(status)}}')
icon=""
if [[ $class == "playing" ]]; then
info=$(playerctl metadata --player=Deezer --format '{{title}} - {{artist}}')
info=$(echo ${info//\"/\\\"}) # Escape quote with \"
if [[ ${#info} -ge 33 ]]; then
info=$(playerctl metadata --player=Deezer --format '{{title}}')
info=$(echo ${info//\"/\\\"}) # Escape quote with \"
fi
if [[ ${#info} -ge 33 ]]; then
info=$(echo $info | cut -c1-30)"..."
fi
tooltip=$(playerctl metadata --format "🜁 {{duration(position)}}/{{duration(mpris:length)}}")
text=$info" "$icon
elif [[ $class == "paused" ]]; then
text=$icon
elif [[ $class == "stopped" ]]; then
text=""
fi
echo -e "{\"text\":\""$text"\", \"tooltip\":\""$tooltip"\"}, \"class\":\""$class"\"}"
+25
View File
@@ -0,0 +1,25 @@
#!/bin/sh
class=$(playerctl metadata --player=Deezer --format '{{lc(status)}}')
icon=""
if [[ $class == "playing" ]]; then
info=$(playerctl metadata --player=Deezer --format '{{title}} - {{artist}}')
info=$(echo ${info//\"/\\\"}) # Escape quote with \"
if [[ ${#info} -ge 33 ]]; then
info=$(playerctl metadata --player=Deezer --format '{{title}}')
info=$(echo ${info//\"/\\\"}) # Escape quote with \"
fi
if [[ ${#info} -ge 33 ]]; then
info=$(echo $info | cut -c1-30)"..."
fi
tooltip=$(playerctl metadata --format "{{duration(position)}}/{{duration(mpris:length)}}")
text=$info" "$icon
tooltip="🜁 "$tooltip" 🜃"
elif [[ $class == "paused" ]]; then
text=" "$icon
elif [[ $class == "stopped" ]]; then
text=""
fi
echo -e "{\"text\":\""$text"\", \"tooltip\":\""$tooltip"\"}, \"class\":\""$class"\"}"
+25
View File
@@ -0,0 +1,25 @@
#!/bin/sh
class=$(playerctl metadata --player=Deezer --format '{{lc(status)}}')
icon=""
if [[ $class == "playing" ]]; then
info=$(playerctl metadata --player=Deezer --format '{{title}} - {{artist}}')
info=$(echo ${info//\"/\\\"}) # Escape quote with \"
if [[ ${#info} -ge 33 ]]; then
info=$(playerctl metadata --player=Deezer --format '{{title}}')
info=$(echo ${info//\"/\\\"}) # Escape quote with \"
fi
if [[ ${#info} -ge 33 ]]; then
info=$(echo $info | cut -c1-30)"..."
fi
tooltip=$(playerctl metadata --format "{{duration(position)}}/{{duration(mpris:length)}}")
text=$info" "$icon
tooltip="🜁 "$tooltip" 🜃"
elif [[ $class == "paused" ]]; then
text="󰏤 "$icon
elif [[ $class == "stopped" ]]; then
text=""
fi
echo -e "{\"text\":\""$text"\", \"tooltip\":\""$tooltip"\"}, \"class\":\""$class"\"}"
+24
View File
@@ -0,0 +1,24 @@
#!/bin/sh
class=$(playerctl metadata --player=Deezer --format '{{lc(status)}}')
icon=""
if [[ $class == "playing" ]]; then
info=$(playerctl metadata --player=Deezer --format '{{title}} - {{artist}}')
info=$(echo ${info//\"/\\\"}) # Escape quote with \"
if [[ ${#info} -ge 33 ]]; then
info=$(playerctl metadata --player=Deezer --format '{{title}}')
info=$(echo ${info//\"/\\\"}) # Escape quote with \"
fi
if [[ ${#info} -ge 33 ]]; then
info=$(echo $info | cut -c1-30)"..."
fi
tooltip=$(playerctl metadata --format "𝈝 {{duration(position)}}/{{duration(mpris:length)}} 𝈀")
text=$info" "$icon
elif [[ $class == "paused" ]]; then
text=$icon
elif [[ $class == "stopped" ]]; then
text=""
fi
echo -e "{\"text\":\""$text"\", \"tooltip\":\""$tooltip"\"}, \"class\":\""$class"\"}"
+24
View File
@@ -0,0 +1,24 @@
#!/bin/sh
class=$(playerctl metadata --player=Deezer --format '{{lc(status)}}')
icon=""
if [[ $class == "playing" ]]; then
info=$(playerctl metadata --player=Deezer --format '{{title}} - {{artist}}')
info=$(echo ${info//\"/\\\"}) # Escape quote with \"
if [[ ${#info} -ge 33 ]]; then
info=$(playerctl metadata --player=Deezer --format '{{title}}')
info=$(echo ${info//\"/\\\"}) # Escape quote with \"
fi
if [[ ${#info} -ge 33 ]]; then
info=$(echo $info | cut -c1-30)"..."
fi
tooltip=$(playerctl metadata --format "{{duration(position)}}/{{duration(mpris:length)}}")
text=$info" "$icon
elif [[ $class == "paused" ]]; then
text=$icon
elif [[ $class == "stopped" ]]; then
text=""
fi
echo -e "{\"text\":\""$text"\", \"tooltip\":\""$tooltip"\"}, \"class\":\""$class"\"}"
+22
View File
@@ -0,0 +1,22 @@
#!/bin/sh
class=$(playerctl metadata --player=Deezer --format '{{lc(status)}}')
icon=""
if [[ $class == "playing" ]]; then
if [[ ${#info} -ge 30 ]]; then
info=$(playerctl metadata --player=Deezer --format '{{title}}')
info=$(echo ${info//\"/\\\"}) # Escape quote with \"
else
info=$(playerctl metadata --player=Deezer --format '{{title}} - {{artist}}')
info=$(echo ${info//\"/\\\"}) # Escape quote with \"
fi
tooltip=$(playerctl metadata --format "{{duration(position)}} / {{duration(mpris:length)}}")
text=$info" "$icon
elif [[ $class == "paused" ]]; then
text=$icon
elif [[ $class == "stopped" ]]; then
text=""
fi
echo -e "{\"text\":\""$text"\", \"tooltip\":\""$tooltip"\"}, \"class\":\""$class"\"}"
+24
View File
@@ -0,0 +1,24 @@
#!/bin/sh
class=$(playerctl metadata --player=Deezer --format '{{lc(status)}}')
icon=""
if [[ $class == "playing" ]]; then
info=$(playerctl metadata --player=Deezer --format '{{title}} - {{artist}}')
info=$(echo ${info//\"/\\\"}) # Escape quote with \"
if [[ ${#info} -ge 33 ]]; then
info=$(playerctl metadata --player=Deezer --format '{{title}}')
info=$(echo ${info//\"/\\\"}) # Escape quote with \"
fi
if [[ ${#info} -ge 33 ]]; then
info=$(echo $info | cut -c1-30)"..."
fi
tooltip=$(playerctl metadata --format "{{duration(position)}} / {{duration(mpris:length)}}")
text=$info" "$icon
elif [[ $class == "paused" ]]; then
text=$icon
elif [[ $class == "stopped" ]]; then
text=""
fi
echo -e "{\"text\":\""$text"\", \"tooltip\":\""$tooltip"\"}, \"class\":\""$class"\"}"
+24
View File
@@ -0,0 +1,24 @@
#!/bin/sh
class=$(playerctl metadata --player=Deezer --format '{{lc(status)}}')
icon=""
if [[ $class == "playing" ]]; then
info=$(playerctl metadata --player=Deezer --format '{{title}} - {{artist}}')
info=$(echo ${info//\"/\\\"}) # Escape quote with \"
if [[ ${#info} -ge 33 ]]; then
info=$(playerctl metadata --player=Deezer --format '{{title}}')
info=$(echo ${info//\"/\\\"}) # Escape quote with \"
fi
if [[ ${#info} -ge 33 ]]; then
info=$(echo $info | cut -c1-30)"..."
fi
tooltip=$(playerctl metadata --format "{{duration(position)}}/{{duration(mpris:length)}}")
text=$info" "$icon
elif [[ $class == "paused" ]]; then
text=$icon
elif [[ $class == "stopped" ]]; then
text=""
fi
echo -e "{\"text\":\""$text"\", \"tooltip\":\""$tooltip"\"}, \"class\":\""$class"\"}"
+26
View File
@@ -0,0 +1,26 @@
#!/bin/sh
class=$(playerctl metadata --player=Deezer --format '{{lc(status)}}')
icon=""
if [[ $class == "playing" ]]; then
info=$(playerctl metadata --player=Deezer --format '{{title}} - {{artist}}')
if [[ ${#info} -ge 30 ]]; then
info=$(playerctl metadata --player=Deezer --format '{{title}}')
info=$(echo ${info//\"/\\\"}) # Escape quote with \"
else
info=$(playerctl metadata --player=Deezer --format '{{title}} - {{artist}}')
info=$(echo ${info//\"/\\\"}) # Escape quote with \"
fi
if [[ ${#info} -ge 33 ]]; then
info=$(echo $info | cut -c1-30)"..."
fi
tooltip=$(playerctl metadata --format "{{duration(position)}} / {{duration(mpris:length)}}")
text=$info" "$icon
elif [[ $class == "paused" ]]; then
text=$icon
elif [[ $class == "stopped" ]]; then
text=""
fi
echo -e "{\"text\":\""$text"\", \"tooltip\":\""$tooltip"\"}, \"class\":\""$class"\"}"
+24
View File
@@ -0,0 +1,24 @@
#!/bin/sh
class=$(playerctl metadata --player=Deezer --format '{{lc(status)}}')
icon=""
if [[ $class == "playing" ]]; then
info=$(playerctl metadata --player=Deezer --format '{{title}} - {{artist}}')
info=$(echo ${info//\"/\\\"}) # Escape quote with \"
if [[ ${#info} -ge 33 ]]; then
info=$(playerctl metadata --player=Deezer --format '{{title}}')
info=$(echo ${info//\"/\\\"}) # Escape quote with \"
fi
if [[ ${#info} -ge 33 ]]; then
info=$(echo $info | cut -c1-30)"..."
fi
tooltip=$(playerctl metadata --format "{{duration(position)}}/{{duration(mpris:length)}}")
text=$info" "$icon
elif [[ $class == "paused" ]]; then
text=$icon
elif [[ $class == "stopped" ]]; then
text=""
fi
echo -e "{\"text\":\""$text"\", \"tooltip\":\""$tooltip"\"}, \"class\":\""$class"\"}"