summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/hyprland/waybar/config.jsonc10
-rw-r--r--config/hyprland/waybar/style.css6
2 files changed, 8 insertions, 8 deletions
diff --git a/config/hyprland/waybar/config.jsonc b/config/hyprland/waybar/config.jsonc
index c325c96..4760ad3 100644
--- a/config/hyprland/waybar/config.jsonc
+++ b/config/hyprland/waybar/config.jsonc
@@ -2,7 +2,7 @@
"layer": "top",
"modules-left": ["wlr/workspaces", "mpd"],
"modules-center": ["hyprland/window"],
- "modules-right": ["network", "pulseaudio", "temperature", "cpu", "memory", "clock", "tray"],
+ "modules-right": ["network", "pulseaudio", "temperature", "cpu", "custom/memory", "clock", "tray"],
"wlr/workspaces": {
"on-click": "activate",
},
@@ -39,10 +39,10 @@
"format": " {usage:2}%",
"interval": 3,
},
- "memory": {
- "tooltip": false,
- "format": " {used:.2f}G",
- "interval": 3,
+ "custom/memory": {
+ "exec": "/home/aluc/script.sh",
+ "format": "{}",
+ "restart-interval": 3,
},
"clock": {
"format": "{:%H:%M}",
diff --git a/config/hyprland/waybar/style.css b/config/hyprland/waybar/style.css
index 29b429b..4b12d00 100644
--- a/config/hyprland/waybar/style.css
+++ b/config/hyprland/waybar/style.css
@@ -36,7 +36,7 @@ window#waybar.PCSX2 #window {
}
#mpd,
-#network, #pulseaudio, #temperature, #cpu, #memory {
+#network, #pulseaudio, #temperature, #cpu, #custom-memory {
margin-left: 8px;
padding-left: 16px;
padding-right: 16px;
@@ -44,7 +44,7 @@ window#waybar.PCSX2 #window {
}
#workspaces, #mpd,
-#network, #pulseaudio, #temperature, #cpu, #memory, #workspaces, #clock, #tray {
+#network, #pulseaudio, #temperature, #cpu, #custom-memory, #workspaces, #clock, #tray {
margin-top: 4px;
margin-bottom: 2px;
transition: none;
@@ -107,7 +107,7 @@ window#waybar.PCSX2 #window {
background: #ebcb8b;
}
-#memory {
+#custom-memory {
color: #2e3440;
background: #a3be8c;
}