config 1.6 KB

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