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.

147 lines
4.8 KiB

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": ["sway/workspaces", "sway/mode", "custom/media"],
  8. "modules-center": ["sway/window"],
  9. "modules-right": ["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. "format": "{:%Y-%m-%d | %H:%M}",
  68. "tooltip-format": "{:%Y-%m-%d | %H:%M}",
  69. "format-alt": "{:%Y-%m-%d}"
  70. },
  71. "cpu": {
  72. "format": "{usage}% ",
  73. "tooltip": false
  74. },
  75. "memory": {
  76. "format": "{}% "
  77. },
  78. "temperature": {
  79. // "thermal-zone": 2,
  80. // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
  81. "critical-threshold": 80,
  82. // "format-critical": "{temperatureC}°C {icon}",
  83. "format": "{temperatureC}°C {icon}",
  84. "format-icons": ["", "", ""]
  85. },
  86. "backlight": {
  87. // "device": "acpi_video1",
  88. "format": "{percent}% {icon}",
  89. "format-icons": ["", ""]
  90. },
  91. "battery": {
  92. "states": {
  93. // "good": 95,
  94. "warning": 30,
  95. "critical": 15
  96. },
  97. "format": "{capacity}% {icon}",
  98. "format-charging": "{capacity}% ",
  99. "format-plugged": "{capacity}% ",
  100. "format-alt": "{time} {icon}",
  101. // "format-good": "", // An empty format will hide the module
  102. // "format-full": "",
  103. "format-icons": ["", "", "", "", ""]
  104. },
  105. "battery#bat2": {
  106. "bat": "BAT2"
  107. },
  108. "network": {
  109. // "interface": "wlp2*", // (Optional) To force the use of this interface
  110. "format-wifi": "{essid} ({signalStrength}%) ",
  111. "format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
  112. "format-linked": "{ifname} (No IP) ",
  113. "format-disconnected": "Disconnected ⚠",
  114. "format-alt": "{ifname}: {ipaddr}/{cidr}"
  115. },
  116. "pulseaudio": {
  117. // "scroll-step": 1, // %, can be a float
  118. "format": "{volume}% {icon} {format_source}",
  119. "format-bluetooth": "{volume}% {icon} {format_source}",
  120. "format-bluetooth-muted": " {icon} {format_source}",
  121. "format-muted": " {format_source}",
  122. "format-source": "{volume}% ",
  123. "format-source-muted": "",
  124. "format-icons": {
  125. "headphones": "",
  126. "handsfree": "",
  127. "headset": "",
  128. "phone": "",
  129. "portable": "",
  130. "car": "",
  131. "default": ["", "", ""]
  132. },
  133. "on-click": "pavucontrol"
  134. },
  135. "custom/media": {
  136. "format": "{icon} {}",
  137. "return-type": "json",
  138. "max-length": 40,
  139. "format-icons": {
  140. "spotify": "",
  141. "default": "🎜"
  142. },
  143. "escape": true,
  144. "exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
  145. // "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
  146. }
  147. }