config 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. {
  2. "layer": "bottom", // Allow dmenu to be on top
  3. "modules-left": [ "sway/workspaces", "sway/mode" ],
  4. "modules-center": [ "sway/window" ],
  5. "modules-right":
  6. [
  7. "tray",
  8. "mpd",
  9. "network",
  10. "memory",
  11. "cpu",
  12. "temperature",
  13. "backlight",
  14. "battery",
  15. "clock",
  16. "idle_inhibitor"
  17. ],
  18. "sway/workspaces": {"all-outputs": true},
  19. "mpd": {
  20. "format": "{stateIcon} {artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S})",
  21. "format-disconnected": "Disconnected",
  22. "format-stopped": "Stopped",
  23. "unknown-tag": "N/A",
  24. "interval": 2,
  25. "state-icons": {"paused": "", "playing": ""}
  26. },
  27. "idle_inhibitor": {
  28. "format": "{icon}",
  29. "format-icons": {"activated": "", "deactivated": ""}
  30. },
  31. "tray": {
  32. // "icon-size": 21,
  33. "spacing": 10
  34. },
  35. "clock": {"tooltip-format": "{:%A %d %B, %Y}", "format": "{:%Fw%wT%T%z}"},
  36. "cpu": {"format": "CPU: {total}%"},
  37. "memory": {"format": "RAM: {}%"},
  38. "temperature": {
  39. "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
  40. "critical-threshold": 62,
  41. // "format-critical": "{temperatureC}°C {icon}",
  42. "format": "{temperatureC}°C"
  43. },
  44. "backlight": {
  45. // "device": "acpi_video1",
  46. "format": "{percent}% {icon}",
  47. "format-icons": [ "", "" ]
  48. },
  49. "battery": {
  50. "states": {
  51. "good": 95,
  52. "warning": 30,
  53. "critical": 15
  54. },
  55. "format": "{time} {capacity}%",
  56. "format-full": "{capacity}% 🔋",
  57. "format-charging": "{capacity}% ☇",
  58. "format-plugged": "{capacity}% 🔌"
  59. },
  60. "battery#bat2": {"bat": "BAT2"},
  61. "network": {
  62. "format-wifi": "{ifname}: {essid} ({signalStrength}% @ {frequency:2}) {bandwidthUpOctets:3}⇅{bandwidthDownOctets:3}",
  63. "format-ethernet": "{ifname}: {bandwidthUpBits:3}⇅{bandwidthDownBits:3}",
  64. "format-linked": "{ifname} (No IPv4)",
  65. "format-disconnected": "Disconnected",
  66. }
  67. }