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.

161 lines
5.4 KiB

  1. {
  2. "layer": "top", // Waybar at top layer
  3. "position": "top", // Waybar position (top|bottom|left|right)
  4. "height": 34, // Waybar height (to be removed for auto height)
  5. // "width": 1280, // Waybar width
  6. "spacing": 4, // Gaps between modules (4px)
  7. // Choose the order of the modules
  8. "modules-left": ["hyprland/workspaces", "idle_inhibitor", "pulseaudio", "network", "custom/updates"],
  9. "modules-center": ["hyprland/window"],
  10. "modules-right": ["cpu", "memory", "temperature", "tray", "clock"],
  11. // Modules configuration
  12. "hyprland/workspaces": {
  13. "disable-scroll": true,
  14. "on-click": "activate",
  15. "all-outputs": false,
  16. // "format": "{name}: {icon}",
  17. "format": "{name}",
  18. "on-scroll-up": "hyprctl dispatch workspace m-1 > /dev/null",
  19. "on-scroll-down": "hyprctl dispatch workspace m+1 > /dev/null",
  20. },
  21. "keyboard-state": {
  22. "numlock": false,
  23. "capslock": false,
  24. "format": "{name} {icon}",
  25. "format-icons": {
  26. "locked": "",
  27. "unlocked": ""
  28. }
  29. },
  30. "hyprland/window": {
  31. "max-length": 50,
  32. "separate-outputs": true
  33. },
  34. "mpd": {
  35. "format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ",
  36. "format-disconnected": "Disconnected ",
  37. "format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
  38. "unknown-tag": "N/A",
  39. "interval": 2,
  40. "consume-icons": {
  41. "on": " "
  42. },
  43. "random-icons": {
  44. "off": "<span color=\"#f53c3c\"></span> ",
  45. "on": " "
  46. },
  47. "repeat-icons": {
  48. "on": " "
  49. },
  50. "single-icons": {
  51. "on": "1 "
  52. },
  53. "state-icons": {
  54. "paused": "",
  55. "playing": ""
  56. },
  57. "tooltip-format": "MPD (connected)",
  58. "tooltip-format-disconnected": "MPD (disconnected)"
  59. },
  60. "idle_inhibitor": {
  61. "format": "{icon}",
  62. "format-icons": {
  63. "activated": "",
  64. "deactivated": ""
  65. }
  66. },
  67. "tray": {
  68. "spacing": 0
  69. },
  70. "clock": {
  71. "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
  72. "format-alt": "{:%Y-%m-%d}"
  73. },
  74. "cpu": {
  75. "format": "{usage}% ",
  76. "tooltip": false
  77. },
  78. "memory": {
  79. "format": "{}% "
  80. },
  81. "temperature": {
  82. "critical-threshold": 80,
  83. "format": "{temperatureC}°C {icon}",
  84. "format-icons": ["", "", ""]
  85. },
  86. "battery": {
  87. "states": {
  88. // "good": 95,
  89. "warning": 30,
  90. "critical": 15
  91. },
  92. "format": "{capacity}% {icon}",
  93. "format-charging": "{capacity}% 🗲",
  94. "format-plugged": "{capacity}% ",
  95. "format-alt": "{time} {icon}",
  96. // "format-good": "", // An empty format will hide the module
  97. // "format-full": "",
  98. "format-icons": ["", "", "", "", ""]
  99. },
  100. "battery#bat2": {
  101. "bat": "BAT2"
  102. },
  103. "network": {
  104. // "interface": "wlan0", // (Optional) To force the use of this interface
  105. "format-wifi": "{essid} ",
  106. "format-ethernet": "{ipaddr}/{cidr} ",
  107. "tooltip-format": "{ifname} via {gwaddr} ",
  108. "format-linked": "{ifname} (No IP) ",
  109. "format-disconnected": "Disconnected ⚠",
  110. "format-alt": "{ifname}: {ipaddr}/{cidr}"
  111. },
  112. "pulseaudio": {
  113. // "scroll-step": 10, // %, can be a float
  114. "format": "{volume}%{icon} {format_source}",
  115. "format-bluetooth": "{volume}% {icon} {format_source}",
  116. "format-bluetooth-muted": " {icon} {format_source}",
  117. "format-muted": " {format_source}",
  118. "format-source": "{volume}% ",
  119. "format-source-muted": "",
  120. "format-icons": {
  121. "headphone": "",
  122. "hands-free": "",
  123. "headset": "",
  124. "phone": "",
  125. "portable": "",
  126. "car": "",
  127. "default": ["", "", ""]
  128. },
  129. "on-click": "pavucontrol"
  130. },
  131. "custom/notification": {
  132. "tooltip": false,
  133. "format": "{} {icon}",
  134. "format-icons": {
  135. "notification": "<span foreground='red'><sup></sup></span> ",
  136. "none": "",
  137. "dnd-notification": "<span foreground='red'><sup></sup></span> ",
  138. "dnd-none": "",
  139. "inhibited-notification": "<span foreground='red'><sup></sup></span> ",
  140. "inhibited-none": "",
  141. "dnd-inhibited-notification": "<span foreground='red'><sup></sup></span> ",
  142. "dnd-inhibited-none": ""
  143. },
  144. "return-type": "json",
  145. "exec-if": "which swaync-client",
  146. "exec": "swaync-client -swb",
  147. "on-click": "sleep 0.1 && swaync-client -t -sw",
  148. "on-click-right": "swaync-client -d -sw",
  149. "escape": true
  150. },
  151. "custom/updates": {
  152. "format": "{} {icon}",
  153. "return-type": "json",
  154. "format-icons": {
  155. "has-updates": "󱍷",
  156. "updated": "󰂪"
  157. },
  158. "exec-if": "which waybar-module-pacman-updates",
  159. "exec": "waybar-module-pacman-updates"
  160. }
  161. }