1
1
mirror of https://github.com/rywng/dotfiles.git synced 2024-11-22 19:01:50 +08:00

🩹 Chore | Cosmetic change in waybar

Fixed waybar and changed a little bit in swaync
This commit is contained in:
juan 2022-07-15 12:40:15 +08:00
parent 05099150e8
commit 19dd672915
No known key found for this signature in database
GPG Key ID: 63A51E78F28ACE53
2 changed files with 21 additions and 20 deletions

View File

@ -3,13 +3,13 @@
"positionX": "right", "positionX": "right",
"positionY": "top", "positionY": "top",
"control-center-margin-top": 12, "control-center-margin-top": 12,
"control-center-margin-bottom": 256, "control-center-margin-bottom": 128,
"control-center-margin-right": 8, "control-center-margin-right": 8,
"control-center-margin-left": 8, "control-center-margin-left": 8,
"timeout": 10, "timeout": 10,
"timeout-low": 5, "timeout-low": 5,
"timeout-critical": 0, "timeout-critical": 0,
"notification-window-width": 500, "notification-window-width": 512,
"keyboard-shortcuts": true, "keyboard-shortcuts": true,
"image-visibility": "always", "image-visibility": "always",
"transition-time": 200, "transition-time": 200,

View File

@ -24,17 +24,20 @@
"spacing": 10 "spacing": 10
}, },
"cpu": { "cpu": {
"format": " {load}" "format": " {load}",
"format-alt": " {usage}% @ {avg_frequency}GHz"
}, },
"memory": { "memory": {
"format": " {used:0.1f}G / {total:0.1f}G" "format": " {used:0.1f}G / {total:0.1f}G",
"format-alt": " Swap: {swapUsed:0.1f}G / {swapTotal:0.1f}G"
}, },
"network": { "network": {
"format-wifi": " {essid} ({signalStrength}%)", "format-wifi": " {essid} ({signalStrength}%)",
"format-ethernet": " {ifname}: {ipaddr}/{cidr}", "format-ethernet": " {ifname}",
"format-linked": " {ifname} (No IP)", "format-linked": " {ifname}",
"format-disconnected": " Disconnected", "format-disconnected": " Disconnected",
"format-alt": "{ifname}: {ipaddr}/{cidr}" "format-alt": " {ifname}: {ipaddr}/{cidr}",
"tooltip-format": "{ifname} via {gwaddr}"
}, },
"battery": { "battery": {
"states": { "states": {
@ -45,7 +48,7 @@
"format": "{icon} {capacity}%", "format": "{icon} {capacity}%",
"format-charging": " {capacity}%", "format-charging": " {capacity}%",
"format-plugged": " {capacity}%", "format-plugged": " {capacity}%",
"format-alt": "{icon} {time}", "format-alt": "{icon} ETA: {time}",
"format-icons": [ "format-icons": [
"", "",
"", "",
@ -56,16 +59,16 @@
}, },
"clock": { "clock": {
"format": "{: %H:%M\t %m-%d}", "format": "{: %H:%M\t %m-%d}",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>", "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
}, },
"custom/notification": { "custom/notification": {
"tooltip": false, "tooltip": true,
"format": "{icon}", "format": "{icon}",
"format-icons": { "format-icons": {
"notification": " There is new notification<span foreground='red'><sup></sup></span>", "notification": " <span foreground='red'><sup></sup></span> New notifications",
"none": " No notifications", "none": " No notifications",
"dnd-notification": " There is notification<span foreground='red'><sup></sup></span>", "dnd-notification": " DND on",
"dnd-none": " DND is on" "dnd-none": " DND on"
}, },
"return-type": "json", "return-type": "json",
"exec-if": "which swaync-client", "exec-if": "which swaync-client",
@ -75,14 +78,12 @@
"escape": true "escape": true
}, },
"custom/player": { "custom/player": {
"format": "{icon} {}", "format": " {}",
"format-icons": {
"Playing": " ",
"Paused": " "
},
"return-type": "json", "return-type": "json",
"exec": "playerctl -a metadata --format '{\"text\": \"{{uc(playerName)}}: {{artist}} - {{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{markup_escape(title)}}\", \"alt\": \"{{status}}\", \"class\": \"{{status}}\"}' -F", "exec": "playerctl -a metadata --format '{\"text\": \"{{uc(playerName)}}: {{artist}} - {{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{markup_escape(title)}}\", \"class\": \"{{status}}\"}' -F",
"max-length": 35, "max-length": 35,
"on-click": "playerctl play-pause && sleep 0.2 && notify-send `playerctl status` -t 1000" "on-click-middle": "playerctl play-pause",
"on-click-right": "plaerctl next",
"on-click-left": "playerctl previous"
} }
} }