aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_config
diff options
context:
space:
mode:
Diffstat (limited to 'dot_config')
-rw-r--r--dot_config/waybar/config.jsonc10
-rw-r--r--dot_config/waybar/style.css3
2 files changed, 7 insertions, 6 deletions
diff --git a/dot_config/waybar/config.jsonc b/dot_config/waybar/config.jsonc
index 568738f..fc2fb38 100644
--- a/dot_config/waybar/config.jsonc
+++ b/dot_config/waybar/config.jsonc
@@ -8,7 +8,7 @@
"modules-right": [
"pulseaudio",
"cpu",
- "memory",
+ "custom/memory",
"temperature",
"network",
"battery",
@@ -30,10 +30,10 @@
"tooltip": false,
},
- "memory": {
- "format": "MEM {used:0.1f}G used / {avail:0.1f}G free",
+ "custom/memory": {
+ "exec": "awk '/^MemTotal:/{t=$2} /^MemAvailable:/{a=$2} END{u=t-a; printf \"MEM %.1fG (%d%%) used / %.1fG (%d%%) free\\n\", u/1048576, u*100/t, a/1048576, a*100/t}' /proc/meminfo",
"interval": 10,
- "tooltip-format": "{used:0.1f}G used · {avail:0.1f}G free · {total:0.1f}G total ({percentage}%)",
+ "tooltip": false,
},
"temperature": {
@@ -42,7 +42,7 @@
},
"network": {
- "interval": 2,
+ "interval": 10,
"format-wifi": "{essid} {signalStrength}% ↓{bandwidthDownBits} ↑{bandwidthUpBits}",
"format-ethernet": "↓{bandwidthDownBits} ↑{bandwidthUpBits}",
"format-disconnected": "disconnected",
diff --git a/dot_config/waybar/style.css b/dot_config/waybar/style.css
index 689668d..8e1299d 100644
--- a/dot_config/waybar/style.css
+++ b/dot_config/waybar/style.css
@@ -40,7 +40,8 @@ window#waybar {
#temperature,
#network,
#pulseaudio,
-#tray {
+#tray,
+#custom-memory {
padding: 0 6px;
}