1
1
mirror of https://github.com/rywng/dotfiles.git synced 2024-11-24 20:01:49 +08:00

cut the chars that exceeds the threshold

might reimplement it someday using css.
This commit is contained in:
juan 2022-04-07 15:11:44 +08:00
parent 3e54e1f4a3
commit cc99c7e8e1

View File

@ -1,7 +1,6 @@
{ {
"layer": "top", // Waybar at top layer "layer": "top", // Waybar at top layer
"height": 24, // Waybar height (to be removed for auto height) "height": 24, // Waybar height (to be removed for auto height)
// Choose the order of the modules
"modules-left": ["sway/workspaces"], "modules-left": ["sway/workspaces"],
"modules-center": ["sway/window"], "modules-center": ["sway/window"],
"modules-right": ["custom/notification","tray","custom/player","network","battery","clock"], "modules-right": ["custom/notification","tray","custom/player","network","battery","clock"],
@ -34,10 +33,6 @@
"format-disconnected": "Disconnected ", "format-disconnected": "Disconnected ",
"format-alt": "{ifname}: {ipaddr}/{cidr}" "format-alt": "{ifname}: {ipaddr}/{cidr}"
}, },
//"custom/weather": {
// "exec": "sleep 10 && curl 'https://wttr.in/?format=%t+(%f)+%c'",
// "interval": 1800
//},
"custom/notification": { "custom/notification": {
"tooltip": false, "tooltip": false,
"format": "{icon}", "format": "{icon}",
@ -56,7 +51,7 @@
}, },
"custom/player": { "custom/player": {
"escape": true, "escape": true,
"exec": "playerctl metadata --format '{{uc(playerName)}}: {{ artist }} - {{ album }} - {{ title }} {{emoji(status)}}' || echo 'Stopped  '", "exec": "playerctl metadata --format '{{uc(playerName)}}: {{ artist }} - {{ album }} - {{ title }} {{emoji(status)}}' | cut -c -48 || echo 'Stopped  '",
"interval": 15, "interval": 15,
"on-click": "playerctl play-pause && sleep 0.2 && notify-send `playerctl status` -t 1000" "on-click": "playerctl play-pause && sleep 0.2 && notify-send `playerctl status` -t 1000"
} }