config 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  1. {
  2. //СЛОЙ НА КОТОРОМ БУДЕН НАХОДИТСЯ WAYBAR. ПО ДЕФОЛТУ НА САМОМ ВЕРХНЕМ:
  3. // "layer": "top",
  4. //ПОЛОЖЕНИЕ ПАНЕЛИ НА ЭКРАНЕ TOP, BOTTOM, LEFT, RIGHT:
  5. // "position": "bottom",
  6. //ВЫСОТА ПАНЕЛИ:
  7. "height": 25,
  8. //ШИРИНА ПАНЕЛИ:
  9. // "width": 1280,
  10. //МОДУЛИ СЛЕВА, ПО ЦЕНТРУ, СПРАВА:
  11. "modules-left": [
  12. "sway/workspaces",
  13. "custom/right",
  14. "custom/right2",
  15. "sway/window",
  16. "custom/right",
  17. "custom/right2",
  18. "wlr/taskbar",
  19. "custom/right",
  20. "custom/right2",
  21. "custom/right",
  22. "custom/right2",
  23. "custom/right"
  24. ],
  25. "modules-center": [
  26. "custom/left",
  27. "custom/left2",
  28. "custom/left",
  29. "custom/left2",
  30. "custom/left",
  31. "custom/cmus",
  32. "custom/right",
  33. "custom/right2",
  34. "custom/right",
  35. "custom/right2",
  36. "custom/right"
  37. ],
  38. "modules-right": [
  39. "custom/left", "custom/left2", "custom/left", "custom/left2", "custom/left",
  40. "cpu",
  41. "custom/left2", "custom/left",
  42. "memory",
  43. "custom/left2", "custom/left",
  44. "tray",
  45. "custom/left2", "custom/left",
  46. "pulseaudio",
  47. "custom/lang",
  48. "custom/left2", "custom/left",
  49. "sway/language",
  50. "custom/left2", "custom/left",
  51. "clock"
  52. ],
  53. //НАСТРОЙКА МОДУЛЯ ВОРКСПЕЙСОВ:
  54. "sway/workspaces": {
  55. //ПРОКРУТКА КОЛЕСОМ МЫШИ:
  56. "disable-scroll": false,
  57. //КАКАЯ ТО ХРЕНЬ ДЛЯ НЕСКОЛЬКИХ ПАНЕЛЕЙ:
  58. "all-outputs": true,
  59. //ЧТО БУДЕТ ОТОБРАЖАТЬСЯ В НАЗАВАНИИ, ИКОНКА КАК НИЖЕ ИЛИ ИМЯ {name}:
  60. "format": "{icon}",
  61. //СОБСТВЕННО НАСТРОЙКИ ИКОНОК ДЛЯ ВОРКСПЕЙСОВ:
  62. "format-icons": {
  63. "1": "",
  64. "2": "",
  65. "3": "",
  66. "4": "",
  67. "5": "",
  68. "urgent": "",
  69. "focused": "",
  70. "default": ""
  71. }
  72. },
  73. //НАСТРОЙКА ПОВЕДЕНИЯ КНОПОК ПЕРЕКЛЮЧЕНИЯ ВОРКСПЕЙСОМ, ТРОГАТЬ ТОЛЬКО ЕСЛИ ДОФИГА УМНЫЙ:
  74. "sway/mode": {
  75. "format": "<span style=\"italic\">{}</span>"
  76. },
  77. //ОТОБРАЖЕНИЕ МОДУЛЯ MPD, ФОРМАТЫ И ИКОНКИ, ДУМАЮ САМ ДОГАДАЕШЬСЯ ЧТО ЕСТЬ ЧТО, Я ВОТ НЕ ОСИЛИЛ И ПОЛЬЗУЮСЬ CMUS:
  78. "mpd": {
  79. "format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ ",
  80. "format-disconnected": "Disconnected ",
  81. "format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
  82. "unknown-tag": "N/A",
  83. "interval": 2,
  84. "consume-icons": {
  85. "on": " "
  86. },
  87. "random-icons": {
  88. "off": "<span color=\"#f53c3c\"></span> ",
  89. "on": " "
  90. },
  91. "repeat-icons": {
  92. "on": " "
  93. },
  94. "single-icons": {
  95. "on": "1 "
  96. },
  97. "state-icons": {
  98. "paused": "",
  99. "playing": ""
  100. },
  101. "tooltip-format": "MPD (connected)",
  102. "tooltip-format-disconnected": "MPD (disconnected)"
  103. },
  104. //Я ТАК ПОНЯЛ ЧТО ЭТА ХРЕНЬ ДЛЯ БЛОКИРОВКИ МОНИТОРА:
  105. "idle_inhibitor": {
  106. "format": "{icon}",
  107. "format-icons": {
  108. "activated": "",
  109. "deactivated": ""
  110. }
  111. },
  112. //ТРЕЙ, РАЗМЕР ИКОНОК И РАСТОЯНИЕ МЕЖДУ НИМИ:
  113. "tray": {
  114. // "icon-size": 21,
  115. "spacing": 10
  116. },
  117. //ЧАСЫ, ВРЕМЕННАЯ ЗОНА, ФОРМАТ ОТОБРАЖЕНИЯ И ФОРМАТ ОТОБРАЖЕНИЯ ПОСЛЕ НАЖАТИЯ ЛКМ:
  118. "clock": {
  119. // "timezone": "America/New_York",
  120. "format": " {:%H:%M}"
  121. //"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
  122. //"format-alt": "{:%Y-%m-%d}"
  123. },
  124. //ОТОБРАЖЕНИЕ ЗАГРУЖЕННОСТИ ПРОЦЕССОРА, ФОРМАТ И ВСПЛЫВАЮЩАЯ ПОДСКАЗКА:
  125. "cpu": {
  126. "format": " {usage}%",
  127. "tooltip": false
  128. },
  129. //ОТОБРАЖЕНИЕ КОЛИЧЕСТВА ПОЖИРАЕМОЙ ПАМЯТИ:
  130. "memory": {
  131. "format": " {}%"
  132. },
  133. //ОТОБРАЖЕНИЕ ИНФЫ С ТЕМПЕРАТУРНЫХ ДАТЧИКОВ, ТАКИХ МОДУЛЕЙ МОЖНО СДЕЛАТЬ НЕСКОЛЬКО И ВЫВЕСТИ НА ПАНЕЛЬ ВСЕ ДАТЧИКИ:
  134. "temperature": {
  135. //ВЫБОР ДАТЧИКА, ПОСМОТРЕТЬ ДАТЧИКИ МОЖНО ТАК: ls /sys/class/thermal/
  136. // "thermal-zone": 2,
  137. //ПУТЬ К ДЕРИКТОРИИ УСТРОЙСТВА, МОЖЕШЬ ПОШАРИТСЯ В /sys/class/hwmon/ И НАЙТИ НУЖНОЕ.
  138. // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
  139. //КРИТИЧЕСКИЙ ТЕМПЕРАТУРНЫЙ ПОРОГ, ПОСЛЕ ПРОХОЖДЕНИЯ КОТОРОГО WAYBAR ТЕБЕ НАМЕКНЕТ ЧТО ВСЕ ПЛОХО:
  140. "critical-threshold": 80,
  141. //СОБСТВЕННО ФОРМАТ ВЫВОДА ИНВЫ О ТОМ ЧТО СКОРО ТВОЯ СИСТЕМА РЕСТАРТАНЕТ И СБРОСИТ ЧАСТОТЫ:
  142. // "format-critical": "{temperatureC}°C {icon}",
  143. //ФОРМАТ ВЫВОДА ТЕМПЕРАТУРЫ, ТЕМПЕРАТУРА, ГРАДУС, ИКОНКА.
  144. "format": "{temperatureC}°C {icon}",
  145. //ФОРМАТ ИКОНКИ ТЕМПЕРАТУРЫ, ВЫБИРАЕТСЯ В ЗАВИСИМОСТИ ОТ ТЕМПЕРАТУРЫ
  146. "format-icons": ["", "", ""]
  147. },
  148. //ВЫВОД ЯРКОСТИ ДИСПЛЕЯ, ФОРМАТ ВЫВОДА И ФОРМАТ ИКОНКИ:
  149. "backlight": {
  150. // "device": "acpi_video1",
  151. "format": "{percent}% {icon}",
  152. "format-icons": ["", ""]
  153. },
  154. //РАСКЛАДКА КЛАВИАТУРЫ:
  155. "sway/language": {
  156. "format": " {}",
  157. "tooltip": false
  158. },
  159. //ВЫВОД ЗАРЯДА БАТАРЕИ, ТУТ САМ ПОЙМЕШЬ ЧТО К ЧЕМУ, ОДНИ ФОРМАТЫ ВЫВОДА:
  160. "battery": {
  161. "states": {
  162. // "good": 95,
  163. "warning": 30,
  164. "critical": 15
  165. },
  166. "format": "{capacity}% {icon}",
  167. "format-charging": "{capacity}% ",
  168. "format-plugged": "{capacity}% ",
  169. "format-alt": "{time} {icon}",
  170. // "format-good": "", // An empty format will hide the module
  171. // "format-full": "",
  172. "format-icons": ["", "", "", "", ""]
  173. },
  174. //АККУМУЛЯТОР ДЛЯ МОНИТОРА, ТОЛЬКО ЧТО УЗНАЛ ЧТО ТАКОЕ БЫВАЕТ, КОРОЧ ЯХЗ:
  175. "battery#bat2": {
  176. "bat": "BAT2"
  177. },
  178. //ВЫВОД ИНФОРМАЦИИ О СЕТЕВЫХ ПОДКЛЮЧЕНИЯХ, ВЫБОР ИНТЕРФЕЙСА И ФОРМАТЫ ВЫВОДА:
  179. "network": {
  180. // "interface": "wlp2*",
  181. "format-wifi": "{essid} ({signalStrength}%) ",
  182. "format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
  183. "format-linked": "{ifname} (No IP) ",
  184. "format-disconnected": "Disconnected ⚠",
  185. "format-alt": "{ifname}: {ipaddr}/{cidr}"
  186. },
  187. //ВЫВОД УРОВНЯ ГРОМКОСТИ С ПУЛЬСАУДИО, КОЛИЧЕСТВО ПРОЦЕНТОВ ПРИ СКРОЛЛЕ, ФОРМАТЫ ВЫВОДА И ЧТО ЗАПУСТИТЬ ПРИ КЛИКЕ ЛКМ:
  188. "pulseaudio": {
  189. // "scroll-step": 1, // %, can be a float
  190. "format": "{icon} {volume}%",
  191. "format-bluetooth": "{volume}% {icon} {format_source}",
  192. "format-bluetooth-muted": " {icon} {format_source}",
  193. "format-muted": " {format_source}",
  194. "format-source": "{volume}% ",
  195. "format-source-muted": "",
  196. "format-icons": {
  197. "headphone": "",
  198. "hands-free": "",
  199. "headset": "",
  200. "phone": "",
  201. "portable": "",
  202. "car": "",
  203. "default": ["", "", ""]
  204. },
  205. "on-click": "pavucontrol"
  206. },
  207. //ОТОБРАЖЕНИЕ АКТИВНОГО ОКНА, ФОРМАТ, МАКСИМАЛЬНАЯ ДЛИНА, МИНИМАЛЬНАЯ ДЛИНА, ПОДЗКАЗКА ПРИ НАВЕДЕНИИ:
  208. "sway/window": {
  209. "format": "{}",
  210. "max-length": 20,
  211. "min-length": 20,
  212. "tooltip": false
  213. },
  214. //ТАСКБАР, ФОРМАТ, РАЗМЕР ИКОНОК, ТЕМА, ПОДЗКАЗКА...:
  215. "wlr/taskbar": {
  216. "format": "{icon}",
  217. "icon-size": 14,
  218. "icon-theme": "Papirus-Dark-Custom",
  219. "tooltip-format": "{title}",
  220. "on-click": "activate",
  221. "on-click-middle": "close"
  222. },
  223. //ПОДКЛЮЧЕНИЕ ДОПОЛНИТЕЛЬНЫХ МОДУЛЕЙ, ПРЕЖДЕ ЧЕМ ЧТО-ТО ГОРОДИТЬ ПОМОТРИ КАКИЕ ЕСТЬ ТУТ: https://github.com/Alexays/Waybar/wiki/Module:-Custom
  224. "custom/cmus": {
  225. "format": " {}",
  226. //"max-length": 15,
  227. "interval": 10,
  228. "exec": "cmus-remote -C \"format_print '%a - %t'\"", // artist - title
  229. "exec-if": "pgrep cmus",
  230. "on-click": "cmus-remote -u", //toggle pause
  231. "escape": true //handle markup entities
  232. }, //НА ВИКИ В МОДУЛЯХ НЕТ В МОДУЛЯХ ВОТ ЭТОЙ ЗАПЯТОЙ В КОНЦЕ, ЕСЛИ ЕЕ ТЕ БУДЕТ ТО WAYBAR НЕ ВЗЛЕТИТ!
  233. //ЭТО НУЖНО ДЛЯ ТОГО ЧТО БЫ СДЕЛАТЬ СТРЕЛОЧКИ НА ПАНЕЛИ:
  234. "custom/left": {
  235. "format": "",
  236. "tooltip": false,
  237. },
  238. "custom/left2": {
  239. "format": "",
  240. "tooltip": false,
  241. },
  242. "custom/right": {
  243. "format": "",
  244. "tooltip": false,
  245. },
  246. "custom/right2": {
  247. "format": "",
  248. "tooltip": false,
  249. },
  250. //ЧТО ТО НА ТЕХНИЧЕСКОМ, НЕ ТРОГАЙ ЭТО!
  251. "escape": true,
  252. "exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
  253. // "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
  254. }
  255. }