changed workspace modifiers
This commit is contained in:
parent
1c9a31ee6e
commit
0a0cc70b96
4 changed files with 57 additions and 26 deletions
|
@ -5,8 +5,8 @@ icon=" "
|
|||
|
||||
if [[ $class == "playing" ]]; then
|
||||
info=$(playerctl metadata --player=firefox --format '{{title}}')
|
||||
if [[ ${#info} > 60 ]]; then
|
||||
info=$(echo $info | cut -c1-60)"..."
|
||||
if [[ ${#info} > 30 ]]; then
|
||||
info=$(echo $info | cut -c1-30)"..."
|
||||
fi
|
||||
text=$info" "$icon
|
||||
elif [[ $class == "paused" ]]; then
|
||||
|
@ -20,8 +20,8 @@ classa=$(playerctl metadata --player=spotify --format '{{lc(status)}}')
|
|||
if [[ $classa == "playing" ]]; then
|
||||
icon=""
|
||||
info=$(playerctl metadata --player=spotify --format '{{artist}} - {{title}}')
|
||||
if [[ ${#info} > 40 ]]; then
|
||||
info=$(echo $info | cut -c1-40)"..."
|
||||
if [[ ${#info} > 30 ]]; then
|
||||
info=$(echo $info | cut -c1-30)"..."
|
||||
fi
|
||||
text=$info" "$icon
|
||||
elif [[ $class == "paused" ]]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue