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.

248 lines
6.7 KiB

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