From 19dd672915f4b3c3a9f63cdac16250302df21caa Mon Sep 17 00:00:00 2001 From: juan Date: Fri, 15 Jul 2022 12:40:15 +0800 Subject: [PATCH] :adhesive_bandage: Chore | Cosmetic change in waybar Fixed waybar and changed a little bit in swaync --- .config/swaync/config.json | 4 ++-- .config/waybar/config | 37 +++++++++++++++++++------------------ 2 files changed, 21 insertions(+), 20 deletions(-) diff --git a/.config/swaync/config.json b/.config/swaync/config.json index fc8f790..6a41685 100644 --- a/.config/swaync/config.json +++ b/.config/swaync/config.json @@ -3,13 +3,13 @@ "positionX": "right", "positionY": "top", "control-center-margin-top": 12, - "control-center-margin-bottom": 256, + "control-center-margin-bottom": 128, "control-center-margin-right": 8, "control-center-margin-left": 8, "timeout": 10, "timeout-low": 5, "timeout-critical": 0, - "notification-window-width": 500, + "notification-window-width": 512, "keyboard-shortcuts": true, "image-visibility": "always", "transition-time": 200, diff --git a/.config/waybar/config b/.config/waybar/config index e7589e2..03d4d6d 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -24,17 +24,20 @@ "spacing": 10 }, "cpu": { - "format": " {load}" + "format": " {load}", + "format-alt": " {usage}% @ {avg_frequency}GHz" }, "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": { "format-wifi": " {essid} ({signalStrength}%)", - "format-ethernet": " {ifname}: {ipaddr}/{cidr}", - "format-linked": " {ifname} (No IP)", + "format-ethernet": " {ifname}", + "format-linked": " {ifname}", "format-disconnected": " Disconnected", - "format-alt": "{ifname}: {ipaddr}/{cidr}" + "format-alt": " {ifname}: {ipaddr}/{cidr}", + "tooltip-format": "{ifname} via {gwaddr}" }, "battery": { "states": { @@ -45,7 +48,7 @@ "format": "{icon} {capacity}%", "format-charging": " {capacity}%", "format-plugged": " {capacity}%", - "format-alt": "{icon} {time}", + "format-alt": "{icon} ETA: {time}", "format-icons": [ "", "", @@ -56,16 +59,16 @@ }, "clock": { "format": "{: %H:%M\t %m-%d}", - "tooltip-format": "{:%Y %B}\n{calendar}", + "tooltip-format": "{:%Y %B}\n{calendar}" }, "custom/notification": { - "tooltip": false, + "tooltip": true, "format": "{icon}", "format-icons": { - "notification": " There is new notification", + "notification": " New notifications", "none": " No notifications", - "dnd-notification": " There is notification", - "dnd-none": " DND is on" + "dnd-notification": " DND on", + "dnd-none": " DND on" }, "return-type": "json", "exec-if": "which swaync-client", @@ -75,14 +78,12 @@ "escape": true }, "custom/player": { - "format": "{icon} {}", - "format-icons": { - "Playing": " ", - "Paused": " " - }, + "format": " {}", "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, - "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" } }