waybar: add weather module to bar
Add custom/weather module between battery and clock, polling weather.sh every 10 minutes.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
"position": "top",
|
||||
"modules-left": ["hyprland/workspaces", "mpris"],
|
||||
"modules-center": ["hyprland/window"],
|
||||
"modules-right": ["cpu", "memory", "tray", "bluetooth", "network", "pulseaudio", "battery", "clock", "power-profiles-daemon", "custom/power"],
|
||||
"modules-right": ["cpu", "memory", "tray", "bluetooth", "network", "pulseaudio", "battery", "custom/weather", "clock", "power-profiles-daemon", "custom/power"],
|
||||
"clock": {
|
||||
"format": "<span foreground='#f5c2e7'> </span>{:%a %d %H:%M}",
|
||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
|
||||
@@ -28,6 +28,12 @@
|
||||
"memory": {
|
||||
"on-click": "~/.local/bin/btop.sh"
|
||||
},
|
||||
"custom/weather": {
|
||||
"format": "{}",
|
||||
"exec": "~/.local/bin/weather.sh",
|
||||
"interval": 600,
|
||||
"tooltip": false
|
||||
},
|
||||
"tray": {
|
||||
"icon-size": 16,
|
||||
"icon-theme": "Papirus-Dark",
|
||||
|
||||
Reference in New Issue
Block a user