]> Freerunner's - dotfiles.git/commitdiff
waybar: add network status
authorAndre Ramnitz <tux.rising@gmail.com>
Tue, 5 Nov 2024 05:55:54 +0000 (06:55 +0100)
committerAndre Ramnitz <tux.rising@gmail.com>
Tue, 5 Nov 2024 05:55:54 +0000 (06:55 +0100)
dot-config/waybar/config.jsonc
dot-config/waybar/style.css

index b315b29dc9e5479eef1d6730db3ba5899f7ef294..64b1a9395779f9e4da89710973333c854a1a9da9 100644 (file)
@@ -20,7 +20,8 @@
     "memory",
     "group/temps",
     "group/gammarelay",
-    "wireplumber",
+               "network",
+               "wireplumber",
     "hyprland/language",
     "custom/voidspacer",
     "tray",
     "format-en": "en",
     "format-de": "de"
   },
+  "niri/workspaces": {
+       "format": "{icon}",
+       "format-icons": {
+               // Named workspaces
+               // (you need to configure them in niri)
+               "1": "",
+               "2": "",
+               "3": "<b></b>",
+
+               // Icons by state
+               "active": "",
+               "default": ""
+       },
+       "niri/window": {
+       "format": "{}",
+       "rewrite": {
+               "(.*) - Mozilla Firefox": "🌎 $1",
+               "(.*) - zsh": "> [$1]"
+         }
+  },
+  "niri/language": {
+    //"format": " <span color='#efefef'>󰌌</span> {} ",
+    "format": " 󰌌 {} ",
+    "format-en": "en",
+    "format-de": "de"
+  },
+},
   "keyboard-state": {
     "numlock": true,
     "capslock": true,
   },
   "cpu": {
     //"format": "<span color='#efefef'>{usage:2}%</span> ",
-    "format": "{usage:2}% ",
+    "format": "{usage:2}%",
     "on-click": "footclient -a popup btop -p 3",
     "interval": 1
   },
   "memory": {
     //"format": "<span color='#efefef'>{percentage:2}%</span> 󰳿",
-    "format": "{percentage:2}% 󰳿",
+    "format": "{percentage:2}%",
     "on-click": "footclient -a popup btop -p 4",
     "interval": 1
   },
   "temperature#water": {
     "hwmon-path": "/dev/sensors/aquastream/temp2_input",
     "critical-threshold": 42,
-    //"format": "<span color='#efefef'>{temperatureC}°C</span> 󰞍",
-    "format": "{temperatureC}°C 󰞍",
+    //"format": "<span color='#efefef'>{temperatureC}°C</span> ",
+    "format": " {temperatureC}°C",
     "on-click-right": "foot -a popup /usr/local/bin/fan2go-tui"
   },
   "temperature#cpu": {
     "hwmon-path": "/dev/sensors/k10temp/temp1_input",
     "critical-threshold": 95,
     //"format": "<span color='#efefef'>{temperatureC}°C</span> "
-    "format": "{temperatureC}°C "
+    "format": " {temperatureC}°C"
   },
   "temperature#board": {
     "hwmon-path": "/dev/sensors/nct6799/temp1_input",
     "critical-threshold": 85,
     //"format": "<span color='#efefef'>{temperatureC}°C</span> 󰇅"
-    "format": "{temperatureC}°C 󰇅"
+    "format": "󰇅 {temperatureC}°C"
   },
   "temperature#gpu": {
     "hwmon-path": "/dev/sensors/gpudedicated/temp1_input",
     "critical-threshold": 110,
     //"format": "<span color='#efefef'>{temperatureC}°C</span> 󰍹"
-    "format": "{temperatureC}°C 󰍹"
+    "format": "󰍹 {temperatureC}°C"
   },
   "network": {
-    "interface": "wlan0*",
-    "format-wifi": " {essid} ({signalStrength}%)",
-    "format-ethernet": "{ipaddr}/{cidr} ",
-    "tooltip-format": "{ifname} via {gwaddr} ",
-    "format-linked": "{ifname} (No IP) ",
+    "format-wifi": "  ",
+    "format-ethernet": "  ",
+    "tooltip-format-ethernet": " {ifname} via {gwaddr}",
+    "tooltip-format-wifi": " {essid} ({signalStrength}%)",
+    "format-linked": " {ifname} (No IP)",
     "format-disconnected": "⚠ ",
     "format-alt": "{ifname}: {ipaddr}/{cidr}"
   },
   "wireplumber": {
     "scroll-step": 5,
     //"format": "<span color='#efefef'>{volume}</span> {icon}",
-    "format": "{volume} {icon}",
+    "format": "{icon} {volume}",
     "format-bluetooth": "{icon} {volume}%",
     "format-bluetooth-muted": " {icon}",
     "format-muted": " ",
-    "format-source": "{volume} ",
+    "format-source": " {volume}",
     "format-source-muted": "",
     "format-icons": {
       "headphone": "",
   },
   "custom/gammarelay-temperature": {
     //"format": "<span color='#efefef'>{}</span> ",
-    "format": "{} ",
+    "format": " {}",
     "exec": "wl-gammarelay-rs watch {t}",
     "on-scroll-up": "busctl --user -- call rs.wl-gammarelay / rs.wl.gammarelay UpdateTemperature n +100",
     "on-scroll-down": "busctl --user -- call rs.wl-gammarelay / rs.wl.gammarelay UpdateTemperature n -100",
   },
   "custom/gammarelay-brightness": {
     //"format": "<span color='#efefef'>{}%</span> ",
-    "format": "{}% ",
+    "format": " {}%",
     "exec": "wl-gammarelay-rs watch {bp}",
     "on-scroll-up": "busctl --user -- call rs.wl-gammarelay / rs.wl.gammarelay UpdateBrightness d +0.02",
     "on-scroll-down": "busctl --user -- call rs.wl-gammarelay / rs.wl.gammarelay UpdateBrightness d -0.02",
   },
   "custom/gammarelay-gamma": {
     //"format": "<span color='#efefef'>{}</span> 𝛄",
-    "format": "{} 𝛄",
+    "format": "𝛄 {}",
     "exec": "wl-gammarelay-rs watch {g}",
     "on-scroll-up": "busctl --user -- call rs.wl-gammarelay / rs.wl.gammarelay UpdateGamma d +0.02",
     "on-scroll-down": "busctl --user -- call rs.wl-gammarelay / rs.wl.gammarelay UpdateGamma d -0.02",
index 15f9d0803fe91c745c3f763283b8d8b783e2c393..a2b2d26797a512eeff3fb8766bd805d7bc3f7cc4 100644 (file)
@@ -184,6 +184,17 @@ window#waybar {
     margin-bottom: 2px;
 }
 
+#network {
+  padding-left: 4px;
+  padding-right: 8px;
+  color: @base0E;
+  background-color: alpha(@base0E, 0.1);
+  border: none;
+    border-radius: 8px;
+    margin-top: 2px;
+    margin-bottom: 2px;
+}
+
 #language {
   padding-left: 4px;
   padding-right: 8px;