Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

298 righe
6.3 KiB

  1. [
  2. // TOUCHSCREEN > RIGHT PANEL
  3. {
  4. "layer": "top",
  5. "position": "right",
  6. "width": 100,
  7. "output": "DSI-1",
  8. "modules-left": [
  9. "clock#time",
  10. "clock#date",
  11. "sway/workspaces",
  12. "tray"
  13. ],
  14. "modules-center": [
  15. ],
  16. "modules-right": [
  17. "custom/terminal",
  18. "custom/kill"
  19. ],
  20. "clock#time": {
  21. "interval": 10,
  22. "locale": "C",
  23. "timezone": "Europe/Berlin",
  24. "format": " {:%H:%M}",
  25. "tooltip": false,
  26. "on-click": "termite -e swayphone_menuselect"
  27. },
  28. "clock#date": {
  29. "interval": 20,
  30. "locale": "C",
  31. "timezone": "Europe/Berlin",
  32. "format": " {:%e %b %Y}", // Icon: calendar-alt
  33. //"tooltip-format": "{:%e %B %Y}"
  34. "tooltip": true,
  35. "on-click": "termite -e swayphone_menuselect"
  36. },
  37. "sway/mode": {
  38. "format": "<span style=\"italic\"> {}</span>",
  39. "tooltip": true
  40. },
  41. "sway/workspaces": {
  42. "all-outputs": false,
  43. "disable-scroll": true,
  44. "persistent_workspaces": {
  45. "1:STAT": [],
  46. "2:INV": [],
  47. "3:DATA": [],
  48. "4:MAP": [],
  49. "5:RADIO": []
  50. },
  51. "format": "{name}",
  52. "format-icons": {
  53. //"1:T": "", // Icon: terminal
  54. "3:F": "龜", // Icon: firefox-browser
  55. "8:M": "", // Icon: mail
  56. "urgent": "",
  57. "focused": "",
  58. "default": ""
  59. }
  60. },
  61. "custom/kill": {
  62. "on-click": "swaymsg kill",
  63. "format": "☢"
  64. },
  65. "custom/terminal": {
  66. "on-click": "termite",
  67. "format": "#>_"
  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 \"termite -e nmtui\""
  76. },
  77. "tray": {
  78. "icon-size": 22
  79. //"spacing": 10
  80. },
  81. },
  82. // TOUCHSCREEN > LEFT PANEL
  83. {
  84. "layer": "top",
  85. "position": "left",
  86. "width": 15,
  87. "output": "DSI-1",
  88. "modules-left": [
  89. "cpu",
  90. "memory",
  91. //"battery", // broken for some reason...
  92. "custom/battery",
  93. "temperature",
  94. "disk",
  95. "backlight",
  96. "pulseaudio",
  97. ],
  98. "modules-center": [
  99. ],
  100. "modules-right": [
  101. //"custom/terminal",
  102. "custom/keyshow",
  103. "custom/keyhide"
  104. ],
  105. "custom/battery": {
  106. "exec": "waybar_battery",
  107. "interval": "2",
  108. "return-type": "json",
  109. "format": "⚛ {}"
  110. },
  111. "custom/kill": {
  112. "on-click": "swaymsg kill",
  113. "format": "☠"
  114. },
  115. "custom/keyshow": {
  116. "on-click": "swayphone_keyboard_show",
  117. "format": "K↥"
  118. },
  119. "custom/keyhide": {
  120. "on-click": "swayphone_keyboard_hide",
  121. "format": "K↧"
  122. },
  123. "custom/terminal": {
  124. "on-click": "termite",
  125. "format": ">_"
  126. },
  127. "cpu": {
  128. "interval": 5,
  129. "tooltip": false,
  130. "format": " {usage}%", //Icon: microchip
  131. "states": {
  132. "warning": 70,
  133. "critical": 90
  134. },
  135. "on-click": "termite -e \"htop --sort-key=PERCENT_CPU\""
  136. },
  137. "memory": {
  138. "interval": 5,
  139. "format": " {}%", // Icon: memory
  140. "states": {
  141. "warning": 70,
  142. "critical": 90
  143. },
  144. "on-click": "termite -e \"htop --sort-key=PERCENT_MEM\""
  145. },
  146. "temperature": {
  147. // "thermal-zone": 2,
  148. // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
  149. "critical-threshold": 60,
  150. "format-critical": " {temperatureC}°C",
  151. "format": " {temperatureC}°C"
  152. },
  153. "network": {
  154. "interval": 5,
  155. "format-wifi": "  {essid}", // Icon: wifi
  156. "format-ethernet": " {ifname}", // Icon: ethernet
  157. "format-disconnected": "Disconnected",
  158. "tooltip-format": "{ifname}: {ipaddr}",
  159. "on-click": "swaymsg exec \"termite -e nmtui\""
  160. },
  161. "pulseaudio": {
  162. "scroll-step": 1,
  163. "format": "{icon} {volume}%",
  164. "format-bluetooth": "{icon} {volume}%",
  165. "format-muted": "",
  166. "format-icons": {
  167. "headphones": "",
  168. "handsfree": "",
  169. "headset": "",
  170. "phone": "",
  171. "portable": "",
  172. "car": "",
  173. "default": ["", ""]
  174. },
  175. "on-click": "pavucontrol"
  176. },
  177. "disk": {
  178. "interval": 5,
  179. "format": "✇ {percentage_used:2}%", // alt: 
  180. "path": "/"
  181. },
  182. "backlight": {
  183. // "device": "acpi_video1",
  184. "format": "{icon} {percent}% ",
  185. "states": [0,50],
  186. "format-icons": ["", ""],
  187. "on-click": "termite -e swayphone_backlightselect"
  188. },
  189. },
  190. // EXTERNAL MONITOR
  191. {
  192. "layer": "top",
  193. "position": "bottom",
  194. "width": 100,
  195. "output": "!DSI-1",
  196. "modules-left": [
  197. "sway/workspaces#monitor"
  198. ],
  199. "modules-center": [
  200. "clock#time"
  201. ],
  202. "modules-right": [
  203. "tray",
  204. "clock#date"
  205. ],
  206. "clock#time": {
  207. "interval": 10,
  208. "locale": "C",
  209. "timezone": "Europe/Berlin",
  210. "format": " {:%H:%M}",
  211. "tooltip": false,
  212. "on-click": "termite -e swayphone_menuselect"
  213. },
  214. "clock#date": {
  215. "interval": 20,
  216. "locale": "C",
  217. "timezone": "Europe/Berlin",
  218. "format": " {:%e %b %Y}", // Icon: calendar-alt
  219. //"tooltip-format": "{:%e %B %Y}"
  220. "tooltip": true,
  221. "on-click": "termite -e swayphone_menuselect"
  222. },
  223. "sway/mode": {
  224. "format": "<span style=\"italic\"> {}</span>",
  225. "tooltip": true
  226. },
  227. "sway/workspaces#monitor": {
  228. "all-outputs": false,
  229. "disable-scroll": true,
  230. /*"persistent_workspaces": {
  231. "6:": [],
  232. "7:": [],
  233. "8:": [],
  234. "9:": [],
  235. "0:": []
  236. },*/
  237. "format": "{name}",
  238. "format-icons": {
  239. //"1:T": "", // Icon: terminal
  240. "3:F": "龜", // Icon: firefox-browser
  241. "8:M": "", // Icon: mail
  242. "urgent": "",
  243. "focused": "",
  244. "default": ""
  245. }
  246. },
  247. "network": {
  248. "interval": 5,
  249. "format-wifi": "  {essid}", // Icon: wifi
  250. "format-ethernet": " {ifname}", // Icon: ethernet
  251. "format-disconnected": "Disconnected",
  252. "tooltip-format": "{ifname}: {ipaddr}",
  253. "on-click": "swaymsg exec \"termite -e nmtui\""
  254. },
  255. "tray": {
  256. "icon-size": 22
  257. //"spacing": 10
  258. },
  259. }
  260. ]