Krolyxon
Commit 1c6449d

Branches

Refs →

aurora1c6449d

waybar: minimize css, remove unneeded stuff

Author
krolxon
Date
2025-10-20 14:29 +0530
Parent
7e36aa9
Commit
1c6449d484e346c3f87fe3e3a765e0039bcbf71a

+10 −67

3 files changed

  1. M .config/waybar/config.jsonc +0 −11
  2. M .config/waybar/style.css +8 −54
  3. M .local/bin/setwall +2 −2
M .config/waybar/config.jsonc View
@@ -4,11 +4,8 @@
44 "height": 0, // Waybar height (to be removed for auto height)
55 "width": 0, // Waybar width (0 == auto)
66 "spacing": 0, // Gaps between modules
7− // "output": ["HDMI-A-1", "DP-2", "eDP-1"],
8− // Choose the order of the modules
97 "modules-left": [
108 "hyprland/workspaces"
11− // "hyprland/window",
129 ],
1310 "modules-center" : [
1411 "hyprland/window"
@@ -98,13 +95,6 @@
9895 "interval": 1,
9996 "on-click": "$TERMINAL -e htop",
10097 },
101− "network": {
102− "interval": 5,
103− "format-wifi": " {essid} ({signalStrength}%)", // Icon: wifi
104− "format-ethernet": " {ifname}: {ipaddr}/{cidr}", // Icon: ethernet
105− "format-disconnected": "⚠ Disconnected",
106− "tooltip-format": "{ifname}: {ipaddr}"
107− },
10898 "battery": {
10999 "states": {
110100 "good": 90,
@@ -126,7 +116,6 @@
126116 ]
127117 },
128118 "backlight": {
129− // "device": "intel_backlight",
130119 "format": "{icon} {percent}%",
131120 "format-icons": ["󰃞", "󰃟", "󰃠"],
132121 "on-scroll-up": "brightnessctl set 1%+",
M .config/waybar/style.css View
@@ -4,7 +4,6 @@
44 font-family: "Fira Code", "FontAwesome";
55 font-weight: bold;
66 min-height: 0;
7−/* set font-size to 100% if font scaling is set to 1.00 using nwg-look */
87 font-size: 96%;
98 font-feature-settings: '"zero", "ss01", "ss02", "ss03", "ss04", "ss05", "cv31"';
109 /* padding: 0.03125rem; */
@@ -13,11 +12,7 @@ font-feature-settings: '"zero", "ss01", "ss02", "ss03", "ss04", "ss05", "cv31"';
1312 window#waybar {
1413 transition-property: background-color;
1514 transition-duration: 0.5s;
16− /* background: transparent; */
1715 background: @background;
18− /*border: 2px solid @overlay0;*/
19− /*background: @theme_base_color;*/
20− /* border-radius: 10px; */
2116 }
2217
2318 window#waybar.hidden {
@@ -34,19 +29,14 @@ window#waybar.hidden {
3429 /**************/
3530
3631 #workspaces {
37− /* border-radius: 8px; */
38− /* padding: 0 3px 0 8px; */
39− /* margin: 5px 5px 5px 0; */
4032 transition: all 0.2s ease;
4133 }
4234
4335 /* non-empty workspaces */
4436 #workspaces button {
4537 background-color: @background;
46−
4738 border: none;
4839 border-radius: 0;
49−
5040 color: @foreground;
5141 transition: all 0.2s ease;
5242 text-shadow: none;
@@ -59,15 +49,6 @@ window#waybar.hidden {
5949 box-shadow: inset 0 -1px @cursor;
6050 }
6151
62−/* the first and last buttons should be rounded */
63−#workspaces button:first-child {
64− /* border-top-left-radius: 8px; */
65− /* border-bottom-left-radius: 8px; */
66−}
67−#workspaces button:last-child {
68− /* border-top-right-radius: 8px; */
69− /* border-bottom-right-radius: 8px; */
70−}
7152
7253 /* empty persistent workspaces */
7354 #workspaces button.empty {
@@ -94,10 +75,8 @@ window#waybar.hidden {
9475 /* active or visible workspaces */
9576 #workspaces button.active,
9677 #workspaces button.visible {
97− /* background-color: #4c566a; */
9878 color: @color0;
9979 background-color: @color14;
100− /* box-shadow: inset 0 -4px #eceff4; */
10180 }
10281
10382 #workspaces button.urgent {
@@ -120,7 +99,6 @@ window#waybar.hidden {
12099 #memory,
121100 #disk,
122101 #temperature,
123−#network,
124102 #pulseaudio,
125103 #wireplumber,
126104 #mpris,
@@ -151,28 +129,28 @@ window#waybar.hidden {
151129
152130 #clock {
153131 color: @foreground;
154− box-shadow: inset 0 -1px @cursor;
132+ box-shadow: inset 0 -1px @color14;
155133 }
156134
157135 #custom-date {
158136 color: @foreground;
159− box-shadow: inset 0 -1px @cursor;
137+ box-shadow: inset 0 -1px @color14;
160138 }
161139
162140 #custom-gpumode{
163141 color: @foreground;
164− box-shadow: inset 0 -1px @cursor;
142+ box-shadow: inset 0 -1px @color14;
165143 }
166144
167145
168146 #battery {
169147 color: @foreground;
170− box-shadow: inset 0 -1px @cursor;
148+ box-shadow: inset 0 -1px @color14;
171149 }
172150
173151 #backlight {
174152 color: @foreground;
175− box-shadow: inset 0 -1px @cursor;
153+ box-shadow: inset 0 -1px @color14;
176154 }
177155
178156 @keyframes blink {
@@ -198,43 +176,19 @@ label:focus {
198176
199177 #cpu {
200178 color: @foreground;
201− box-shadow: inset 0 -1px @cursor;
179+ box-shadow: inset 0 -1px @color14;
202180 }
203181
204182 #memory {
205183 color: @foreground;
206− box-shadow: inset 0 -1px @cursor;
207−}
208−
209−/* #disk {
210− background-color: #964B00;
211−} */
212−
213−#network {
214− color: @color13;
215−}
216−
217−#network.disconnected {
218− color: @color13;
219−}
220−
221−#network.linked {
222− color: @color10;
184+ box-shadow: inset 0 -1px @color14;
223185 }
224186
225187 #pulseaudio {
226188 color: @foreground;
227− box-shadow: inset 0 -1px @cursor;
228−}
229−
230−
231−#temperature {
232− color: @foreground;
189+ box-shadow: inset 0 -1px @color14;
233190 }
234191
235−#temperature.critical {
236− color: @color2;
237−}
238192
239193 #tray {
240194 color: @color15;
M .local/bin/setwall View
@@ -38,11 +38,11 @@ if ! pgrep -x hyprpaper >/dev/null; then
3838 preload = $NEW_WALL
3939 wallpaper = ,$NEW_WALL
4040 EOF
41− wal -i $NEW_WALL
4241 hyprpaper &
42+ wal -i $NEW_WALL -n
4343 else
4444 # Hyprpaper is running → change it live
45− wal -i $NEW_WALL
4645 hyprctl hyprpaper preload "$NEW_WALL"
4746 hyprctl hyprpaper wallpaper ",$NEW_WALL"
47+ wal -i $NEW_WALL -n
4848 fi