From 652f8e8a34213908c0c69d6421549667a720a612 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Fri, 5 Sep 2025 20:21:50 +0300 Subject: [PATCH] Add ~/.config/waybar --- dot_config/waybar/config | 70 ++++++++++++++++++++ dot_config/waybar/style.css | 127 ++++++++++++++++++++++++++++++++++++ 2 files changed, 197 insertions(+) create mode 100644 dot_config/waybar/config create mode 100644 dot_config/waybar/style.css diff --git a/dot_config/waybar/config b/dot_config/waybar/config new file mode 100644 index 0000000..e402ac4 --- /dev/null +++ b/dot_config/waybar/config @@ -0,0 +1,70 @@ +{ + "position": "bottom", // Waybar position (top|bottom|left|right) + "height": 25, // Waybar height (to be removed for auto height) + "spacing": 2, // Gaps between modules (4px) + // Choose the order of the modules + "modules-left": ["sway/workspaces", "sway/mode", "sway/scratchpad"], + "modules-center": ["sway/window"], + "modules-right": ["idle_inhibitor", "wireplumber", "network", "sway/language", "battery", "clock", "tray"], + // Modules configuration + "sway/workspaces": { + "disable-scroll": true, + }, + "sway/mode": { + "format": "{}" + }, + "sway/scratchpad": { + "format": "{icon} {count}", + "show-empty": false, + "format-icons": ["", ""], + "tooltip": true, + "tooltip-format": "{app}: {title}" + }, + "sway/window": { + "format": "{title}", + "max-length": 50, + }, + "sway/language": { + "format": "{short} {variant}", + }, + "idle_inhibitor": { + "format": "{icon}", + "format-icons": { + "activated": "", + "deactivated": "" + } + }, + "tray": { + "spacing": 10 + }, + "clock": { + "tooltip-format": "{:%Y %B}\n{calendar}", + "format": "{:%Y-%m-%d %H:%M %p}" + }, + "battery": { + "states": { + "good": 95, + "warning": 30, + "critical": 15 + }, + "format": "{capacity}% {icon}", + "format-charging": "{capacity}% ", + "format-plugged": "{capacity}% ", + "format-alt": "{time} {icon}", + "format-icons": ["", "", "", "", ""] + }, + "network": { + "format-wifi": "{essid} ({signalStrength}%) ", + "format-ethernet": "{ipaddr}/{cidr} ", + "tooltip-format": "{ifname} via {gwaddr} ", + "format-linked": "{ifname} (No IP) ", + "format-disconnected": "Disconnected ⚠", + "format-alt": "{ifname}: {ipaddr}/{cidr}" + }, + "wireplumber": { + "format": "{volume}% {icon}", + "format-muted": "", + "on-click": "helvum", + "format-icons": ["", "", ""] + }, +} diff --git a/dot_config/waybar/style.css b/dot_config/waybar/style.css new file mode 100644 index 0000000..47d6dda --- /dev/null +++ b/dot_config/waybar/style.css @@ -0,0 +1,127 @@ +/* List of selenized-dark colors vs solarized-dark */ + +/* { + --base03: #103c48 (002b36); + --base02: #184956 (073642); + --base01: #84c747 (586e75); + --base00: #ebc13d (657b83); + --base0: #adbcbc (839496); + --base1: #53d6c7 (93a1a1); + --base2: #72898f (eee8d5); + --base3: #cad8d9 (fdf6e3); + --yellow: #dbb32d (b58900); + --orange: #ff665c (cb4b16); + --red: #fa5750 (dc322f); + --magenta: #f275be (d33682); + --violet: #ff84cd (6c71c4); + --blue: #4695f7 (268bd2); + --cyan: #41c7b9 (2aa198); + --green: #75b938 (859900); +} */ + +* { + border: none; + border-radius: 0; + font-family: Source Sans Pro Semibold, "Font Awesome 6 Free", sans-serif; + font-size: 13px; + min-height: 0; +} + +window#waybar { + background-color: #103c48; + color: #f275be; + transition-property: background-color; + transition-duration: .5s; +} + +window#waybar.hidden { + opacity: 0.2; +} + +#workspaces button { + padding: 0 3px; + background-color: transparent; + color: #adbcbc; + border-bottom: 2px solid transparent; +} + +#workspaces button.focused { + background-color: #184956; + border-bottom: 2px solid #fa5750; +} + +#workspaces button.urgent { + background-color: #f275be; +} + +#clock, #battery, #network, #wireplumber, #tray, #mode, #language, #idle_inhibitor, #window { + padding: 0 10px; + margin: 0 2px; + color: #adbcbc; +} + +#clock { + background-color: #184956; +} + +#battery { + background-color: #184956; +} + +#battery.charging { + color: #103c48; + background-color: #75b938; +} + +#language { + background-color: #184956; +} + +@keyframes blink { + to { + background-color: #f275be; + color: #53d6c7; + } +} + +#battery.critical:not(.charging) { + background-color: #fa5750; + color: #53d6c7; + animation-name: blink; + animation-duration: 0.5s; + animation-timing-function: linear; + animation-iteration-count: infinite; + animation-direction: alternate; +} + +label:focus { + background-color: #184956; +} + +#network { + background-color: #184956; +} + +#network.disconnected { + background-color: #103c48; +} + +#wireplumber { + background-color: #184956; +} + +#wireplumber.muted { + background-color: #103c48; +} + +#tray { + background-color: #103c48; +} + +#idle_inhibitor { + background-color: #103c48; +} + +#idle_inhibitor.activated { + background-color: #184956; +}