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) "height": 0, // Waybar height (to be removed for auto height)
"width": 0, // Waybar width (0 == auto) "width": 0, // Waybar width (0 == auto)
"spacing": 0, // Gaps between modules "spacing": 0, // Gaps between modules
// "output": ["HDMI-A-1", "DP-2", "eDP-1"],
// Choose the order of the modules
"modules-left": [ "modules-left": [
"hyprland/workspaces" "hyprland/workspaces"
// "hyprland/window",
], ],
"modules-center" : [ "modules-center" : [
"hyprland/window" "hyprland/window"
@ -98,13 +95,6 @@
"interval": 1, "interval": 1,
"on-click": "$TERMINAL -e htop", "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": { "battery": {
"states": { "states": {
"good": 90, "good": 90,
@ -126,7 +116,6 @@
] ]
}, },
"backlight": { "backlight": {
// "device": "intel_backlight",
"format": "{icon} {percent}%", "format": "{icon} {percent}%",
"format-icons": ["󰃞", "󰃟", "󰃠"], "format-icons": ["󰃞", "󰃟", "󰃠"],
"on-scroll-up": "brightnessctl set 1%+", "on-scroll-up": "brightnessctl set 1%+",

View File

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

View File

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