Skip to content

Commit 5a0e681

Browse files
committed
style: improve waybar styling - co-author: claude
1 parent a6103f4 commit 5a0e681

File tree

2 files changed

+38
-53
lines changed

2 files changed

+38
-53
lines changed

.config/waybar/config.jsonc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,19 +140,19 @@
140140
// },
141141
"cpu": {
142142
"format": "{usage: >3}%",
143-
"on-click": "alacritty -e btop",
143+
"on-click": "alacritty --option font.size=8 -e btop",
144144
"tooltip-format": "CPU Usage: {usage}%\\nLoad: {load}\\nClick to open btop"
145145
},
146146
"memory": {
147147
"format": "{: >3}%",
148-
"on-click": "alacritty -e btop",
148+
"on-click": "alacritty --option font.size=8 -e btop",
149149
"tooltip-format": "Memory Usage: {percentage}%\\nUsed: {used}GiB / {total}GiB\\nAvailable: {avail}GiB\\nClick to open btop"
150150
},
151151
"temperature": {
152152
// "thermal-zone": 2,
153153
"hwmon-path": "/sys/class/hwmon/hwmon1/temp1_input",
154154
"critical-threshold": 80,
155-
"on-click": "alacritty -e btop",
155+
"on-click": "alacritty --option font.size=8 -e btop",
156156
// "format-critical": "{temperatureC}°C ",
157157
"format": " {temperatureC}°C"
158158
},

.config/waybar/style.css

Lines changed: 35 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -320,15 +320,8 @@ window#waybar {
320320
* Hover Effects - Organized by interaction type
321321
* -------------------------------------------------------------------------- */
322322

323-
/* Passive information elements - subtle hover */
323+
/* Interactive information elements - subtle hover */
324324
.passive-hover:hover,
325-
#clock:hover,
326-
#clock.date:hover,
327-
#clock.clock:hover,
328-
#battery:hover,
329-
#cpu:hover,
330-
#memory:hover,
331-
#temperature:hover,
332325
#network:hover,
333326
#pulseaudio:hover,
334327
#backlight:hover,
@@ -341,14 +334,7 @@ window#waybar {
341334
alpha(@surface0, 0.92) 100%);
342335
}
343336

344-
/* Clock specific hover - no margin change to prevent movement */
345-
#clock.date:hover {
346-
margin: 6px 0px 6px 4px;
347-
}
348-
349-
#clock.clock:hover {
350-
margin: 6px 4px 6px 0px;
351-
}
337+
/* Clock specific hover - removed for static modules */
352338

353339
/* Interactive elements - more pronounced hover */
354340
.interactive-hover:hover,
@@ -493,24 +479,44 @@ window#waybar {
493479
border-left: none;
494480
}
495481

496-
/* Connectivity group: Network + Audio + Bluetooth (Clickable - bigger) */
497-
/* Common properties for connectivity group */
482+
/* Bluetooth - standalone module */
483+
#bluetooth {
484+
background: linear-gradient(135deg,
485+
alpha(@surface0, 0.85) 0%,
486+
alpha(@surface1, 0.9) 100%);
487+
border-radius: 6px;
488+
margin: 6px 4px;
489+
padding: 4px 8px;
490+
box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
491+
border: 1px solid alpha(@overlay0, 0.25);
492+
color: @sapphire;
493+
text-shadow: 0 0 10px alpha(@sapphire, 0.8);
494+
transition: all 0.3s ease;
495+
}
496+
497+
/* Connectivity & Control group: Network + Audio + Backlight (Clickable - bigger) */
498+
/* Common properties for connectivity & control group */
498499
#network,
499500
#pulseaudio,
500-
#bluetooth {
501+
#backlight {
501502
background: linear-gradient(135deg,
502503
alpha(@surface0, 0.85) 0%,
503504
alpha(@surface1, 0.9) 100%);
504505
padding: 4px 8px;
505506
box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
506507
}
507508

508-
/* Individual positioning and borders */
509+
/* Individual positioning and borders for connectivity-control group */
509510
#network {
510511
border-radius: 6px 0px 0px 6px;
511512
margin: 6px 0px 6px 4px;
512513
border: 1px solid alpha(@overlay0, 0.25);
513514
border-right: none;
515+
color: @green;
516+
background: linear-gradient(135deg, alpha(@green, 0.2), alpha(@teal, 0.2));
517+
border: 1px solid alpha(@green, 0.3);
518+
text-shadow: 0 0 10px alpha(@green, 0.8);
519+
transition: all 0.3s ease;
514520
}
515521

516522
#pulseaudio {
@@ -520,29 +526,22 @@ window#waybar {
520526
border-bottom: 1px solid alpha(@overlay0, 0.25);
521527
border-left: none;
522528
border-right: none;
529+
color: @flamingo;
530+
background: linear-gradient(135deg, alpha(@flamingo, 0.2), alpha(@pink, 0.2));
531+
border-top: 1px solid alpha(@flamingo, 0.3);
532+
border-bottom: 1px solid alpha(@flamingo, 0.3);
533+
text-shadow: 0 0 10px alpha(@flamingo, 0.8);
534+
transition: all 0.3s ease;
523535
}
524536

525-
#bluetooth {
537+
#backlight {
526538
border-radius: 0 6px 6px 0;
527539
margin: 6px 4px 6px 0px;
528540
border: 1px solid alpha(@overlay0, 0.25);
529541
border-left: none;
530-
color: @sapphire;
531-
text-shadow: 0 0 10px alpha(@sapphire, 0.8);
532-
transition: all 0.3s ease;
533-
}
534-
535-
/* Backlight - standalone module */
536-
#backlight {
537-
background: linear-gradient(135deg,
538-
alpha(@surface0, 0.85) 0%,
539-
alpha(@surface1, 0.9) 100%);
540-
border-radius: 6px;
541-
margin: 6px 4px;
542-
padding: 4px 8px;
543-
box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
544-
border: 1px solid alpha(@overlay0, 0.25);
545542
color: @yellow;
543+
background: linear-gradient(135deg, alpha(@yellow, 0.2), alpha(@peach, 0.2));
544+
border: 1px solid alpha(@yellow, 0.3);
546545
text-shadow: 0 0 10px alpha(@yellow, 0.8);
547546
transition: all 0.3s ease;
548547
}
@@ -760,13 +759,6 @@ window#waybar {
760759
}
761760

762761
/* Network & Audio */
763-
#network {
764-
color: @green;
765-
background: linear-gradient(135deg, alpha(@green, 0.2), alpha(@teal, 0.2));
766-
border: 1px solid alpha(@green, 0.3);
767-
text-shadow: 0 0 10px alpha(@green, 0.8);
768-
transition: all 0.3s ease;
769-
}
770762

771763
#network.disabled,
772764
#network.disconnected {
@@ -776,13 +768,6 @@ window#waybar {
776768
animation: blink 1s ease-in-out infinite;
777769
}
778770

779-
#pulseaudio {
780-
color: @flamingo;
781-
background: linear-gradient(135deg, alpha(@flamingo, 0.2), alpha(@pink, 0.2));
782-
border: 1px solid alpha(@flamingo, 0.3);
783-
text-shadow: 0 0 10px alpha(@flamingo, 0.8);
784-
transition: all 0.3s ease;
785-
}
786771

787772
#pulseaudio.muted {
788773
color: @overlay0;

0 commit comments

Comments
 (0)