From 95234e8d19f943d875362c8adcd17b3f3c0d8b54 Mon Sep 17 00:00:00 2001 From: Mr Hedgehog Date: Wed, 29 Jun 2022 11:49:42 -0400 Subject: [PATCH] waybar: update config --- oldconfig/waybar/config | 49 ++++++++++---------------------------- oldconfig/waybar/style.css | 15 ++++++------ 2 files changed, 20 insertions(+), 44 deletions(-) diff --git a/oldconfig/waybar/config b/oldconfig/waybar/config index 5ee022a..8b9511d 100644 --- a/oldconfig/waybar/config +++ b/oldconfig/waybar/config @@ -2,26 +2,9 @@ "layer": "top", // Waybar at top layer "position": "top", // Waybar position (top|bottom|left|right) "height": 30, // Waybar height (to be removed for auto height) - // Choose the order of the modules "modules-left": ["sway/workspaces", "sway/mode"], "modules-center": ["custom/media",], "modules-right": ["idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "battery", "clock", "tray"], - // Modules configuration - // "sway/workspaces": { - // "disable-scroll": true, - // "all-outputs": true, - // "format": "{name}: {icon}", - // "format-icons": { - // "1": "", - // "2": "", - // "3": "", - // "4": "", - // "5": "", - // "urgent": "", - // "focused": "", - // "default": "" - // } - // }, "sway/mode": { "format": "{}" }, @@ -33,7 +16,6 @@ } }, "tray": { - // "icon-size": 21, "spacing": 10 }, "clock": { @@ -51,21 +33,17 @@ "format": "{}% " }, "temperature": { - // "thermal-zone": 2, - // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input", "critical-threshold": 80, - // "format-critical": "{temperatureC}°C {icon}", "format": "{temperatureC}°C {icon}", "format-icons": ["", "", ""] }, "backlight": { - // "device": "acpi_video1", "format": "{percent}% {icon}", "format-icons": ["", ""] }, "battery": { "states": { - // "good": 95, + "good": 80, "warning": 30, "critical": 15 }, @@ -73,8 +51,8 @@ "format-charging": "{capacity}% ", "format-plugged": "{capacity}% ", "format-alt": "{time} {icon}", - // "format-good": "", // An empty format will hide the module - // "format-full": "", + "format-good": "", + "format-full": "", "format-icons": ["", "", "", "", ""] }, "battery#bat2": { @@ -84,12 +62,11 @@ "format-wifi": "{essid}", "format-ethernet": "{ifname}: {ipaddr}/{cidr} ", "format-linked": "{ifname} (No IP) ", - "format-disconnected": "Not Connected ⚠", + "format-disconnected": "Disconnected! ⚠", "format-alt": "{ifname}: {ipaddr}/{cidr}" }, "pulseaudio": { - // "scroll-step": 1, // %, can be a float "format": "{volume}% {icon} {format_source}", "format-bluetooth": "{volume}% {icon} {format_source}", "format-bluetooth-muted": " {icon} {format_source}", @@ -108,14 +85,14 @@ "on-click": "pavucontrol" }, "custom/media": { - "return-type": "json", - "exec": "waybar-mpris --position --autofocus", - "on-click": "waybar-mpris --send toggle", - // This option will switch between players on right click. - "on-click-right": "waybar-mpris --send player-next", - // The options below will go to next/previous track on scroll - "on-scroll-up": "waybar-mpris --send next", - "on-scroll-down": "waybar-mpris --send prev", - "escape": true, + "format": "{icon}{}", + "return-type": "json", + "format-icons": { + "Playing": " ", + "Paused": " ", + }, + "max-length":70, + "exec": "playerctl -a metadata --format '{\"text\": \"{{playerName}}: {{artist}} - {{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{markup_escape(title)}}\", \"alt\": \"{{status}}\", \"class\": \"{{status}}\"}' -F", + "on-click": "playerctl play-pause", }, } diff --git a/oldconfig/waybar/style.css b/oldconfig/waybar/style.css index 90dda85..dacc8f0 100644 --- a/oldconfig/waybar/style.css +++ b/oldconfig/waybar/style.css @@ -78,6 +78,7 @@ window#waybar { #memory, #network, #pulseaudio, +#clock, #idle_inhibitor, #sway-language, #backlight, @@ -88,17 +89,15 @@ window#waybar { #custom-weather, #custom-mail, #custom-media { - margin: 0px 0px 0px 10px; - padding: 0 8px; - padding-right: 7px; - border-right: 1px solid #414868; + padding: 2px 8px; + margin: 2px 5px; + border: 1px solid #414868; /* border-top: 3px solid rgba(217, 216, 216, 0.5); */ } -/* #clock { - margin: 0px 16px 0px 10px; - min-width: 140px; -} */ +#clock { + font-weight: bold; +} #battery.warning { color: rgba(255, 210, 4, 1);