Advertisement
Pepppe

waybar

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