aboutsummaryrefslogtreecommitdiff
path: root/.config/waybar
diff options
context:
space:
mode:
authorJack Sangdahl <0x6A73@pm.me>2024-02-08 22:12:50 -0700
committerJack Sangdahl <0x6A73@pm.me>2024-02-08 22:12:50 -0700
commitccf9ea7b96125104d843c82a9e45bc1cda97ba19 (patch)
tree95943c46bd664c43ee520e27f21ae13a48879116 /.config/waybar
parent52a470d68b1a4bd932fb2f475c9e92c2a6a2ec5d (diff)
downloaddots-ccf9ea7b96125104d843c82a9e45bc1cda97ba19.tar.gz
dots-ccf9ea7b96125104d843c82a9e45bc1cda97ba19.zip
waybar network module & swaynag
Diffstat (limited to '.config/waybar')
-rw-r--r--.config/waybar/config13
-rw-r--r--.config/waybar/style.css4
2 files changed, 8 insertions, 9 deletions
diff --git a/.config/waybar/config b/.config/waybar/config
index 0820ba9a..96ac49bc 100644
--- a/.config/waybar/config
+++ b/.config/waybar/config
@@ -26,16 +26,15 @@
},
"custom/date": {
"exec": "~/.config/scripts/date.sh",
- "format": "\uf073 {}",
- "interval": 60
+ "format": "\uf073 {}"
},
- "custom/wifi": {
- "exec": "~/.config/scripts/network.sh",
- "format": "\uf1eb {}",
- "interval": 10
+ "network": {
+ "format-wifi": "\uf1eb {ipaddr}",
+ "format-disconnected": "\uf52f disconnected",
+ "tooltip-format-wifi": "\uf1eb {ifname} @ {essid}\nIP: {ipaddr}\nStrength: {signalStrength}%\nFreq: {frequency}MHz\n\uf093 {bandwidthUpBits} \uf019 {bandwidthDownBits}",
},
"modules-center": ["sway/workspaces"],
- "modules-left": ["custom/wifi", "battery", "temperature"],
+ "modules-left": ["network", "battery", "temperature"],
"modules-right": ["pulseaudio", "custom/date", "clock"],
"position": "top",
"pulseaudio": {
diff --git a/.config/waybar/style.css b/.config/waybar/style.css
index 9a270557..f634eea2 100644
--- a/.config/waybar/style.css
+++ b/.config/waybar/style.css
@@ -29,7 +29,7 @@ tooltip * {
color: @white1;
}
-#custom-wifi,
+#network,
#battery,
#temperature,
#workspaces,
@@ -46,7 +46,7 @@ tooltip * {
#workspaces { background-color: @base01; }
#clock { background-color: @base0E; }
#custom-date { background-color: @base0D; }
-#custom-wifi { background-color: @base0A; }
+#network { background-color: @base0A; }
#temperature { background-color: @base07; }
#temperature.critical { background-color: @base0B; }
#pulseaudio { background-color: @base0C; }