summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-08-02 10:42:52 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-08-02 10:42:52 +0200
commit03d5f1e7cb38859477089b88737a40950ea28843 (patch)
treedcbe98397ee0573ef67864d693382b26be40aa2c
parentf5b7a1a7cd4052b37dfd576d5ca5864a2b969e09 (diff)
added wireguard module to waybar
-rw-r--r--config/hyprland/waybar/config.jsonc7
-rw-r--r--config/hyprland/waybar/schemes/base16.css10
2 files changed, 14 insertions, 3 deletions
diff --git a/config/hyprland/waybar/config.jsonc b/config/hyprland/waybar/config.jsonc
index 816a851..aadc6d3 100644
--- a/config/hyprland/waybar/config.jsonc
+++ b/config/hyprland/waybar/config.jsonc
@@ -2,7 +2,7 @@
"layer": "top",
"modules-left": ["battery", "clock", "wlr/workspaces", "mpd"],
"modules-center": ["hyprland/window"],
- "modules-right": ["network", "pulseaudio", "temperature", "cpu", "custom/memory", "tray"],
+ "modules-right": ["custom/wireguard", "network", "pulseaudio", "temperature", "cpu", "custom/memory", "tray"],
"wlr/workspaces": {
"on-click": "activate",
},
@@ -44,6 +44,11 @@
"default":["", "", "", "", ""]
},
},
+ "custom/wireguard": {
+ "exec": "ip addr show dev wg0",
+ "format": "wg0",
+ "restart-interval": 3,
+ },
"network": {
"format-wifi": " ",
"tooltip-format-wifi": "{ifname} {essid}",
diff --git a/config/hyprland/waybar/schemes/base16.css b/config/hyprland/waybar/schemes/base16.css
index eced638..19bb703 100644
--- a/config/hyprland/waybar/schemes/base16.css
+++ b/config/hyprland/waybar/schemes/base16.css
@@ -39,7 +39,7 @@ window#waybar.PCSX2 #window {
#mpd, #battery,
#window,
-#network, #pulseaudio, #temperature, #cpu, #custom-memory {
+#custom-wireguard, #network, #pulseaudio, #temperature, #cpu, #custom-memory {
margin-left: 8px;
padding-left: 16px;
padding-right: 16px;
@@ -48,7 +48,7 @@ window#waybar.PCSX2 #window {
#workspaces, #mpd, #battery, #clock,
#window,
-#network, #pulseaudio, #temperature, #cpu, #custom-memory, #tray {
+#custom-wireguard, #network, #pulseaudio, #temperature, #cpu, #custom-memory, #tray {
border: solid @background 2px;
margin-top: 4px;
margin-bottom: 2px;
@@ -112,6 +112,12 @@ window#waybar.PCSX2 #window {
background: @color4;
}
+#custom-wireguard {
+ color: @color5;
+ border-color: @color8;
+ background: @background;
+}
+
#network {
color: @background;
background: @color5;