config_backup 5.2 KB

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