Root commit.
This commit is contained in:
commit
7183fd6b99
21 changed files with 974 additions and 0 deletions
10
sb-song-status
Executable file
10
sb-song-status
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
status=$(mpc status | sed -n '/playing/p' | cut -c2-8 | sed 's/^[ \t]*//')
|
||||
|
||||
if [ "$status" = "playing" ]; then # If song is playing
|
||||
printf "%s\n" "契"
|
||||
else
|
||||
printf "%s\n" ""
|
||||
fi
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue