summaryrefslogtreecommitdiff
path: root/.config/waybar
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2020-04-28 11:50:25 -0400
committerluxagraf <sng@luxagraf.net>2020-04-28 11:50:25 -0400
commit5373184656c7ebb73e268e9033e9d8ff3eb5f3fd (patch)
tree326ed5c68848be4f9ada4b20b713377bee4b52e3 /.config/waybar
parent9cb49dc6454ed3d916d7bb0490275650d4a5e54c (diff)
added recent changes to sway config, ranger bookmarks and moving to firefox
Diffstat (limited to '.config/waybar')
-rw-r--r--.config/waybar/config13
-rwxr-xr-x[-rw-r--r--].config/waybar/modules/storage.sh0
-rwxr-xr-x.config/waybar/modules/weather.sh6
3 files changed, 12 insertions, 7 deletions
diff --git a/.config/waybar/config b/.config/waybar/config
index 7fc5a76..49be1fd 100644
--- a/.config/waybar/config
+++ b/.config/waybar/config
@@ -4,7 +4,7 @@
"height": 24,
"modules-left": ["sway/workspaces", "sway/mode"],
"modules-center": [""],
- "modules-right": ["mpd", "network", "idle_inhibitor", "battery", "memory", "tray", "clock"],
+ "modules-right": ["mpd", "network", "idle_inhibitor", "battery", "custom/storage", "cpu", "memory", "custom/weather", "tray", "clock"],
"sway/mode": {
"format": " {}"
},
@@ -18,7 +18,7 @@
"on-click": "~/./bin/cal.sh"
},
"battery": {
- "format": "{capacity}% {icon} | ",
+ "format": "| {capacity}% {icon} | ",
"format-alt": "{time} {icon}",
"format-icons": ["", "", "", "", ""],
"format-charging": "{capacity}% CHR",
@@ -39,7 +39,6 @@
"tooltip-format-wifi": "{essid} ({signalStrength}%) ",
"tooltip-format-ethernet": "{ifname} ",
"tooltip-format-disconnected": "Disconnected",
- "max-length": 50,
"on-click": "alacritty -e nmtui",
"tooltip": false
},
@@ -70,12 +69,12 @@
"on-click-right": "mpc next"
},
"custom/storage": {
- "format": "{} ",
+ "format": "{}  |",
"format-alt": "{percentage}% ",
"format-alt-click": "click-right",
"return-type": "json",
"interval": 60,
- "exec": "~/.config/waybar/modules/storage.sh"
+ "exec": "$HOME/.config/waybar/modules/storage.sh"
},
"backlight": {
"format": "{icon}",
@@ -86,12 +85,12 @@
"on-scroll-up": "light -U 1"
},
"custom/weather": {
- "format": "{}",
+ "format": "{} |",
"format-alt": "{alt}: {}",
"format-alt-click": "click-right",
"interval": 1800,
"return-type": "json",
- "exec": "~/.config/waybar/modules/weather.sh",
+ "exec": "$HOME/.config/waybar/modules/weather.sh",
"exec-if": "ping wttr.in -c1"
},
"idle_inhibitor": {
diff --git a/.config/waybar/modules/storage.sh b/.config/waybar/modules/storage.sh
index d495da4..d495da4 100644..100755
--- a/.config/waybar/modules/storage.sh
+++ b/.config/waybar/modules/storage.sh
diff --git a/.config/waybar/modules/weather.sh b/.config/waybar/modules/weather.sh
new file mode 100755
index 0000000..d64acd0
--- /dev/null
+++ b/.config/waybar/modules/weather.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+w=$(curl -s wttr.in/ahn?format="%l:+%c+%t+%C+%w+%h+%m")
+w=${w:7}
+w="$(echo -e "${w}" | sed -e 's/^[[:space:]]*//')"
+m=$(python ~/bin/moonphase-waybar.py)
+echo "{\"text\":\""$w ""$m"\", \"tooltip\":\""tooltip"\", \"class\":\""lxf-weather"\"}"