Arch 2025 rice. Also contains a newly inspired neovim config.
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.

218 lines
5.2 KiB

2 weeks ago
  1. // -*- mode: jsonc -*-
  2. {
  3. // "layer": "top", // Waybar at top layer
  4. // "position": "bottom", // Waybar position (top|bottom|left|right)
  5. "height": 40, // Waybar height (to be removed for auto height)
  6. // "width": 1280, // Waybar width
  7. "spacing": 4, // Gaps between modules (4px)
  8. "margin-top": 2,
  9. "margin-left": 20,
  10. "margin-right": 20,
  11. // Choose the order of the modules
  12. "modules-left": [
  13. "hyprland/workspaces",
  14. "hyprland/window"
  15. ],
  16. "modules-center": [
  17. ],
  18. "modules-right": [
  19. //"mpd",
  20. "wireplumber",
  21. "cpu",
  22. //"memory",
  23. //"temperature",
  24. "backlight",
  25. //"keyboard-state",
  26. "battery",
  27. "network",
  28. "clock"
  29. //"tray",
  30. //"custom/power"
  31. ],
  32. "hyprland/workspaces": {
  33. "format": "{icon}",
  34. "format-icons": {
  35. "1": "",
  36. "2": "",
  37. "3": "",
  38. "4": "󰀑",
  39. "5": "󰒋",
  40. "6": "♪",
  41. "7": "",
  42. "8": "󰙯",
  43. "9": ""
  44. },
  45. "persistent-workspaces": {
  46. "*": 9
  47. }
  48. },
  49. "hyprland/window": {
  50. "format": "👉 {}",
  51. "rewrite": {
  52. "(.*) — Mozilla Firefox": "🌎 $1",
  53. "(.*) - fish": "> [$1]"
  54. },
  55. "separate-outputs": true
  56. },
  57. "keyboard-state": {
  58. "numlock": true,
  59. "capslock": true,
  60. "format": "{name} {icon}",
  61. "format-icons": {
  62. "locked": "",
  63. "unlocked": ""
  64. }
  65. },
  66. "mpd": {
  67. "format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ",
  68. "format-disconnected": "Disconnected ",
  69. "format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
  70. "unknown-tag": "N/A",
  71. "interval": 5,
  72. "consume-icons": {
  73. "on": " "
  74. },
  75. "random-icons": {
  76. "off": "<span color=\"#f53c3c\"></span> ",
  77. "on": " "
  78. },
  79. "repeat-icons": {
  80. "on": " "
  81. },
  82. "single-icons": {
  83. "on": "1 "
  84. },
  85. "state-icons": {
  86. "paused": "",
  87. "playing": ""
  88. },
  89. "tooltip-format": "MPD (connected)",
  90. "tooltip-format-disconnected": "MPD (disconnected)"
  91. },
  92. "idle_inhibitor": {
  93. "format": "{icon}",
  94. "format-icons": {
  95. "activated": "",
  96. "deactivated": ""
  97. }
  98. },
  99. "tray": {
  100. // "icon-size": 21,
  101. "spacing": 10
  102. },
  103. "clock": {
  104. // "timezone": "America/New_York",
  105. "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
  106. "format-alt": "{:%Y-%m-%d}"
  107. },
  108. "cpu": {
  109. "format": "{usage}% ",
  110. "tooltip": false
  111. },
  112. "memory": {
  113. "format": "{}% "
  114. },
  115. "temperature": {
  116. // "thermal-zone": 2,
  117. // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
  118. "critical-threshold": 80,
  119. // "format-critical": "{temperatureC}°C {icon}",
  120. "format": "{temperatureC}°C {icon}",
  121. "format-icons": [
  122. "",
  123. "",
  124. ""
  125. ]
  126. },
  127. "backlight": {
  128. // "device": "acpi_video1",
  129. "format": "{percent}% {icon}",
  130. "format-icons": [
  131. "",
  132. "",
  133. "",
  134. "",
  135. "",
  136. "",
  137. "",
  138. "",
  139. ""
  140. ]
  141. },
  142. "battery": {
  143. "states": {
  144. // "good": 95,
  145. "warning": 30,
  146. "critical": 15
  147. },
  148. "format": "{capacity}% {icon}",
  149. "format-full": "{capacity}% {icon}",
  150. "format-charging": "{capacity}% ",
  151. "format-plugged": "{capacity}% ",
  152. "format-alt": "{time} {icon}",
  153. // "format-good": "", // An empty format will hide the module
  154. // "format-full": "",
  155. "format-icons": [
  156. "",
  157. "",
  158. "",
  159. "",
  160. ""
  161. ],
  162. "interval": 2
  163. },
  164. "power-profiles-daemon": {
  165. "format": "{icon}",
  166. "tooltip-format": "Power profile: {profile}\nDriver: {driver}",
  167. "tooltip": true,
  168. "format-icons": {
  169. "default": "",
  170. "performance": "",
  171. "balanced": "",
  172. "power-saver": ""
  173. }
  174. },
  175. "network": {
  176. // "interface": "wlp2*", // (Optional) To force the use of this interface
  177. "format-wifi": "{essid} ({signalStrength}%) ",
  178. "format-ethernet": "{ipaddr}/{cidr} ",
  179. "tooltip-format": "{ifname} via {gwaddr} ",
  180. "format-linked": "{ifname} (No IP) ",
  181. "format-disconnected": "Disconnected ⚠",
  182. "format-alt": "{ifname}: {ipaddr}/{cidr}"
  183. },
  184. "wireplumber": {
  185. "format": "{volume}% {icon}",
  186. "format-muted": "muted ",
  187. "on-click": "helvum",
  188. "format-icons": [
  189. "",
  190. "",
  191. ""
  192. ]
  193. },
  194. "custom/media": {
  195. "format": "{icon} {}",
  196. "return-type": "json",
  197. "max-length": 40,
  198. "format-icons": {
  199. "spotify": "",
  200. "default": "🎜"
  201. },
  202. "escape": true,
  203. "exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
  204. // "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
  205. },
  206. "custom/power": {
  207. "format": "⏻ ",
  208. "tooltip": false,
  209. "menu": "on-click",
  210. "menu-file": "$HOME/.config/waybar/power_menu.xml", // Menu file in resources folder
  211. "menu-actions": {
  212. "shutdown": "shutdown",
  213. "reboot": "reboot",
  214. "suspend": "systemctl suspend",
  215. "hibernate": "systemctl hibernate"
  216. }
  217. }
  218. }