From 071f0990417460bd453473ce4e33b76b8ebb21df Mon Sep 17 00:00:00 2001 From: ryukamish Date: Mon, 8 Jun 2026 12:47:51 +0530 Subject: fix: better integration with sway --- .config/waybar/config.jsonc | 36 ++++++++++++++---------------------- .config/waybar/style.css | 15 +++++++-------- 2 files changed, 21 insertions(+), 30 deletions(-) diff --git a/.config/waybar/config.jsonc b/.config/waybar/config.jsonc index b10f9f9..ec5dc7c 100644 --- a/.config/waybar/config.jsonc +++ b/.config/waybar/config.jsonc @@ -1,7 +1,6 @@ { "layer": "top", "position": "top", - "modules-left": [ "sway/workspaces", "network", @@ -13,25 +12,21 @@ "pulseaudio", "bluetooth", "battery", - "clock" + "clock" ], - - "sway/workspaces": { - "all-outputs": true, - "format": "{name}" - }, - + "sway/workspaces": { + "all-outputs": true, + "format": "{name}" + }, "clock": { - "format": "{:%a, %b %H:%M}", - "interval": 60, - "tooltip-format": "{:%B %Y}\n{calendar}" + "format": "{:%a, %b %d/%m/%y %H:%M}", + "interval": 60, + "tooltip-format": "{:%B %Y}\n{calendar}" + }, + "tray": { + "icon-size": 16, + "spacing": 4 }, - - "tray": { - "icon-size": 14, - "spacing": 0 - }, - "battery": { "interval": 60, "max-length": 25, @@ -44,18 +39,16 @@ "format-icons": { "charging": "PWR: {capacity}%" }, - "format-plugged": "PLG: {capacity}%" + "format-plugged": "PLG: {capacity}%" }, - "bluetooth": { "format": "BT: {num_connections}", - "format-disabled": "BT: DC'D", + "format-disabled": "BT: DC'D", "format-connected": "BT: {num_connections}", "tooltip-format": "Devices connected: {num_connections}\n{device_alias} at {device_battery_percentage}%", "on-click": "kitty --app-id=TUI.float -e bluetui", "on-click-right": "rfkill toggle bluetooth" }, - "pulseaudio": { "format": "{icon} {volume}", "format-bluetooth": "BT: {icon} {volume}", @@ -69,7 +62,6 @@ "tooltip-format": "{desc}", "scroll-step": 5 }, - "network": { "interface": "wlo1", "format": "{ifname}", diff --git a/.config/waybar/style.css b/.config/waybar/style.css index a968286..8419926 100644 --- a/.config/waybar/style.css +++ b/.config/waybar/style.css @@ -1,7 +1,7 @@ * { border: none; font-family: "IoskeleyMono Nerd Font, monospace"; - font-size: 14px; + font-size: 12px; font-weight: bold; min-height: 0; } @@ -11,15 +11,15 @@ window#waybar { } #workspaces button.focused { - background-color: #7fc8ff; - color: #0a0a0a; - border-radius: 0; + background-color: #7fc8ff; + color: #0a0a0a; + border-radius: 0; } #workspaces button.urgent { - color: #ffffff; - background: #ff0000; - border-radius: 0; + color: #ffffff; + background: #ff0000; + border-radius: 0; } #battery { @@ -68,4 +68,3 @@ window#waybar { #custom-screenrecording-indicator { color: #ff0000; } - -- cgit v1.3