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",
|
"position": "top",
|
||||||
"modules-left": ["hyprland/workspaces", "mpris"],
|
"modules-left": ["hyprland/workspaces", "mpris"],
|
||||||
"modules-center": ["hyprland/window"],
|
"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": {
|
"clock": {
|
||||||
"format": "<span foreground='#f5c2e7'> </span>{:%a %d %H:%M}",
|
"format": "<span foreground='#f5c2e7'> </span>{:%a %d %H:%M}",
|
||||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
|
||||||
@@ -28,6 +28,12 @@
|
|||||||
"memory": {
|
"memory": {
|
||||||
"on-click": "~/.local/bin/btop.sh"
|
"on-click": "~/.local/bin/btop.sh"
|
||||||
},
|
},
|
||||||
|
"custom/weather": {
|
||||||
|
"format": "{}",
|
||||||
|
"exec": "~/.local/bin/weather.sh",
|
||||||
|
"interval": 600,
|
||||||
|
"tooltip": false
|
||||||
|
},
|
||||||
"tray": {
|
"tray": {
|
||||||
"icon-size": 16,
|
"icon-size": 16,
|
||||||
"icon-theme": "Papirus-Dark",
|
"icon-theme": "Papirus-Dark",
|
||||||
|
|||||||
Reference in New Issue
Block a user