zaphyra's git: nixfiles

zaphyra's nixfiles

commit 6e6d77d9f6792086d366bfb06050610596785ff9
parent 3ee4e58933e499e4e28660d5c9b983b1cc7c2a64
Author: Katja Ramona Sophie Kwast (zaphyra) <git@zaphyra.eu>
Date: Sat, 26 Jul 2025 21:20:16 +0200

config/home/zaphyra/services/waybar: decrease height from 32 to 26px, replace some icons, clean up css
1 file changed, 39 insertions(+), 41 deletions(-)
M
config/home/zaphyra/services/waybar.nix
|
80
+++++++++++++++++++++++++++++++++++++++----------------------------------------
diff --git a/config/home/zaphyra/services/waybar.nix b/config/home/zaphyra/services/waybar.nix
@@ -28,7 +28,7 @@
         layer = "top";
         position = "top";
 
-        height = 32;
+        height = 26;
 
         modules-left = [
           "niri/workspaces"

@@ -114,7 +114,7 @@
               ]
             );
 
-            format-ethernet = " ";
+            format-ethernet = "󰈀 ";
             format-wifi = "  {essid} ({signalStrength}%)";
             format-linked = " ";
             format-disconnected = " ";

@@ -126,6 +126,7 @@
 
           on-click = lib.concatStringsSep " " [
             config.home.sessionVariables.TERMINAL
+            "--confirm-close-surface=false"
             "-e"
             (lib.getExe pkgs.ncpamixer)
           ];

@@ -180,44 +181,43 @@
 
     style = ''
       @keyframes blink {
-          to {
-              background: transparent;
-              color: #fff;
-          }
+        to {
+          background: transparent;
+          color: #fff;
+        }
       }
 
       * {
-          font-family: "Adwaita Sans", "Symbols Nerd Font";
-          font-size: 14px;
-          border: none;
-          border-radius: 0;
-          min-height: 0;
-          transition: none;
-          box-shadow: none;
+        font-family: "Adwaita Sans", "Symbols Nerd Font";
+        font-size: 14px;
+        border: none;
+        border-radius: 0;
+        min-height: 0;
+        transition: none;
+        box-shadow: none;
       }
 
       window#waybar {
-          /* background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)); */
-          background: rgba(0, 0, 0, 0.5);
-          color: white;
-          border-bottom: 2px solid rgba(59, 135, 86, 0.5);
+        color: white;
+        background: rgba(0, 0, 0, 0.5);
+        border-bottom: 2px solid rgba(59, 135, 86, 0.5);
       }
 
       #workspaces {
-          background: rgba(255, 255, 255, 0.06);
+        background: rgba(255, 255, 255, 0.06);
       }
       #workspaces button.focused {
-          background: rgba(255, 255, 255, 0.1);
-          border-bottom: 2px solid rgb(74, 169, 108);
+        background: rgba(255, 255, 255, 0.1);
+        border-bottom: 2px solid rgb(74, 169, 108);
       }
       #workspaces button:hover {
-          background: rgba(255, 255, 255, 0.06);
+        background: rgba(255, 255, 255, 0.06);
       }
 
       #clock {
-          font-size: 16px;
-          font-family: 'Noto Mono', monospace;
-          padding: 0px 5px;
+        font-size: 14px;
+        font-family: 'Noto Mono', monospace;
+        padding: 0px 5px;
       }
 
       #tray {

@@ -225,38 +225,36 @@
       }
 
       #network, #wireplumber, #battery, #language {
-          background: rgba(255, 255, 255, 0.06);
-          padding: 0px 15px;
+        background: rgba(255, 255, 255, 0.06);
+        padding: 0px 15px;
       }
 
       #battery {
-          color: #a3be8c;
+        color: #a3be8c;
       }
 
       #battery.charging {
-          color: #a3be8c;
+        color: #a3be8c;
       }
 
       #battery.critical:not(.charging) {
-          background: rgba(245, 60, 60, 0.4);
-          color: #fff;
+        background: rgba(245, 60, 60, 0.4);
+        color: #fff;
 
-          border-radius: 15px;
-          margin: 6px;
+        border-radius: 15px;
+        margin: 6px;
 
-          animation-name: blink;
-          animation-duration: 1s;
-          animation-timing-function: linear;
-          animation-iteration-count: infinite;
-          animation-direction: alternate;
+        animation-name: blink;
+        animation-duration: 1s;
+        animation-timing-function: linear;
+        animation-iteration-count: infinite;
+        animation-direction: alternate;
       }
 
-
       #custom-arrow1, #custom-arrow2 {
-      	font-size: 20pt;
-      	color: rgba(255, 255, 255, 0.06);
+        font-size: 20pt;
+        color: rgba(255, 255, 255, 0.06);
       }
-
     '';
   };