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.

196 lines
5.5 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
  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. "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. // "format-critical": "{temperatureC}°C {icon}",
  103. "format": "{temperatureC}°C {icon}",
  104. "format-icons": [
  105. "",
  106. "",
  107. ""
  108. ]
  109. },
  110. "backlight": {
  111. // "device": "acpi_video1",
  112. "format": "{percent}% {icon}",
  113. "format-icons": [
  114. "",
  115. ""
  116. ]
  117. },
  118. "battery": {
  119. "states": {
  120. // "good": 95,
  121. "warning": 30,
  122. "critical": 15
  123. },
  124. "format": "{capacity}% {icon}",
  125. "format-charging": "{capacity}% ",
  126. "format-plugged": "{capacity}% ",
  127. "format-alt": "{time} {icon}",
  128. // "format-good": "", // An empty format will hide the module
  129. // "format-full": "",
  130. "format-icons": [
  131. "",
  132. "",
  133. "",
  134. "",
  135. ""
  136. ]
  137. },
  138. "battery#bat2": {
  139. "bat": "BAT2"
  140. },
  141. "network": {
  142. // "interface": "wlp2*", // (Optional) To force the use of this interface
  143. "format-wifi": "{essid} ({signalStrength}%) ",
  144. "format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
  145. "format-linked": "{ifname} (No IP) ",
  146. "format-disconnected": "Disconnected ⚠",
  147. "format-alt": "{ifname}: {ipaddr}/{cidr}"
  148. },
  149. "pulseaudio": {
  150. // "scroll-step": 1, // %, can be a float
  151. "format": "{volume}% {icon} {format_source}",
  152. "format-bluetooth": "{volume}% {icon} {format_source}",
  153. "format-bluetooth-muted": " {icon} {format_source}",
  154. "format-muted": " {format_source}",
  155. "format-source": "{volume}% ",
  156. "format-source-muted": "",
  157. "format-icons": {
  158. "headphones": "",
  159. "handsfree": "",
  160. "headset": "",
  161. "phone": "",
  162. "portable": "",
  163. "car": "",
  164. "default": [
  165. "",
  166. "",
  167. ""
  168. ]
  169. },
  170. "on-click": "pavucontrol"
  171. },
  172. "custom/media": {
  173. "format": "{icon} {}",
  174. "return-type": "json",
  175. "max-length": 40,
  176. "format-icons": {
  177. "spotify": "",
  178. "default": "🎜"
  179. },
  180. "escape": true,
  181. "exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
  182. // "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
  183. },
  184. "custom/watson": {
  185. "format": "{} ",
  186. //"max-length": 15,
  187. "interval": 10,
  188. "exec": "watson-status",
  189. "on-click": "watson stop"
  190. },
  191. "custom/calc": {
  192. "format": "",
  193. "interval": 1000,
  194. "on-click": "qalculate-gtk"
  195. }
  196. }