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.

146 lines
4.8 KiB

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": ["sway/workspaces", "sway/mode", "custom/media"],
  8. "modules-center": ["sway/window"],
  9. "modules-right": ["mpd", "idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "battery", "battery#bat2", "clock", "tray"],
  10. // Modules configuration
  11. // "sway/workspaces": {
  12. // "disable-scroll": true,
  13. // "all-outputs": true,
  14. // "format": "{name}: {icon}",
  15. // "format-icons": {
  16. // "1": "",
  17. // "2": "",
  18. // "3": "",
  19. // "4": "",
  20. // "5": "",
  21. // "urgent": "",
  22. // "focused": "",
  23. // "default": ""
  24. // }
  25. // },
  26. "sway/mode": {
  27. "format": "<span style=\"italic\">{}</span>"
  28. },
  29. "mpd": {
  30. "format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ",
  31. "format-disconnected": "Disconnected ",
  32. "format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
  33. "unknown-tag": "N/A",
  34. "interval": 2,
  35. "consume-icons": {
  36. "on": " "
  37. },
  38. "random-icons": {
  39. "off": "<span color=\"#f53c3c\"></span> ",
  40. "on": " "
  41. },
  42. "repeat-icons": {
  43. "on": " "
  44. },
  45. "single-icons": {
  46. "on": "1 "
  47. },
  48. "state-icons": {
  49. "paused": "",
  50. "playing": ""
  51. },
  52. "tooltip-format": "MPD (connected)",
  53. "tooltip-format-disconnected": "MPD (disconnected)"
  54. },
  55. "idle_inhibitor": {
  56. "format": "{icon}",
  57. "format-icons": {
  58. "activated": "",
  59. "deactivated": ""
  60. }
  61. },
  62. "tray": {
  63. // "icon-size": 21,
  64. "spacing": 10
  65. },
  66. "clock": {
  67. "tooltip-format": "{:%Y-%m-%d | %H:%M}",
  68. "format-alt": "{:%Y-%m-%d}"
  69. },
  70. "cpu": {
  71. "format": "{usage}% ",
  72. "tooltip": false
  73. },
  74. "memory": {
  75. "format": "{}% "
  76. },
  77. "temperature": {
  78. // "thermal-zone": 2,
  79. // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
  80. "critical-threshold": 80,
  81. // "format-critical": "{temperatureC}°C {icon}",
  82. "format": "{temperatureC}°C {icon}",
  83. "format-icons": ["", "", ""]
  84. },
  85. "backlight": {
  86. // "device": "acpi_video1",
  87. "format": "{percent}% {icon}",
  88. "format-icons": ["", ""]
  89. },
  90. "battery": {
  91. "states": {
  92. // "good": 95,
  93. "warning": 30,
  94. "critical": 15
  95. },
  96. "format": "{capacity}% {icon}",
  97. "format-charging": "{capacity}% ",
  98. "format-plugged": "{capacity}% ",
  99. "format-alt": "{time} {icon}",
  100. // "format-good": "", // An empty format will hide the module
  101. // "format-full": "",
  102. "format-icons": ["", "", "", "", ""]
  103. },
  104. "battery#bat2": {
  105. "bat": "BAT2"
  106. },
  107. "network": {
  108. // "interface": "wlp2*", // (Optional) To force the use of this interface
  109. "format-wifi": "{essid} ({signalStrength}%) ",
  110. "format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
  111. "format-linked": "{ifname} (No IP) ",
  112. "format-disconnected": "Disconnected ⚠",
  113. "format-alt": "{ifname}: {ipaddr}/{cidr}"
  114. },
  115. "pulseaudio": {
  116. // "scroll-step": 1, // %, can be a float
  117. "format": "{volume}% {icon} {format_source}",
  118. "format-bluetooth": "{volume}% {icon} {format_source}",
  119. "format-bluetooth-muted": " {icon} {format_source}",
  120. "format-muted": " {format_source}",
  121. "format-source": "{volume}% ",
  122. "format-source-muted": "",
  123. "format-icons": {
  124. "headphones": "",
  125. "handsfree": "",
  126. "headset": "",
  127. "phone": "",
  128. "portable": "",
  129. "car": "",
  130. "default": ["", "", ""]
  131. },
  132. "on-click": "pavucontrol"
  133. },
  134. "custom/media": {
  135. "format": "{icon} {}",
  136. "return-type": "json",
  137. "max-length": 40,
  138. "format-icons": {
  139. "spotify": "",
  140. "default": "🎜"
  141. },
  142. "escape": true,
  143. "exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
  144. // "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
  145. }
  146. }