waybar: minimize css, remove unneeded stuff

This commit is contained in:
krolxon 2025-10-20 14:29:36 +05:30
parent 7e36aa98e8
commit 1c6449d484
3 changed files with 10 additions and 67 deletions

View File

@ -4,11 +4,8 @@
"height": 0, // Waybar height (to be removed for auto height)
"width": 0, // Waybar width (0 == auto)
"spacing": 0, // Gaps between modules
// "output": ["HDMI-A-1", "DP-2", "eDP-1"],
// Choose the order of the modules
"modules-left": [
"hyprland/workspaces"
// "hyprland/window",
],
"modules-center" : [
"hyprland/window"
@ -98,13 +95,6 @@
"interval": 1,
"on-click": "$TERMINAL -e htop",
},
"network": {
"interval": 5,
"format-wifi": " {essid} ({signalStrength}%)", // Icon: wifi
"format-ethernet": " {ifname}: {ipaddr}/{cidr}", // Icon: ethernet
"format-disconnected": "⚠ Disconnected",
"tooltip-format": "{ifname}: {ipaddr}"
},
"battery": {
"states": {
"good": 90,
@ -126,7 +116,6 @@
]
},
"backlight": {
// "device": "intel_backlight",
"format": "{icon} {percent}%",
"format-icons": ["󰃞", "󰃟", "󰃠"],
"on-scroll-up": "brightnessctl set 1%+",

View File

@ -4,7 +4,6 @@
font-family: "Fira Code", "FontAwesome";
font-weight: bold;
min-height: 0;
/* set font-size to 100% if font scaling is set to 1.00 using nwg-look */
font-size: 96%;
font-feature-settings: '"zero", "ss01", "ss02", "ss03", "ss04", "ss05", "cv31"';
/* padding: 0.03125rem; */
@ -13,11 +12,7 @@ font-feature-settings: '"zero", "ss01", "ss02", "ss03", "ss04", "ss05", "cv31"';
window#waybar {
transition-property: background-color;
transition-duration: 0.5s;
/* background: transparent; */
background: @background;
/*border: 2px solid @overlay0;*/
/*background: @theme_base_color;*/
/* border-radius: 10px; */
}
window#waybar.hidden {
@ -34,19 +29,14 @@ window#waybar.hidden {
/**************/
#workspaces {
/* border-radius: 8px; */
/* padding: 0 3px 0 8px; */
/* margin: 5px 5px 5px 0; */
transition: all 0.2s ease;
}
/* non-empty workspaces */
#workspaces button {
background-color: @background;
border: none;
border-radius: 0;
color: @foreground;
transition: all 0.2s ease;
text-shadow: none;
@ -59,15 +49,6 @@ window#waybar.hidden {
box-shadow: inset 0 -1px @cursor;
}
/* the first and last buttons should be rounded */
#workspaces button:first-child {
/* border-top-left-radius: 8px; */
/* border-bottom-left-radius: 8px; */
}
#workspaces button:last-child {
/* border-top-right-radius: 8px; */
/* border-bottom-right-radius: 8px; */
}
/* empty persistent workspaces */
#workspaces button.empty {
@ -94,10 +75,8 @@ window#waybar.hidden {
/* active or visible workspaces */
#workspaces button.active,
#workspaces button.visible {
/* background-color: #4c566a; */
color: @color0;
background-color: @color14;
/* box-shadow: inset 0 -4px #eceff4; */
}
#workspaces button.urgent {
@ -120,7 +99,6 @@ window#waybar.hidden {
#memory,
#disk,
#temperature,
#network,
#pulseaudio,
#wireplumber,
#mpris,
@ -151,28 +129,28 @@ window#waybar.hidden {
#clock {
color: @foreground;
box-shadow: inset 0 -1px @cursor;
box-shadow: inset 0 -1px @color14;
}
#custom-date {
color: @foreground;
box-shadow: inset 0 -1px @cursor;
box-shadow: inset 0 -1px @color14;
}
#custom-gpumode{
color: @foreground;
box-shadow: inset 0 -1px @cursor;
box-shadow: inset 0 -1px @color14;
}
#battery {
color: @foreground;
box-shadow: inset 0 -1px @cursor;
box-shadow: inset 0 -1px @color14;
}
#backlight {
color: @foreground;
box-shadow: inset 0 -1px @cursor;
box-shadow: inset 0 -1px @color14;
}
@keyframes blink {
@ -198,44 +176,20 @@ label:focus {
#cpu {
color: @foreground;
box-shadow: inset 0 -1px @cursor;
box-shadow: inset 0 -1px @color14;
}
#memory {
color: @foreground;
box-shadow: inset 0 -1px @cursor;
}
/* #disk {
background-color: #964B00;
} */
#network {
color: @color13;
}
#network.disconnected {
color: @color13;
}
#network.linked {
color: @color10;
box-shadow: inset 0 -1px @color14;
}
#pulseaudio {
color: @foreground;
box-shadow: inset 0 -1px @cursor;
box-shadow: inset 0 -1px @color14;
}
#temperature {
color: @foreground;
}
#temperature.critical {
color: @color2;
}
#tray {
color: @color15;
box-shadow: inset 0 -1px @subtext0;

View File

@ -38,11 +38,11 @@ if ! pgrep -x hyprpaper >/dev/null; then
preload = $NEW_WALL
wallpaper = ,$NEW_WALL
EOF
wal -i $NEW_WALL
hyprpaper &
wal -i $NEW_WALL -n
else
# Hyprpaper is running → change it live
wal -i $NEW_WALL
hyprctl hyprpaper preload "$NEW_WALL"
hyprctl hyprpaper wallpaper ",$NEW_WALL"
wal -i $NEW_WALL -n
fi