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.

239 lines
6.4 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
2 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
3 years ago
4 years ago
4 years ago
4 years ago
  1. [{
  2. "output": "DP-1",
  3. "layer": "top", // Waybar at top layer
  4. // "position": "bottom", // Waybar position (top|bottom|left|right)
  5. "height": 30, // Waybar height (to be removed for auto height)
  6. // "width": 1280, // Waybar width
  7. "modules-left": [
  8. "idle_inhibitor",
  9. "cpu",
  10. "memory",
  11. "disk",
  12. "custom/temperature",
  13. "sway/mode",
  14. "sway/window",
  15. "custom/media"
  16. ],
  17. "modules-center": [
  18. "sway/workspaces"
  19. ],
  20. "modules-right": [
  21. "tray",
  22. "custom/watson",
  23. "custom/calc",
  24. "pulseaudio",
  25. // "network",
  26. "clock",
  27. "custom/power"
  28. ],
  29. // Modules configuration
  30. "sway/workspaces": {
  31. "disable-scroll": true,
  32. "all-outputs": false,
  33. "format": "{name}",
  34. "format-icons": {
  35. "urgent": "",
  36. }
  37. },
  38. "disk": {
  39. "interval": 30,
  40. "format": "{percentage_used}% <span></span>",
  41. },
  42. "sway/mode": {
  43. "format": "<span style=\"italic\">{}</span>"
  44. },
  45. "mpd": {
  46. "format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ",
  47. "format-disconnected": "Disconnected ",
  48. "format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
  49. "unknown-tag": "N/A",
  50. "interval": 2,
  51. "consume-icons": {
  52. "on": " "
  53. },
  54. "random-icons": {
  55. "off": "<span color=\"#f53c3c\"></span> ",
  56. "on": " "
  57. },
  58. "repeat-icons": {
  59. "on": " "
  60. },
  61. "single-icons": {
  62. "on": "1 "
  63. },
  64. "state-icons": {
  65. "paused": "",
  66. "playing": ""
  67. },
  68. "tooltip-format": "MPD (connected)",
  69. "tooltip-format-disconnected": "MPD (disconnected)"
  70. },
  71. "idle_inhibitor": {
  72. "format": "{icon}",
  73. "format-icons": {
  74. "activated": "",
  75. "deactivated": ""
  76. }
  77. },
  78. "tray": {
  79. // "icon-size": 21,
  80. "spacing": 10
  81. },
  82. "clock": {
  83. "format": "{:%Y-%m-%d | %H:%M}",
  84. "tooltip-format": "{:%Y-%m-%d | %H:%M}",
  85. "format-alt": "{:%Y-%m-%d}"
  86. },
  87. "cpu": {
  88. "format": "{usage}% ",
  89. "tooltip": false
  90. },
  91. "memory": {
  92. "format": "{}% "
  93. },
  94. "temperature": {
  95. // "thermal-zone": 2,
  96. // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
  97. "critical-threshold": 80,
  98. "exec": "ryzen-cpu-temp",
  99. // "format-critical": "{temperatureC}°C {icon}",
  100. "format": "{temperatureC}°C {icon}",
  101. "format-icons": [
  102. "",
  103. "",
  104. ""
  105. ]
  106. },
  107. "custom/temperature": {
  108. "interval": 10,
  109. "critical-threshold": 80,
  110. "exec": "ryzen-cpu-temp",
  111. "format-critical": "{} {icon}",
  112. "format": "{}°C {icon}",
  113. "format-icons": [
  114. "",
  115. "",
  116. ""
  117. ]
  118. },
  119. "backlight": {
  120. // "device": "acpi_video1",
  121. "format": "{percent}% {icon}",
  122. "format-icons": [
  123. "",
  124. ""
  125. ]
  126. },
  127. "battery": {
  128. "states": {
  129. // "good": 95,
  130. "warning": 30,
  131. "critical": 15
  132. },
  133. "format": "{capacity}% {icon}",
  134. "format-charging": "{capacity}% ",
  135. "format-plugged": "{capacity}% ",
  136. "format-alt": "{time} {icon}",
  137. // "format-good": "", // An empty format will hide the module
  138. // "format-full": "",
  139. "format-icons": [
  140. "",
  141. "",
  142. "",
  143. "",
  144. ""
  145. ]
  146. },
  147. "battery#bat2": {
  148. "bat": "BAT2"
  149. },
  150. "network": {
  151. // "interface": "wlp2*", // (Optional) To force the use of this interface
  152. "format-wifi": "{essid} ({signalStrength}%) ",
  153. "format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
  154. "format-linked": "{ifname} (No IP) ",
  155. "format-disconnected": "Disconnected ⚠",
  156. "format-alt": "{ifname}: {ipaddr}/{cidr}"
  157. },
  158. "pulseaudio": {
  159. // "scroll-step": 1, // %, can be a float
  160. "format": "{volume}% {icon} {format_source}",
  161. "format-bluetooth": "{volume}% {icon} {format_source}",
  162. "format-bluetooth-muted": " {icon} {format_source}",
  163. "format-muted": " {format_source}",
  164. "format-source": "{volume}% ",
  165. "format-source-muted": "",
  166. "format-icons": {
  167. "headphones": "",
  168. "handsfree": "",
  169. "headset": "",
  170. "phone": "",
  171. "portable": "",
  172. "car": "",
  173. "default": [
  174. "",
  175. "",
  176. ""
  177. ]
  178. },
  179. "on-click": "pavucontrol"
  180. },
  181. "custom/media": {
  182. "format": "{icon} {}",
  183. "return-type": "json",
  184. "max-length": 40,
  185. "format-icons": {
  186. "spotify": "",
  187. "default": "🎜"
  188. },
  189. "escape": true,
  190. //"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
  191. "exec": "$HOME/.config/waybar/mediaplayer.py --player tuijam 2> /dev/null",
  192. "on-click": "playerctl -p tuijam play-pause"
  193. },
  194. "custom/watson": {
  195. "format": "{} ",
  196. //"max-length": 15,
  197. "interval": 10,
  198. "exec": "watson-status",
  199. //"on-click": "/usr/bin/watson stop;exit"
  200. },
  201. "custom/calc": {
  202. "format": "",
  203. "interval": 1000,
  204. "on-click": "qalculate-gtk"
  205. },
  206. "custom/playerctl": {
  207. "format": "{}",
  208. "exec": ""
  209. },
  210. "custom/power": {
  211. "format": "⏻",
  212. "on-click": "nwgbar -o 0.2",
  213. "escape": true,
  214. "tooltip": false
  215. }
  216. },
  217. {
  218. "output": "HDMI-A-1",
  219. "layer": "top", // Waybar at top layer
  220. "position": "bottom", // Waybar position (top|bottom|left|right)
  221. "height": 30, // Waybar height (to be removed for auto height)
  222. // "width": 1280, // Waybar width
  223. "modules-left": [
  224. "sway/window",
  225. ],
  226. "modules-center": [
  227. "sway/workspaces"
  228. ],
  229. "modules-right": [
  230. ],
  231. "sway/workspaces": {
  232. "disable-scroll": true,
  233. "all-outputs": false,
  234. "format": "{name}",
  235. "format-icons": {
  236. "urgent": "",
  237. }
  238. }
  239. }]