mirror of
https://github.com/alrayyes/dotfiles/
synced 2023-11-14 15:56:30 +00:00
Added wttr to polybar
This commit is contained in:
parent
d820db5051
commit
2332056fe2
@ -40,6 +40,7 @@ bspc config gapless_monocle true
|
||||
|
||||
bspc rule -a "Syncthing GTK" state=floating
|
||||
bspc rule -a Gimp state=floating
|
||||
bspc rule -a wttr state=floating
|
||||
bspc rule -a Spotify desktop='^4'
|
||||
bspc rule -a Spt desktop='^4'
|
||||
bspc rule -a Emacs state=tiled
|
||||
|
3
polybar/.config/polybar/bin/wttr-and-wait
Executable file
3
polybar/.config/polybar/bin/wttr-and-wait
Executable file
@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env fish
|
||||
|
||||
wttr && read -n 1 -p ""
|
@ -48,7 +48,7 @@ monitor = ${env:MONITOR:eDP1}
|
||||
|
||||
modules-left = bspwm
|
||||
modules-center = battery0 battery1 wlan wireguard bluetooth
|
||||
modules-right = xbacklight volume-laptop memory cpu temperature filesystem docker updates-arch-combined mail reddit github rss date
|
||||
modules-right = xbacklight volume-laptop memory cpu temperature filesystem docker updates-arch-combined mail reddit github rss weather date
|
||||
|
||||
tray-position = right
|
||||
|
||||
@ -58,7 +58,7 @@ monitor = ${env:MONITOR:DP-1}
|
||||
|
||||
modules-left = bspwm
|
||||
modules-center = player-mpris-tail
|
||||
modules-right = eth bluetooth volume memory cpu temperature system-usb-udev filesystem docker updates-arch-combined mail reddit github rss date
|
||||
modules-right = eth bluetooth volume memory cpu temperature system-usb-udev filesystem docker updates-arch-combined mail reddit github rss weather date
|
||||
|
||||
tray-position = right
|
||||
|
||||
@ -446,6 +446,12 @@ exec = ~/.config/polybar/bin/wireguard-status
|
||||
;This doesn't work when run in the background for some reason
|
||||
click-left = ~/.local/bin/wireguard-switch
|
||||
|
||||
[module/weather]
|
||||
type = custom/script
|
||||
exec = curl --silent "https://wttr.in/?format=2"
|
||||
click-left = setsid alacritty --class wttr,wttr -e ~/.config/polybar/bin/wttr-and-wait
|
||||
interval = 900
|
||||
|
||||
[settings]
|
||||
screenchange-reload = true
|
||||
;compositing-background = xor
|
||||
|
Loading…
Reference in New Issue
Block a user