network.yuck 879 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. (defpoll available_networks
  2. :interval "5s"
  3. "~/.config/eww/widgets/network/scripts/available_wifi.py"
  4. )
  5. (defpoll devices
  6. :interval "5s"
  7. "~/.config/eww/widgets/network/scripts/devices.py"
  8. )
  9. (defwindow network
  10. :monitor 0
  11. :geometry (geometry
  12. :width "300px"
  13. :height "500px"
  14. :anchor "bottom right"
  15. )
  16. :stacking "fg"
  17. (network-menu)
  18. )
  19. (defwidget network-menu []
  20. (box
  21. :orientation "v"
  22. :class "network-menu"
  23. :space-evenly false
  24. (label
  25. :class "title"
  26. :text "Internet"
  27. :xalign 0.5
  28. :yalign 0.2
  29. )
  30. (literal :content devices)
  31. (scroll
  32. :vexpand true
  33. (box
  34. :orientation "v"
  35. :spacing 8
  36. (literal :content available_networks)
  37. )
  38. )
  39. )
  40. )