mirror of
https://github.com/ksyasuda/rice.git
synced 2025-12-06 20:53:36 -08:00
move config files to new directory
This commit is contained in:
10
scripts/get-player-title
Executable file
10
scripts/get-player-title
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
STAT=`playerctl status 2>/dev/null`
|
||||
if [[ $STAT == "" ]]; then
|
||||
printf "\n"
|
||||
elif [[ $(playerctl status 2>/dev/null) == "Playing" ]]; then
|
||||
printf "%s\n" "Playing: $(playerctl metadata title)"
|
||||
else
|
||||
printf "%s\n" "Paused: $(playerctl metadata title)"
|
||||
fi
|
||||
Reference in New Issue
Block a user