Initial
This commit is contained in:
commit
c8734e660a
392 changed files with 21043 additions and 0 deletions
27
.config/waybar/waybar_lvntcylmz/scripts/mediaplayer.sh
Normal file
27
.config/waybar/waybar_lvntcylmz/scripts/mediaplayer.sh
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#!/bin/bash
|
||||
|
||||
player_status=$(playerctl status)
|
||||
player_name=$(playerctl metadata --format "{{ playerName }}")
|
||||
|
||||
artist=$(playerctl metadata --format "{{ artist }}")
|
||||
title=$(playerctl metadata --format "{{ title }}")
|
||||
duration=$(playerctl metadata --format "{{ duration(position) }} / {{ duration(mpris:length) }}")
|
||||
|
||||
firefox_status=$(playerctl --player=firefox status)
|
||||
spotify_status=$(playerctl --player=spotify status)
|
||||
|
||||
if [ "$player_name" == "spotify" ]; then
|
||||
echo "<big></big> $artist - $title - [$duration]"
|
||||
elif [ "$player_name" == "firefox" ]; then
|
||||
if [ "$artist" == "" ]; then
|
||||
echo "<big></big> $title"
|
||||
else
|
||||
echo "<big></big> $artist - $title"
|
||||
fi
|
||||
else
|
||||
if [ "$player_status" == "Playing" ]; then
|
||||
echo "<big></big> $artist - $title"
|
||||
else
|
||||
echo ""
|
||||
fi
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue