Newer
Older
dotfiles / .config / eww / dashboard / scripts / current
@Edoko Edoko on 27 May 171 bytes initial commit
#!/bin/bash
CURRENT=$(playerctl metadata --format '{{position}}')
TOTAL=$(playerctl metadata | grep length | awk '{print $3}')
RESULT=$(($CURRENT*100/$TOTAL))
echo $RESULT