waybar configs
This commit is contained in:
15
.config/waybar/player-play-pause.sh
Normal file
15
.config/waybar/player-play-pause.sh
Normal 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\"}"
|
||||
Reference in New Issue
Block a user