punkfairie
90ca5ee74b
Add .config/polybar/colors.ini Add .config/polybar/config.ini Add .config/polybar/launch.sh Add .config/polybar/scripts/backlight.sh Add .config/polybar/scripts/launcher.sh Add .config/polybar/scripts/player.sh Add .config/polybar/scripts/powermenu.sh Add .config/polybar/scripts/pywal.sh Add .config/polybar/scripts/songname.sh Add .config/polybar/scripts/wifi-menu.sh Add .config/polybar/scripts/rofi/colors.rasi Add .config/polybar/scripts/rofi/colors.rasi.backup Add .config/polybar/scripts/rofi/confirm.rasi Add .config/polybar/scripts/rofi/launcher.rasi Add .config/polybar/scripts/rofi/message.rasi Add .config/polybar/scripts/rofi/networkmenu.rasi Add .config/polybar/scripts/rofi/powermenu.rasi Add .config/polybar/scripts/rofi/styles.rasi Add .config/polybar/scripts/scripts/checkupdates Add .config/polybar/scripts/scripts/color-switch.sh Add .config/polybar/scripts/scripts/colors-dark.sh Add .config/polybar/scripts/scripts/colors-light.sh Add .config/polybar/scripts/scripts/launcher.sh Add .config/polybar/scripts/scripts/powermenu.sh Add .config/polybar/scripts/scripts/pywal.sh Add .config/polybar/scripts/scripts/random.sh Add .config/polybar/scripts/scripts/updates.sh Add .config/polybar/scripts/scripts/rofi/colors.rasi Add .config/polybar/scripts/scripts/rofi/confirm.rasi Add .config/polybar/scripts/scripts/rofi/launcher.rasi Add .config/polybar/scripts/scripts/rofi/message.rasi Add .config/polybar/scripts/scripts/rofi/networkmenu.rasi Add .config/polybar/scripts/scripts/rofi/powermenu.rasi Add .config/polybar/scripts/scripts/rofi/styles.rasi
12 lines
265 B
Bash
12 lines
265 B
Bash
#!/usr/bin/env bash
|
|
|
|
playerctlstatus=$(playerctl status 2> /dev/null)
|
|
|
|
if [[ $playerctlstatus == "" ]]; then
|
|
echo ""
|
|
elif [[ $playerctlstatus =~ "Playing" ]]; then
|
|
echo " %{A1:playerctl pause:}%{A}"
|
|
else
|
|
echo " %{A1:playerctl play:}%{A}"
|
|
fi
|
|
|