// -- mode: jsonc -- { "layer": "top", // Waybar at top layer "height": 30, // Waybar…
- User
// -- mode: jsonc -- { "layer": "top", // Waybar at top layer "height": 30, // Waybar height (to be removed for auto height) // "width": 1280, // Waybar width "spacing": 4, // Gaps between modules (4px) // Choose the order of the modules "modules-left": [ "sway/workspaces", "sway/mode", ], "modules-center": [ "sway/window" ], "modules-right": [ "pulseaudio", "network", "clock", "tray", ], "sway/mode": { "format": "<span style="italic">{}" }, "tray": { // "icon-size": 21, "spacing": 10 }, "clock": { // "timezone": "America/New_York", "tooltip-format": "{:%Y %B}\n{calendar}", "format-alt": "{:%Y-%m-%d}" }, "network": { // "interface": "wlp2*", // (Optional) To force the use of this interface "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}" }, "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}", "format-muted": " {format_source}", "format-source": "{volume}% ", "format-source-muted": "", "format-icons": { "headphone": "", "hands-free": "", "headset": "", "phone": "", "portable": "", "car": "", "default": ["", "", ""] }, "on-click": "pavucontrol" }, }
rewrite this waybar config with nerd fonts
- Assistant
Here's your updated Waybar configuration using Nerd Fonts for the icons:
// -*- mode: jsonc -*- { "layer": "top", // Waybar at top layer "height": 30, // Waybar height (to be removed for auto height) // "width": 1280, // Waybar width "spacing": 4, // Gaps between modules (4px) // Choose the order of the modules "modules-left": [ "sway/workspaces", "sway/mode" ], "modules-center": [ "sway/window" ], "modules-right": [ "pulseaudio", "network", "clock", "tray" ], "sway/mode": { "format": "<span style=\"italic\"> {}</span>" // Added Nerd Font icon (e.g., layout/mode icon) }, "tray": { // "icon-size": 21, "spacing": 10 // Customizable spacing for tray icons }, "clock": { // "timezone": "America/New_York", // Optional timezone setting "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>", "format-alt": " {:%Y-%m-%d}", // Using Nerd Font calendar icon "format": " {:%H:%M:%S}" // Using Nerd Font clock icon (default format example) }, "network": { // "interface": "wlp2*", // (Optional) To force the use of this interface "format-wifi": " {essid} ({signalStrength}%)", // Nerd Font Wi-Fi icon "format-ethernet": " {ipaddr}/{cidr}", // Nerd Font Ethernet icon "tooltip-format": " {ifname} via {gwaddr}", // Nerd Font gateway icon "format-linked": " {ifname} (No IP)", // Nerd Font network icon (linked but no IP) "format-disconnected": " Disconnected", // Nerd Font warning icon for disconnected state "format-alt": " {ifname}: {ipaddr}/{cidr}" // Alternative format with Nerd Font }, "pulseaudio": { // "scroll-step": 1, // %, can be a float "format": "{volume}% {icon} {format_source}", "format-bluetooth": "{volume}% {icon} {format_source}", // Nerd Font Bluetooth icon "format-bluetooth-muted": " {icon} {format_source}", // Nerd Font muted + Bluetooth icon "format-muted": " {format_source}", // Nerd Font muted icon "format-source": "{volume}% ", "format-source-muted": "", // Nerd Font mic muted icon "format-icons": { "headphone": "", // Nerd Font headphone icon "hands-free": "", // Nerd Font hands-free icon "headset": "", // Nerd Font headset icon "phone": "", // Nerd Font phone icon "portable": "", // Nerd Font portable icon "car": "", // Nerd Font car icon "default": ["", "", ""] // Nerd Font volume level icons (low, medium, high) }, "on-click": "pavucontrol" // Opens PulseAudio control panel on click } }Changes and Additions:
-
Nerd Font Icons: Replaced standard icons/text with Nerd Font icons using appropriate symbols for clarity and aesthetics. For example:
- Wi-Fi:
- Ethernet:
- Bluetooth:
- Clock:
- Calendar:
- Volume:
,,(low, medium, high) - Mute:
(volume muted),(mic muted)
- Wi-Fi:
-
Icons and Formats: Updated module formats to include corresponding Nerd Font symbols or icons.
-
Tooltip Improvements: Enhanced tooltip formats with meaningful Nerd Font emojis.
-
Organization: Preserved the structure/comments for readability in JSONC format.
Feel free to customize the icon choices further based on your preferred Nerd Font symbols!
-
- User
change the cloack to clock icon
- Assistant
Here's your updated configuration with the correct clock icon (
) for the clock module:// -*- mode: jsonc -*- { "layer": "top", // Waybar at top layer "height": 30, // Waybar height (to be removed for auto height) // "width": 1280, // Waybar width "spacing": 4, // Gaps between modules // Choose the order of the modules "modules-left": [ "sway/workspaces", "sway/mode" ], "modules-center": [ "sway/window" ], "modules-right": [ "pulseaudio", "network", "clock", "tray" ], "sway/mode": { "format": "<span style=\"italic\"> {}</span>" // Added Nerd Font icon }, "tray": { // "icon-size": 21, "spacing": 10 // Customizable spacing for tray icons }, "clock": { // "timezone": "America/New_York", // Optional timezone setting "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>", "format-alt": " {:%Y-%m-%d}", // Using Nerd Font clock icon "format": " {:%H:%M:%S}" // Updated to use the proper Nerd Font clock icon }, "network": { // "interface": "wlp2*", // (Optional) To force the use of this interface "format-wifi": " {essid} ({signalStrength}%)", // Nerd Font Wi-Fi icon "format-ethernet": " {ipaddr}/{cidr}", // Nerd Font Ethernet icon "tooltip-format": " {ifname} via {gwaddr}", // Nerd Font gateway icon "format-linked": " {ifname} (No IP)", // Nerd Font network icon (linked but no IP) "format-disconnected": " Disconnected", // Nerd Font warning icon for disconnected state "format-alt": " {ifname}: {ipaddr}/{cidr}" // Alternative format with Nerd Font }, "pulseaudio": { // "scroll-step": 1, // %, can be a float "format": "{volume}% {icon} {format_source}", "format-bluetooth": "{volume}% {icon} {format_source}", // Nerd Font Bluetooth icon "format-bluetooth-muted": " {icon} {format_source}", // Nerd Font muted + Bluetooth icon "format-muted": " {format_source}", // Nerd Font muted icon "format-source": "{volume}% ", "format-source-muted": "", // Nerd Font mic muted icon "format-icons": { "headphone": "", // Nerd Font headphone icon "hands-free": "", // Nerd Font hands-free icon "headset": "", // Nerd Font headset icon "phone": "", // Nerd Font phone icon "portable": "", // Nerd Font portable icon "car": "", // Nerd Font car icon "default": ["", "", ""] // Nerd Font volume level icons (low, medium, high) }, "on-click": "pavucontrol" // Opens PulseAudio control panel on click } }Changes Made
- Replaced the clock module's icon with
, the correct Nerd Font clock symbol. - Updated both
format-altandformatfields for consistency.
You now have a proper clock icon (
) for the time display! Let me know if you need further modifications. - Replaced the clock module's icon with
- User
- { border: none; border-radius: 4px; font-family: "Source Code Pro Nerd Font", Roboto, Helvetica, Arial, sans-serif; font-size: 15px; min-height: 0; }
window#waybar { background-color: rgba(43, 48, 59, 0.9); border-bottom: 3px solid rgba(100, 114, 125, 0.5); color: #ffffff; transition-property: background-color; transition-duration: .5s; border-radius: 4px }
window#waybar.hidden { opacity: 0.2; }
/* window#waybar.empty { background-color: transparent; } window#waybar.solo { background-color: #FFFFFF; } */
window#waybar.termite { background-color: #3F3F3F; }
window#waybar.chromium { background-color: #000000; border: none; }
button { /* Use box-shadow instead of border so the text isn't offset / box-shadow: inset 0 -3px transparent; / Avoid rounded borders under each button name */ border: none; border-radius: 0; }
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */ button:hover { background: inherit; box-shadow: inset 0 -3px #ffffff; }
/* you can set a style on hover for any module like this */ #pulseaudio:hover { background-color: #a37800; }
#workspaces button { padding: 0 0.4em; background-color: transparent; color: #ffffff; border: none; border-radius: 4px; }
#workspaces button:hover { background: rgba(0, 0, 0, 0.2); }
#workspaces button.focused { background-color: #64727D; box-shadow: inset 0 -3px #ffffff; }
#workspaces button.urgent { background-color: #eb4d4b; }
#mode { background-color: #64727D; box-shadow: inset 0 -3px #ffffff; }
#clock, #network, #pulseaudio, #wireplumber, #tray, #mode { padding: 0 10px; margin: 6px 4px; color: #333333; }
#window, #workspaces { margin: 0 4px; }
/* If workspaces is the leftmost module, omit left margin */ .modules-left > widget:first-child > #workspaces { margin-left: 0; }
/* If workspaces is the rightmost module, omit right margin */ .modules-right > widget:last-child > #workspaces { margin-right: 0; }
#clock { background-color: #64727D; } @keyframes blink { to { background-color: #ffffff; color: #000000; } }
label:focus { background-color: #000000; } #network { background-color: #2980b9; }
#network.disconnected { background-color: #f53c3c; }
#pulseaudio { background-color: #f1c40f; color: #000000; }
#pulseaudio.muted { background-color: #90b1b1; color: #2a5c45; }
#wireplumber { background-color: #fff0f5; color: #000000; }
#wireplumber.muted { background-color: #f53c3c; }
#tray { background-color: #2980b9; }
#tray > .passive { -gtk-icon-effect: dim; }
#tray > .needs-attention { -gtk-icon-effect: highlight; background-color: #eb4d4b; }
rewrite this waybar style.css to have beautiful gruvbox material theme, and remove unneccsary stuff.
- Assistant
Here's the updated
style.cssfile rewritten to follow the Gruvbox Material theme aesthetics while maintaining essential styling for a clean and cohesive look (unnecessary styles removed):* { border: none; border-radius: 4px; font-family: "Source Code Pro Nerd Font", Roboto, Helvetica, Arial, sans-serif; font-size: 15px; min-height: 0; } window#waybar { background-color: #282828; /* Dark Gruvbox background */ border-bottom: 2px solid #3c3836; /* Subtle border */ color: #ebdbb2; /* Light Gruvbox foreground */ transition-property: background-color; transition-duration: 0.5s; border-radius: 4px; } window#waybar.hidden { opacity: 0.2; /* Faded effect when hidden */ } button { /* No border, Gruvbox hover effect handled below */ box-shadow: inset 0 -3px transparent; border: none; border-radius: 0; } button:hover { background: inherit; box-shadow: inset 0 -3px #fabd2f; /* Yellow highlight for buttons */ } #workspaces button { padding: 0 0.4em; background-color: transparent; color: #ebdbb2; /* Light Gruvbox text */ border: none; border-radius: 4px; } #workspaces button:hover { background: #504945; /* Slightly lighter background on hover */ } #workspaces button.focused { background-color: #458588; /* Gruvbox blue for focused workspace */ box-shadow: inset 0 -3px #fabd2f; /* Yellow highlight */ } #workspaces button.urgent { background-color: #cc241d; /* Gruvbox red for urgent workspaces */ color: #fbf1c7; /* Light Gruvbox accent text */ } #mode { background-color: #458588; /* Gruvbox blue */ box-shadow: inset 0 -3px #fabd2f; /* Yellow underline */ color: #ebdbb2; } /* Style central modules like clock */ #clock, #network, #pulseaudio, #tray, #mode { padding: 0 10px; margin: 6px 4px; color: #ebdbb2; /* Light Gruvbox text */ } #window, #workspaces { margin: 0 4px; } /* Remove margin for leftmost workspaces module */ .modules-left > widget:first-child > #workspaces { margin-left: 0; } /* Remove margin for rightmost workspaces module */ .modules-right > widget:last-child > #workspaces { margin-right: 0; } /* Clock styling */ #clock { background-color: #458588; /* Gruvbox blue */ color: #ebdbb2; } @keyframes blink { to { background-color: #fbf1c7; /* Gruvbox light background */ color: #282828; /* Dark Gruvbox text */ } } /* Network block styling */ #network { background-color: #d79921; /* Gruvbox yellow */ color: #282828; /* Dark Gruvbox foreground */ } #network.disconnected { background-color: #cc241d; /* Gruvbox red */ color: #ebdbb2; /* Light Gruvbox text */ } /* PulseAudio block styling */ #pulseaudio { background-color: #b16286; /* Gruvbox purple */ color: #000000; /* Black text for contrast */ } #pulseaudio.muted { background-color: #665c54; /* Muted Gruvbox neutral */ color: #ebdbb2; /* Light Gruvbox text */ } /* Tray styling */ #tray { background-color: #3c3836; /* Gruvbox dark neutral background */ color: #ebdbb2; /* Light Gruvbox text */ } #tray > .needs-attention { background-color: #cc241d; /* Gruvbox red for attention */ color: #fbf1c7; /* Light Gruvbox accent text */ }
Key Changes
-
Gruvbox Colors Used:
- Background:
#282828(dark neutral) - Foreground/Text:
#ebdbb2(light Gruvbox text) - Accent Colors:
- Yellow:
#fabd2f(for highlights and hover states) - Blue:
#458588(for focused elements) - Red:
#cc241d(urgent/attention states) - Purple:
#b16286(Pulseaudio block) - Neutral Hue:
#3c3836,#504945,#665c54(subtle background transitions)
- Yellow:
- Background:
-
Removed Unnecessary Styles:
- Styles for specific applications such as
termiteandchromium. - Unused modules like
wireplumberthat aren’t standard in most Waybar setups. emptyandsolostates since they weren't being used in the example.
- Styles for specific applications such as
-
Clean Gruvbox Material Aesthetic: The theme now fully reflects the cozy, minimalist Gruvbox Material palette.
Let me know if you'd like any additional tweaks or further modules styled! 😊
-