You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

165 lines
3.3 KiB

  1. {
  2. //GLOBAL
  3. "layer": "top",
  4. "position": "top",
  5. "modules-left": [
  6. "sway/workspaces",
  7. "tray"
  8. ],
  9. "modules-center": [
  10. "clock#date"
  11. ],
  12. "modules-right": [
  13. "battery",
  14. "clock#time"
  15. ],
  16. //MODULES
  17. "clock#time": {
  18. "interval": 10,
  19. "locale": "C",
  20. "timezone": "Europe/Berlin",
  21. "format": "{:%H:%M}",
  22. "tooltip": false
  23. },
  24. "clock#date": {
  25. "interval": 20,
  26. "locale": "C",
  27. "timezone": "Europe/Berlin",
  28. "format": " {:%e %b %Y}", // Icon: calendar-alt
  29. //"tooltip-format": "{:%e %B %Y}"
  30. "tooltip": true,
  31. "on-click": "termite -e swayphone_menuselect"
  32. },
  33. "battery": {
  34. "interval": 1,
  35. "states": {
  36. "warning": 30,
  37. "critical": 15
  38. },
  39. // Connected to AC
  40. "format": " {capacity}%", // Icon: bolt
  41. // Not connected to AC
  42. "format-discharging": " {capacity}%",
  43. "format-icons": [
  44. "", // Icon: battery-full
  45. "", // Icon: battery-three-quarters
  46. "", // Icon: battery-half
  47. "", // Icon: battery-quarter
  48. "" // Icon: battery-empty
  49. ],
  50. "tooltip": false
  51. },
  52. "cpu": {
  53. "interval": 5,
  54. "tooltip": false,
  55. "format": " {usage}%", //Icon: microchip
  56. "states": {
  57. "warning": 70,
  58. "critical": 90
  59. }
  60. },
  61. "memory": {
  62. "interval": 5,
  63. "format": " {}%", // Icon: memory
  64. "states": {
  65. "warning": 70,
  66. "critical": 90
  67. }
  68. },
  69. "network": {
  70. "interval": 5,
  71. "format-wifi": "  {essid}", // Icon: wifi
  72. "format-ethernet": " {ifname}", // Icon: ethernet
  73. "format-disconnected": "Disconnected",
  74. "tooltip-format": "{ifname}: {ipaddr}",
  75. "on-click": "swaymsg exec cmst"
  76. },
  77. "sway/mode": {
  78. "format": "<span style=\"italic\"> {}</span>",
  79. "tooltip": true
  80. },
  81. "sway/workspaces": {
  82. "all-outputs": false,
  83. "disable-scroll": true,
  84. "persistent_workspaces": {
  85. "1": [],
  86. "3:F": [],
  87. "8:M": [],
  88. "9:K": []
  89. },
  90. "format": "{name}",
  91. "format-icons": {
  92. //"1:T": "", // Icon: terminal
  93. "3:F": "龜", // Icon: firefox-browser
  94. "8:M": "", // Icon: mail
  95. "urgent": "",
  96. "focused": "",
  97. "default": ""
  98. }
  99. },
  100. "pulseaudio": {
  101. "scroll-step": 1,
  102. "format": "{icon} {volume}%",
  103. "format-bluetooth": "{icon} {volume}%",
  104. "format-muted": "",
  105. "format-icons": {
  106. "headphones": "",
  107. "handsfree": "",
  108. "headset": "",
  109. "phone": "",
  110. "portable": "",
  111. "car": "",
  112. "default": ["", ""]
  113. },
  114. "on-click": "pavucontrol"
  115. },
  116. "disk": {
  117. "interval": 5,
  118. "format": " {percentage_used:2}%",
  119. "path": "/"
  120. },
  121. "backlight": {
  122. // "device": "acpi_video1",
  123. "format": "{icon} {percent}% ",
  124. "states": [0,50],
  125. "format-icons": ["", ""]
  126. },
  127. "tray": {
  128. "icon-size": 22
  129. //"spacing": 10
  130. },
  131. "custom/bar": {
  132. "format": "",
  133. "tooltip": false
  134. }
  135. }