config 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. {
  2. //Icons:       
  3. "position": "top",
  4. "modules-left": ["sway/workspaces", "sway/mode"],
  5. "modules-center": ["wlr/taskbar"],
  6. "modules-right": ["clock", "pulseaudio", "battery", "network", "disk"],
  7. // Left
  8. "sway/workspaces": {
  9. "disable-scroll": true,
  10. "format": "{icon}{name}",
  11. "format-icons": {
  12. "urgent": "",
  13. "focused": "",
  14. "default": ""
  15. },
  16. "persistent_workspaces": {
  17. "1": ["eDP-1", "DP-2"],
  18. "2": ["eDP-1", "DP-2"],
  19. "3": ["eDP-1", "DP-2"],
  20. "4": ["eDP-1", "DP-2"],
  21. "5": ["eDP-1", "DP-2"],
  22. "6": ["DP-3"],
  23. "7": ["DP-3"],
  24. "8": ["DP-3"],
  25. "9": ["DP-3"],
  26. "10": ["DP-3"]
  27. }
  28. },
  29. "sway/mode": {
  30. "format": " | mode: {} "
  31. },
  32. // Center
  33. "wlr/taskbar": {
  34. "format": "{icon}",
  35. "icon-size": 21,
  36. "all-outputs": true,
  37. "tooltip-format": "{title}",
  38. "on-click": "activate"
  39. },
  40. // Right
  41. "clock": {
  42. "interval": 60,
  43. // 
  44. // https://howardhinnant.github.io/date/date.html#to_stream_formatting
  45. "timezone": "America/Chicago",
  46. "format": " {:%OI:%M %p} | ",
  47. "tooltip-format": "{:%R %a. %D}",
  48. "max-length": 30
  49. },
  50. "pulseaudio": {
  51. "interval": 10,
  52. "scroll-step": 1,
  53. "on-click": "pavucontrol",
  54. "format": "{icon} {volume}%",
  55. "format-muted": " muted",
  56. "format-icons": {
  57. "default": ["", "", ""]
  58. }
  59. },
  60. "network": {
  61. "interval": 60,
  62. "format-ethernet": " |  {ifname}",
  63. "format-wifi": " |  {essid}",
  64. "format-disconnected": " | 睊 no internet",
  65. "tooltip-format": "{ifname}",
  66. "on-click": "nmtui",
  67. "max-length": 80
  68. },
  69. "battery": {
  70. "design-capacity": false,
  71. "interval": 30,
  72. "states": {
  73. "full": 100,
  74. "moderate": 50,
  75. "low": 30,
  76. "critical": 15
  77. },
  78. "tooltip-format": "{time} til empty",
  79. "format-charging": " |  {capacity}% {time} til full",
  80. "format": " | {icon} {capacity}%",
  81. "format-icons": ["", "", "", "", "", "", "", "", "", "", ""],
  82. "max-length": 50
  83. },
  84. "disk": {
  85. "interval": 100,
  86. "path": "/",
  87. "format": " | 力 {percentage_used}% ",
  88. },
  89. }