From 38f47911d2c2d0b448a11c799ba195d86a4a3097 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 17 Oct 2025 12:49:30 +0300 Subject: waybar: clean config --- .config/waybar/config.jsonc | 46 +++++++++++++++++++++++++++++++++++++-------- .config/waybar/style.css | 39 +++++++++++++++++++------------------- 2 files changed, 58 insertions(+), 27 deletions(-) (limited to '.config') diff --git a/.config/waybar/config.jsonc b/.config/waybar/config.jsonc index 876d0a9..0736e43 100644 --- a/.config/waybar/config.jsonc +++ b/.config/waybar/config.jsonc @@ -64,6 +64,9 @@ "default": "" } }, + "hyprland/window": { + "max-length": 40 + }, "keyboard-state": { "numlock": true, "capslock": true, @@ -79,7 +82,10 @@ "sway/scratchpad": { "format": "{icon} {count}", "show-empty": false, - "format-icons": ["", ""], + "format-icons": [ + "", + "" + ], "tooltip": true, "tooltip-format": "{app}: {title}" }, @@ -122,7 +128,7 @@ }, "clock": { "format": "{:%H:%M | %B %d, %A}", - "tooltip-format": "{calendar}", + "tooltip-format": "{calendar}" }, "cpu": { "format": "{usage}% ", @@ -137,12 +143,26 @@ "critical-threshold": 80, // "format-critical": "{temperatureC}°C {icon}", "format": "{temperatureC}°C {icon}", - "format-icons": ["", "", ""] + "format-icons": [ + "", + "", + "" + ] }, "backlight": { // "device": "acpi_video1", "format": "{percent}% {icon}", - "format-icons": ["", "", "", "", "", "", "", "", ""] + "format-icons": [ + "", + "", + "", + "", + "", + "", + "", + "", + "" + ] }, "battery": { "states": { @@ -157,7 +177,13 @@ "format-alt": "{time} {icon}", // "format-good": "", // An empty format will hide the module // "format-full": "", - "format-icons": ["", "", "", "", ""] + "format-icons": [ + "", + "", + "", + "", + "" + ] }, "battery#bat2": { "bat": "BAT2" @@ -189,7 +215,11 @@ "phone": "", "portable": "", "car": "", - "default": [" ", " ", " "] + "default": [ + " ", + " ", + " " + ] }, "on-click": "pavucontrol" }, @@ -244,7 +274,7 @@ "custom/focus": { "exec": "/home/yigit/.config/polybar/scripts/focus", "interval": 5, - "format": "{}" + "format": "{}", + "escape": true } } - diff --git a/.config/waybar/style.css b/.config/waybar/style.css index f7d05f8..231798a 100644 --- a/.config/waybar/style.css +++ b/.config/waybar/style.css @@ -1,14 +1,14 @@ @import "latte.css"; * { - border: none; - border-radius: 0; - font-family: FontAwesome, scientifica; - font-size: 14px; - min-height: 0; - box-shadow: none; - text-shadow: none; - transition-duration: 0s; + border: none; + border-radius: 0; + font-family: FontAwesome, scientifica; + font-size: 14px; + min-height: 0; + box-shadow: none; + text-shadow: none; + transition-duration: 0s; color: @text; } @@ -87,12 +87,12 @@ button:hover { } /* If workspaces is the leftmost module, omit left margin */ -.modules-left > widget:first-child > #workspaces { +.modules-left>widget:first-child>#workspaces { margin-left: 0; } /* If workspaces is the rightmost module, omit right margin */ -.modules-right > widget:last-child > #workspaces { +.modules-right>widget:last-child>#workspaces { margin-right: 0; } @@ -109,15 +109,16 @@ tooltip.background { background-color: #ffffff; } -#battery.charging, #battery.plugged { +#battery.charging, +#battery.plugged { background-color: #26A65B; } @keyframes blink { -to { - background-color: #ffffff; - color: #000000; -} + to { + background-color: #ffffff; + color: #000000; + } } /* Using steps() instead of linear as a timing function to limit cpu usage */ @@ -200,11 +201,11 @@ label:focus { background-color: @sapphire; } -#tray > .passive { +#tray>.passive { -gtk-icon-effect: dim; } -#tray > .needs-attention { +#tray>.needs-attention { -gtk-icon-effect: highlight; background-color: @red; } @@ -251,11 +252,11 @@ label:focus { min-width: 16px; } -#keyboard-state > label { +#keyboard-state>label { padding: 0 5px; } -#keyboard-state > label.locked { +#keyboard-state>label.locked { background: rgba(0, 0, 0, 0.2); } -- cgit v1.2.3-70-g09d2