config.jsonc 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. // -*- mode: jsonc -*-
  2. {
  3. // "layer": "top", // Waybar at top layer
  4. // "position": "bottom", // Waybar position (top|bottom|left|right)
  5. //"height": 30, // Waybar height (to be removed for auto height)
  6. "height": 15, // Waybar height (to be removed for auto height)
  7. // "width": 1280, // Waybar width
  8. //"spacing": 4, // Gaps between modules (4px)
  9. "spacing": 0, // Gaps between modules (4px)
  10. // Choose the order of the modules
  11. "modules-left": [
  12. "sway/workspaces",
  13. "sway/mode",
  14. "sway/scratchpad",
  15. "custom/media"
  16. ],
  17. "modules-center": [
  18. "sway/window"
  19. ],
  20. "modules-right": [
  21. //"custom/left-arrow-light",
  22. //"custom/left-arrow-dark",
  23. "mpd",
  24. "idle_inhibitor",
  25. //"custom/left-arrow-light",
  26. //"custom/left-arrow-dark",
  27. "custom/wvkbd",
  28. //"custom/left-arrow-light",
  29. //"custom/left-arrow-dark",
  30. "pulseaudio",
  31. //"custom/left-arrow-light",
  32. //"custom/left-arrow-dark",
  33. //"network",
  34. "power-profiles-daemon",
  35. //"custom/left-arrow-light",
  36. //"custom/left-arrow-dark",
  37. "cpu",
  38. //"custom/left-arrow-light",
  39. //"custom/left-arrow-dark",
  40. "memory",
  41. //"custom/left-arrow-light",
  42. //"custom/left-arrow-dark",
  43. "temperature",
  44. //"custom/left-arrow-light",
  45. //"custom/left-arrow-dark",
  46. "backlight",
  47. //"custom/left-arrow-light",
  48. //"custom/left-arrow-dark",
  49. //"keyboard-state",
  50. "battery",
  51. //"custom/left-arrow-light",
  52. //"custom/left-arrow-dark",
  53. //"battery#bat2",
  54. "tray",
  55. //"custom/left-arrow-light",
  56. //"custom/left-arrow-dark",
  57. "clock",
  58. //"custom/left-arrow-light",
  59. //"custom/left-arrow-dark",
  60. "custom/power"
  61. ],
  62. //Modules configuration
  63. "sway/workspaces": {
  64. "disable-scroll": true,
  65. "all-outputs": true,
  66. "warp-on-scroll": false,
  67. "format": "{name} {icon}",
  68. "format-icons": {
  69. "1": "",
  70. "2": "",
  71. //"3": "",
  72. "3": "",
  73. //"4": "",
  74. //"5": "",
  75. "urgent": "",
  76. //"focused": "",
  77. //"default": ""
  78. "default": ""
  79. }
  80. },
  81. "custom/left-arrow-dark": {
  82. "format": "",
  83. "tooltip": false
  84. },
  85. "custom/left-arrow-light": {
  86. "format": "",
  87. "tooltip": false
  88. },
  89. "custom/right-arrow-dark": {
  90. "format": "",
  91. "tooltip": false
  92. },
  93. "custom/right-arrow-light": {
  94. "format": "",
  95. "tooltip": false
  96. },
  97. //"keyboard-state": {
  98. //"numlock": true,
  99. //"capslock": true,
  100. //"format": "{name} {icon}",
  101. //"format-icons": {
  102. //"locked": "",
  103. //"unlocked": ""
  104. //}
  105. //},
  106. "custom/wvkbd": {
  107. "format": "{text}  ",
  108. "on-click": "pkill wvkbd-mobintl || wvkbd-mobintl",
  109. "tooltip": true,
  110. "tooltip-format": "Toggle wvkbd"
  111. },
  112. "sway/mode": {
  113. "format": " <span style=\"italic\">{}</span>"
  114. },
  115. "sway/scratchpad": {
  116. "format": "{icon} {count}",
  117. "show-empty": false,
  118. "format-icons": ["", ""],
  119. "tooltip": true,
  120. "tooltip-format": "{app}: {title}"
  121. },
  122. "mpd": {
  123. "format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ",
  124. "format-disconnected": "Disconnected ",
  125. "format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
  126. "unknown-tag": "N/A",
  127. "interval": 5,
  128. "consume-icons": {
  129. "on": " "
  130. },
  131. "random-icons": {
  132. "off": "<span color=\"#f53c3c\"></span> ",
  133. "on": " "
  134. },
  135. "repeat-icons": {
  136. "on": " "
  137. },
  138. "single-icons": {
  139. "on": "1 "
  140. },
  141. "state-icons": {
  142. "paused": "",
  143. "playing": ""
  144. },
  145. "tooltip-format": "MPD (connected)",
  146. "tooltip-format-disconnected": "MPD (disconnected)"
  147. },
  148. "idle_inhibitor": {
  149. "format": "{icon}",
  150. "format-icons": {
  151. "activated": "",
  152. "deactivated": ""
  153. }
  154. },
  155. "tray": {
  156. // "icon-size": 21,
  157. //"spacing": 10,
  158. "spacing": 5,
  159. // "icons": {
  160. // "blueman": "bluetooth",
  161. // "TelegramDesktop": "$HOME/.local/share/icons/hicolor/16x16/apps/telegram.png"
  162. // }
  163. },
  164. "clock": {
  165. // "timezone": "America/New_York",
  166. "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
  167. "format-alt": "{:%Y-%m-%d}"
  168. },
  169. "cpu": {
  170. //"format": "{usage}% ",
  171. "format": "{usage}% 󰍛",
  172. "tooltip": false
  173. },
  174. "memory": {
  175. //"format": "{}% "
  176. "format": "{}% "
  177. },
  178. "temperature": {
  179. // "thermal-zone": 2,
  180. // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
  181. "critical-threshold": 80,
  182. // "format-critical": "{temperatureC}°C {icon}",
  183. "format": "{temperatureC}°C {icon}",
  184. "format-icons": ["", "", ""]
  185. },
  186. "backlight": {
  187. // "device": "acpi_video1",
  188. "format": "{percent}% {icon}",
  189. //"format-icons": ["", "", "", "", "", "", "", "", ""]
  190. "format-icons": ["󰫃", "󰫄", "󰫅", "󰫆", "󰫇", "󰫈"]
  191. },
  192. "battery": {
  193. "states": {
  194. // "good": 95,
  195. "warning": 30,
  196. "critical": 15
  197. },
  198. "format": "{capacity}% {icon}",
  199. "format-full": "{capacity}% {icon}",
  200. "format-charging": "{capacity}% ",
  201. "format-plugged": "{capacity}% ",
  202. "format-alt": "{time} {icon}",
  203. // "format-good": "", // An empty format will hide the module
  204. // "format-full": "",
  205. //"format-icons": ["", "", "", "", ""]
  206. "format-icons": ["󰂎", "󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"]
  207. },
  208. //"battery#bat2": {
  209. //"bat": "BAT2"
  210. //},
  211. "power-profiles-daemon": {
  212. "format": "{icon}",
  213. "tooltip-format": "Power profile: {profile}\nDriver: {driver}",
  214. "tooltip": true,
  215. "format-icons": {
  216. "default": "",
  217. "performance": "",
  218. "balanced": "",
  219. "power-saver": ""
  220. }
  221. },
  222. //"network": {
  223. //// "interface": "wlp2*", // (Optional) To force the use of this interface
  224. //"format-wifi": "{essid} ({signalStrength}%) ",
  225. //"format-ethernet": "{ipaddr}/{cidr} ",
  226. //"tooltip-format": "{ifname} via {gwaddr} ",
  227. //"format-linked": "{ifname} (No IP) ",
  228. //"format-disconnected": "Disconnected ⚠",
  229. //"format-alt": "{ifname}: {ipaddr}/{cidr}"
  230. //},
  231. "pulseaudio": {
  232. // "scroll-step": 1, // %, can be a float
  233. "format": "{volume}% {icon} {format_source}",
  234. "format-bluetooth": "{volume}% {icon} {format_source}",
  235. "format-bluetooth-muted": " {icon} {format_source}",
  236. "format-muted": " {format_source}",
  237. "format-source": "{volume}% ",
  238. "format-source-muted": "",
  239. "format-icons": {
  240. "headphone": "",
  241. "hands-free": "",
  242. "headset": "",
  243. "phone": "",
  244. "portable": "",
  245. "car": "",
  246. "default": ["", "", ""]
  247. },
  248. "on-click": "pavucontrol"
  249. },
  250. "custom/media": {
  251. "format": "{icon} {text}",
  252. "return-type": "json",
  253. "max-length": 40,
  254. "format-icons": {
  255. "spotify": "",
  256. "default": "🎜"
  257. },
  258. "escape": true,
  259. "exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
  260. // "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
  261. },
  262. "custom/power": {
  263. "format" : " ⏻ ",
  264. "tooltip": false,
  265. "menu": "on-click",
  266. "menu-file": "$HOME/.config/waybar/power_menu.xml", // Menu file in resources folder
  267. "menu-actions": {
  268. "shutdown": "shutdown -h now",
  269. "reboot": "reboot",
  270. "suspend": "systemctl suspend",
  271. "hibernate": "systemctl hibernate"
  272. }
  273. }
  274. }