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.
 
 
 
 
 

203 lines
4.3 KiB

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