config 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. {
  2. // НАСТРОЙКИ БАРА
  3. "layer": "top", // Слой на котором расположен вайбар
  4. "position": "bottom", // Положение бара (top|bottom|left|right)
  5. "height": 30, // Высота бара
  6. "width": 1900, // Ширина бара
  7. "margin-bottom": 10, // Отступ снизу
  8. "modules-left": ["cpu", "memory", "hyprland/window"],
  9. "modules-center": ["custom/menu", "wlr/workspaces"],
  10. "modules-right": ["custom/cmus", "tray", "pulseaudio", "clock", "custom/theme"],
  11. "wlr/workspaces": {
  12. "format": "{icon}",
  13. "on-scroll-up": "hyprctl dispatch workspace e+1",
  14. "on-scroll-down": "hyprctl dispatch workspace e-1",
  15. "on-click": "activate",
  16. "all-outputs": false,
  17. "format": "{icon}",
  18. "format-icons": {
  19. "1": "",
  20. "2": "",
  21. "3": "",
  22. "4": "",
  23. "5": "",
  24. "6": "",
  25. "urgent": "",
  26. "focused": "",
  27. "default": ""
  28. }
  29. },
  30. "sway/mode": {
  31. "format": "<span style=\"italic\">{}</span>"
  32. },
  33. "tray": {
  34. "spacing": 10,
  35. "icon-size": 15
  36. },
  37. "clock": {
  38. "format": "{:%H:%M}",
  39. "format-alt": "{:%Y-%m-%d}"
  40. },
  41. "custom/cmus": {
  42. "format": " {}",
  43. "max-length": 45,
  44. "interval": 10,
  45. "exec": "cmus-remote -C \"format_print '%F'\"",
  46. "exec-if": "pgrep cmus",
  47. "on-click": "cmus-remote -u",
  48. "on-scroll-up": "cmus-remote --next",
  49. "on-scroll-down": "cmus-remote --prev",
  50. "escape": true
  51. },
  52. "custom/weather": {
  53. "format": "{}",
  54. "exec": "~/.config/waybar/openweathermap-simple.sh",
  55. // "exec": "curl 'https://wttr.in/?format=1'",
  56. "interval": 3600
  57. },
  58. "hyprland/window": {
  59. "format": "{}",
  60. "separate-outputs": false,
  61. "max-length": 20
  62. },
  63. "hyprland/language": {
  64. "format": "{}",
  65. "format-us": "US",
  66. "format-ru": "RU",
  67. "keyboard-name": "AT Translated Set 82e38fb0"
  68. },
  69. // ЗАГРУЗКА ПРОЦА
  70. "cpu": {
  71. "format": " {usage}%",
  72. "tooltip": false
  73. },
  74. // ЗАГРУЗКА ПАМЯТИ
  75. "memory": {
  76. "format": " {}%"
  77. },
  78. // ПУЛЬСА
  79. "pulseaudio": {
  80. "scroll-step": 5,
  81. "format": "{icon} {volume}%",
  82. "format-bluetooth": "{volume}% {icon} {format_source}",
  83. "format-bluetooth-muted": " {icon} {format_source}",
  84. "format-muted": " {format_source}",
  85. "format-source": "{volume}% ",
  86. "format-source-muted": "",
  87. "format-icons": {
  88. "headphone": "",
  89. "hands-free": "",
  90. "headset": "",
  91. "phone": "",
  92. "portable": "",
  93. "car": "",
  94. "default": ["", "", ""]
  95. },
  96. "on-click": "pavucontrol"
  97. },
  98. // ЛАУНЧЕР
  99. "custom/menu": {
  100. "format": "{icon}",
  101. "format-icons": " ",
  102. "on-click": "set $menu dmenu_path | wofi --show drun -I | xargs swaymsg exec --",
  103. "escape": true
  104. },
  105. // ПЕРЕКЛЮЧАТЕЛЬ ТЕМ
  106. "custom/theme": {
  107. "format": "{icon}",
  108. "format-icons": " ",
  109. "on-click": " ",
  110. "escape": true
  111. },
  112. "custom/media": {
  113. "format": "{icon} {}",
  114. "return-type": "json",
  115. "max-length": 40,
  116. "format-icons": {
  117. "spotify": "",
  118. "default": "🎜"
  119. },
  120. "escape": true,
  121. "exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
  122. // "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
  123. }
  124. }