add base dotfiles
This commit is contained in:
commit
968449de49
31 changed files with 2121 additions and 0 deletions
17
.config/eww/scripts/player
Executable file
17
.config/eww/scripts/player
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
echo "{\"show\": \"no\", \"content\": \"\"}"
|
||||
while true
|
||||
do
|
||||
line=$(spt playback --status -f "%s:%a - %t" 2> /dev/null)
|
||||
IFS=':' read -ra ELS <<< "$line"
|
||||
button=${ELS[0]}
|
||||
content=${ELS[1]}
|
||||
if [ "$button" == "▶" ]; then
|
||||
echo "{\"show\": \"yes\", \"content\": \"(label :text \\\"$content\\\")\"}"
|
||||
else
|
||||
echo "{\"show\": \"no\", \"content\": \"\"}"
|
||||
fi
|
||||
|
||||
sleep 1
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue