From 64c6ca1261d5487a6ebae4ba6ca9230589362050 Mon Sep 17 00:00:00 2001 From: Urs Rudolph Date: Sat, 29 Nov 2025 22:55:00 +0100 Subject: [PATCH] Added Waybar design files --- waybar/.config/waybar/config.jsonc | 40 +++++++++ waybar/.config/waybar/mocha.css | 26 ++++++ waybar/.config/waybar/style.css | 127 +++++++++++++++++++++++++++++ 3 files changed, 193 insertions(+) create mode 100644 waybar/.config/waybar/config.jsonc create mode 100644 waybar/.config/waybar/mocha.css create mode 100644 waybar/.config/waybar/style.css diff --git a/waybar/.config/waybar/config.jsonc b/waybar/.config/waybar/config.jsonc new file mode 100644 index 0000000..911c2c7 --- /dev/null +++ b/waybar/.config/waybar/config.jsonc @@ -0,0 +1,40 @@ +{ + "position": "top", + "modules-left": ["hyprland/workspaces"], + "modules-center": ["hyprland/window"], + "modules-right": ["network", "pulseaudio", "battery", "clock"], + "clock": { + "format": "{:%a %d %H:%M}", + "tooltip-format": "{:%Y %B}\n{calendar}" + }, + "battery": { + "states": { + "warning": 30, + "critical": 15 + }, + "format": "{icon} {capacity}%", + "format-warning": "{icon} {capacity}%", + "format-critical": "{icon} {capacity}%", + "format-charging": "{capacity}%", + "format-plugged": "{capacity}%", + "format-alt": "{icon} {time}", + "format-full": "{capacity}%", + "format-icons": ["", "", "", "", ""], + "tooltip-format": "{time}" + }, + "network": { + "format-wifi": "{essid}", + "format-ethernet": "󰤭 Disconnected", + "format-linked": "{ifname} (No IP) ", + "format-disconnected": "Disconnected", + "tooltip-format-wifi": "Signal Strenght: {signalStrength}%" + }, + "pulseaudio": { + "format": "{icon} {volume}%", + "format-muted": "", + "format-icons": { + "default": ["", "", " "] + }, + "on-click": "pavucontrol" + } +} diff --git a/waybar/.config/waybar/mocha.css b/waybar/.config/waybar/mocha.css new file mode 100644 index 0000000..0eb6a82 --- /dev/null +++ b/waybar/.config/waybar/mocha.css @@ -0,0 +1,26 @@ +@define-color rosewater #f5e0dc; +@define-color flamingo #f2cdcd; +@define-color pink #f5c2e7; +@define-color mauve #cba6f7; +@define-color red #f38ba8; +@define-color maroon #eba0ac; +@define-color peach #fab387; +@define-color yellow #f9e2af; +@define-color green #a6e3a1; +@define-color teal #94e2d5; +@define-color sky #89dceb; +@define-color sapphire #74c7ec; +@define-color blue #89b4fa; +@define-color lavender #b4befe; +@define-color text #cdd6f4; +@define-color subtext1 #bac2de; +@define-color subtext0 #a6adc8; +@define-color overlay2 #9399b2; +@define-color overlay1 #7f849c; +@define-color overlay0 #6c7086; +@define-color surface2 #585b70; +@define-color surface1 #45475a; +@define-color surface0 #313244; +@define-color base #1e1e2e; +@define-color mantle #181825; +@define-color crust #11111b; diff --git a/waybar/.config/waybar/style.css b/waybar/.config/waybar/style.css new file mode 100644 index 0000000..74d54a8 --- /dev/null +++ b/waybar/.config/waybar/style.css @@ -0,0 +1,127 @@ +@import "mocha.css"; + +* { + font-family: "MesloLGS Nerd Font Mono Bold"; + font-size: 16px; + min-height: 0; + font-weight: bold; +} + +window#waybar { + background: transparent; + background-color: @crust; + color: @overlay0; + transition-property: background-color; + transition-duration: 0.1s; + border-bottom: 1px solid @overlay1; +} + +#window { +margin: 8px; +padding-left: 8; +padding-right: 8; +} + +button { + box-shadow: inset 0 -3px transparent; + border: none; + border-radius: 0; +} + +button:hover { + background: inherit; + color: @mauve; + border-top: 2px solid @mauve; +} + +#workspaces button { +padding: 0 4px; +} + +#workspaces button.focused { +background-color: rgba(0, 0, 0, 0.3); +color: @rosewater; +border-top: 2px solid @rosewater; +} + +#workspaces button.active { +background-color: rgba(0, 0, 0, 0.3); +color: @mauve; +border-top: 2px solid @mauve; +} + +#workspaces button.urgent { +background-color: #eb4d4b; +} + +#pulseaudio, +#clock, +#battery, +#cpu, +#memory, +#disk, +#temperature, +#backlight, +#wireplumber, +#tray, +#network, +#mode, +#scratchpad { +margin-top: 2px; +margin-bottom: 2px; +margin-left: 4px; +margin-right: 4px; +padding-left: 4px; +padding-right: 4px; +} + +#clock { +color: @maroon; +border-bottom: 2px solid @maroon; +} + +#clock.date { +color: @mauve; +border-bottom: 2px solid @mauve; +} + +#pulseaudio { +color: @blue; +border-bottom: 2px solid @blue; +} + +#network { +color: @yellow; +border-bottom: 2px solid @yellow; +} + +#idle_inhibitor { +margin-right: 12px; +color: #7cb342; +} + +#idle_inhibitor.activated { +color: @red; +} + +#battery { +color: @green; +border-bottom: 2px solid @green; +} + +/* 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; +} + +#custom-vpn { +color: @lavender; +border-radius: 15px; +padding-left: 6px; +padding-right: 6px; +}