my_konfig

This commit is contained in:
2025-12-17 18:10:08 +01:00
parent ed4ae93364
commit 773955ef02
42 changed files with 1313 additions and 158 deletions

18
config/waybar/updates.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/sh
# Führt checkupdates aus und fängt die Ausgabe ab
updates=$(checkupdates)
# Prüft, ob die Ausgabe von checkupdates nicht leer ist
if [ -n "$updates" ]; then
# Zählt die Anzahl der verfügbaren Updates
num_updates=$(echo "$updates" | wc -l)
# Erstellt einen Tooltip mit den Paketnamen
tooltip=$(echo "$updates" | sed 's/ -> / /')
# Gibt das JSON-Format für Waybar aus
printf '{"text": " %s", "tooltip": "%s"}\n' "$num_updates" "$tooltip"
else
# Gibt nichts aus, damit Waybar das Modul verbirgt
exit 0
fi