config 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. "height": 30,
  2. "spacing": 4,
  3. "modules-left": ["sway/workspaces", "sway/mode"],
  4. "sway/mode": {
  5. "format": "<span style=\"italic\">{}</span>"
  6. },
  7. "modules-center": ["sway/window"],
  8. "modules-right": ["tray", "cpu", "memory", "backlight", "battery", "pulseaudio", "network", "clock"],
  9. "tray": {
  10. "spacing": 10
  11. },
  12. "cpu": {
  13. "format": "{usage}% 💻",
  14. "tooltip": false
  15. },
  16. "memory": {
  17. "format": "{}% "
  18. },
  19. "backlight": {
  20. "format": "{percent}% {icon}",
  21. "format-icons": ["", ""]
  22. },
  23. "battery": {
  24. "states": {
  25. "warning": 30,
  26. "critical": 15
  27. },
  28. "format": "{icon}: {time} ({capacity}%)",
  29. "format-charging": "{icon}: {time} ({capacity}% charging)",
  30. "format-plugged": "{icon}: {time} ({capacity}% plugged)",
  31. "format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"]
  32. },
  33. "pulseaudio": {
  34. "format": "{volume}% {icon} {format_source}",
  35. "format-bluetooth": "{volume}% {icon} {format_source}",
  36. "format-source": "{volume}% ",
  37. "format-source-muted": "",
  38. "format-icons": {
  39. "default": ["", "", ""]
  40. },
  41. "on-click": "pavucontrol"
  42. },
  43. "network": {
  44. "format": "{ipaddr}/{cidr}",
  45. "tooltip-format": "{ifname} via {gwaddr}",
  46. "format-disconnected": "Disconnected ⚠",
  47. },
  48. "clock": {
  49. "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
  50. "format": "{:%Y-%m-%d %H:%M}"
  51. },
  52. }