waybar: Make size less dynamic

This also removes the album display from the mpd widget as the fmt
library used by waybar does not support specifying a maximum width in
unicode characters, only in bytes (which breaks when the
title/album/artist contains unicode).
home-manager
Simon Bruder 2020-08-24 14:14:23 +02:00
parent 0c1f324073
commit 867e3a4771
No known key found for this signature in database
GPG Key ID: 6F03E0000CC5B62F
1 changed files with 5 additions and 5 deletions

View File

@ -37,7 +37,7 @@
},
"mpd": {
"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ",
"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ",
"format-disconnected": "Disconnected ",
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
"unknown-tag": "N/A",
@ -80,12 +80,12 @@
},
"cpu": {
"interval": 2,
"format": "{usage}% ﬙ ",
"format": "{usage:2}% ﬙ ",
"tooltip": false
},
"memory": {
"interval": 2,
"format": "{}%  "
"format": "{:2}%  "
},
"temperature": {
"critical-threshold": 80,
@ -121,8 +121,8 @@
},
"network#speed": {
"interval": 2,
"format": "{bandwidthDownBits}  {bandwidthUpBits} 祝",
"format-alt": "{bandwidthDownOctets}  {bandwidthUpOctets} 祝",
"format": "{bandwidthDownBits:>8}  {bandwidthUpBits:>8} 祝",
"format-alt": "{bandwidthDownOctets:>8}  {bandwidthUpOctets:>8} 祝",
"format-disconnected": " 0b/s 祝 0b/s",
"tooltip": false
},