From fe74e79404765811db13453207de0d6f18da40f6 Mon Sep 17 00:00:00 2001 From: "Antoine Phan, on LuminisArcana" Date: Sat, 7 Mar 2026 02:30:37 -0500 Subject: [PATCH] cleanup waybar config --- waybar/.config/waybar/config | 218 +++++++++++++++----------------- waybar/.config/waybar/style.css | 59 ++++++--- 2 files changed, 142 insertions(+), 135 deletions(-) diff --git a/waybar/.config/waybar/config b/waybar/.config/waybar/config index f2e3159..483695a 100644 --- a/waybar/.config/waybar/config +++ b/waybar/.config/waybar/config @@ -1,85 +1,79 @@ { - "layer": "top", - "position": "top", - "font": "Fira Code Bold 12", - "margin": 5, + "layer": "top", + "position": "top", + "font": "Fira Code 11", + "margin-top": 6, + "margin-left": 6, + "margin-right": 6, -// ------ Left Module ------ // - "modules-left": [ - "hyprland/workspaces", + "modules-left": [ + "hyprland/workspaces", "niri/workspaces", "wlr/taskbar", "hyprland/window", "niri/window" - ], + ], - "hyprland/workspaces": { - "on-scroll-up": "hyprctl dispatch workspace m-1", - "on-scroll-down": "hyprctl dispatch workspace m+1", - "disable-scroll": true, - "format": "{name}", - }, + "modules-center": [ + "clock#1", + "clock#2", + "clock#3" + ], + + "modules-right": [ + "tray", + "pulseaudio", + "backlight", + "memory", + "cpu", + "network", + "battery", + "keyboard-state" + ], + + "hyprland/workspaces": { + "format": "{name}", + "on-scroll-up": "hyprctl dispatch workspace m-1", + "on-scroll-down": "hyprctl dispatch workspace m+1", + "disable-scroll": true + }, "hyprland/window": { "max-length": 200, - "separate-outputs": true, + "separate-outputs": true }, "niri/workspaces": { - "format": "{value}", - "format-icons": { - } + "format": "{value}", + "format-icons": {} }, "niri/window": { - "format": "{}", + "format": "{}", "icon": false, "separate-outputs": true, "offscreen-css": true }, - + "wlr/taskbar": { - "format": "{icon}", - "tooltip-format": "{title}", - "on-click": "activate", - // "on-click-middle": "close", - // "on-click-right": "fullscreen" - }, + "format": "{icon}", + "tooltip-format": "{title}", + "on-click": "activate" + }, - -// ------ Center Module ------ // - "modules-center": [ - "clock#1", - "clock#2", - "clock#3", - ], - "clock#1": { - "format": "{:%A}", - "tooltip": false - }, - "clock#2": { - "format": "{:%I:%M %p}", - "tooltip": false - }, - "clock#3": { - "format": "{:%d/%m/%Y}", - "tooltip": true - }, + "format": "{:%A}", + "tooltip": false + }, + "clock#2": { + "format": "{:%I:%M %p}", + "tooltip": false + }, + "clock#3": { + "format": "{:%d/%m/%Y}", + "tooltip": true + }, - -// ------ Right Module ------- // - "modules-right": [ - "tray", - "pulseaudio", - "backlight", - "memory", - "cpu", - "network", - "battery", - "keyboard-state" - ], - "keyboard-state": { "numlock": true, "capslock": false, @@ -87,25 +81,24 @@ "numlock": "NL {icon}" }, "format-icons": { - "locked": "🔳", - "unlocked": "⚪" + "locked": "🔳", + "unlocked": "⚪" } }, - "pulseaudio": { - "format": "{icon} {volume:2}%", - "format-bluetooth": "{icon} {volume:2}% ", - "format-muted": "🔇 MUTED", - "format-icons": { - "headphones": "", - "default": [ - "", - "" - ] - }, - "scroll-step": 6, - "on-click": "wpctl set-mute @DEFAULT_SINK@ toggle", - "on-click-right": "pwvucontrol" - }, + + "pulseaudio": { + "format": "{icon} {volume:2}%", + "format-bluetooth": "{icon} {volume:2}% ", + "format-muted": "🔇 Muted", + "format-icons": { + "default": ["", ""], + "default-muted": "" + }, + "scroll-step": 6, + "tooltip": true, + "on-click": "wpctl set-mute @DEFAULT_SINK@ toggle", + "on-click-right": "pwvucontrol" + }, "backlight": { "format": "{icon} {percent:3}%", @@ -114,45 +107,42 @@ "on-scroll-down": "brightnessctl set 1%- -q -e" }, - "memory": { - "interval": 5, + "memory": { + "interval": 5, "format": "{used:0.2f}/{total:0.2f} GB" - }, - "cpu": { - "interval": 1, - "format": "{icon0}{icon1}{icon2}{icon3}{icon4}{icon5}{icon6}{icon7}{icon8}{icon9}{icon10}{icon11}{icon12}{icon13}{icon14}{icon15}", - "format-icons": [ - "", // pastel purple (low) - "", // pastel blue - "", // pastel cyan - "", // pastel green - "", // pastel yellow - "", // pastel orange - "", // light pastel red - "" // deeper pastel red (high) - ] }, - - "battery": { - "states": { - "good": 80, - "warning": 42, - "critical": 24 - }, - "format": "{icon} {capacity}%", + + "cpu": { + "interval": 1, + "format": "{icon0}{icon1}{icon2}{icon3}{icon4}{icon5}{icon6}{icon7}{icon8}{icon9}{icon10}{icon11}{icon12}{icon13}{icon14}{icon15}", + "format-icons": [ + "", // pastel purple (low) + "", // pastel blue + "", // pastel cyan + "", // pastel green + "", // pastel yellow + "", // pastel orange + "", // light pastel red + "" // deeper pastel red (high) + ] + }, + + "battery": { + "states": { + "good": 80, + "warning": 42, + "critical": 24 + }, + "format": "{icon} {capacity}%", "format-charging": " {icon} {capacity}%", - "format-icons": [ - "", - "", - "", - "", - "" - ] - }, - "tray": { - "icon-size": 20, - "spacing": 7 - }, + "format-icons": ["", "", "", "", ""] + }, + + "tray": { + "icon-size": 18, + "spacing": 8 + }, + "network": { "interface": "wlan0", "format": "{ifname}", @@ -162,6 +152,6 @@ "tooltip-format": "{ifname} via {gwaddr} 󰊗 ", "tooltip-format-wifi": "Up: {bandwidthUpBytes} - Down: {bandwidthDownBytes}", "tooltip-format-ethernet": "{ifname}  ", - "tooltip-format-disconnected": "Disconnected", - }, - } + "tooltip-format-disconnected": "Disconnected" + } +} diff --git a/waybar/.config/waybar/style.css b/waybar/.config/waybar/style.css index 33f8f14..cf93361 100644 --- a/waybar/.config/waybar/style.css +++ b/waybar/.config/waybar/style.css @@ -1,20 +1,28 @@ * { - font-size: 12px; - font-family: "Fira Code", monospace; + font-size: 12px; + font-family: "Fira Code", monospace; font-weight: bold; border-radius: 10px; } - -.modules-center { -} + +.modules-center {} window#waybar { - background-color: transparent; + background-color: transparent; } -#clock.1, #clock.2, #clock.3, -#pulseaudio, #memory, #cpu, #network, #mpd, -#battery, #disk, #backlight, #tray, +#clock.1, +#clock.2, +#clock.3, +#pulseaudio, +#memory, +#cpu, +#network, +#mpd, +#battery, +#disk, +#backlight, +#tray, #keyboard-state { background: rgba(20, 24, 20, 0.64); text-shadow: 2px 3px 2px rgba(20, 20, 20, 0.3); @@ -23,6 +31,12 @@ window#waybar { margin-left: 2px; margin-right: 2px; color: white; + border: 2px solid transparent; +} + +#pulseaudio:hover { + border: 2px solid rgba(40, 170, 120, 1); + background: rgba(20, 24, 20, 0.64); } #window { @@ -37,27 +51,30 @@ window#waybar.empty #window { background: transparent; } -#workspaces, #taskbar { +#workspaces, +#taskbar { background: rgba(18, 26, 23, 0.56); } -#workspaces button, #taskbar button { - padding: 1px 4px; - color: #fafafa; +#workspaces button, +#taskbar button { + padding: 1px 4px; + color: #fafafa; border: 2px solid transparent; } /* button.active for hyprland, button.focused for sway */ -#workspaces button.active, #taskbar button.active { - color: #ffffff; +#workspaces button.active, +#taskbar button.active { + color: #ffffff; border: 2px solid rgba(40, 170, 120, 1); } -#workspaces button:hover, #taskbar button:hover { +#workspaces button:hover, +#taskbar button:hover { color: black; - background-color: rgba(126,255,180,0.4); + background-color: rgba(126, 255, 180, 0.4); border: 2px solid rgba(80, 230, 180, 1); - box-shadow: inherit; - text-shadow: inherit; -} - + box-shadow: inherit; + text-shadow: inherit; +} \ No newline at end of file