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.

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