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.

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