waybar configs

This commit is contained in:
2026-05-01 14:59:59 +03:00
parent fc9362f926
commit 23287871f8
4 changed files with 359 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
#!/usr/bin/env bash
# Получаем статус плеера
status=$(playerctl status 2>/dev/null)
if [ "$status" == "Playing" ]; then
icon="" # Pause
elif [ "$status" == "Paused" ]; then
icon="" # Play
else
icon="󰦢" # Нет плеера / stopped (можешь другой значок)
fi
# Выводим JSON для Waybar
echo "{\"text\": \"$icon\", \"class\": \"$status\"}"