From 1c6449d484e346c3f87fe3e3a765e0039bcbf71a Mon Sep 17 00:00:00 2001 From: krolxon Date: Mon, 20 Oct 2025 14:29:36 +0530 Subject: [PATCH] waybar: minimize css, remove unneeded stuff --- .config/waybar/config.jsonc | 11 ------- .config/waybar/style.css | 62 +++++-------------------------------- .local/bin/setwall | 4 +-- 3 files changed, 10 insertions(+), 67 deletions(-) diff --git a/.config/waybar/config.jsonc b/.config/waybar/config.jsonc index e2e710b..2c60193 100644 --- a/.config/waybar/config.jsonc +++ b/.config/waybar/config.jsonc @@ -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%+", diff --git a/.config/waybar/style.css b/.config/waybar/style.css index 71752b5..79355fe 100644 --- a/.config/waybar/style.css +++ b/.config/waybar/style.css @@ -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; diff --git a/.local/bin/setwall b/.local/bin/setwall index a7d7a1f..178b233 100755 --- a/.local/bin/setwall +++ b/.local/bin/setwall @@ -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