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.

214 lines
5.9 KiB

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