config 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. {
  2. "position": "bottom",
  3. "height": 30,
  4. "modules-left": [
  5. "custom/menu",
  6. "wlr/taskbar"
  7. ],
  8. "modules-center": [
  9. "custom/wf_recorder",
  10. "custom/screenshot"
  11. ],
  12. "modules-right": [
  13. "pulseaudio",
  14. "network",
  15. "backlight",
  16. "temperature",
  17. "custom/weather",
  18. "battery",
  19. "tray",
  20. "custom/clock",
  21. "custom/exit"
  22. ],
  23. "custom/player": {
  24. "format": " ♫ ",
  25. "on-click": "playerctl -a play-pause",
  26. "tooltip": false
  27. },
  28. "custom/menu": {
  29. "format": "  MENÜ ",
  30. "on-click": "$(dinit --get panel.menu)",
  31. "tooltip": false
  32. },
  33. "custom/exit": {
  34. "format": "  ",
  35. "on-click": "nwgbar -b 272822",
  36. "tooltip": false
  37. },
  38. "wlr/taskbar": {
  39. "format": "{icon}",
  40. "tooltip-format": "{title}",
  41. "icon-size": 24,
  42. "icon-theme": "milis-icon-theme",
  43. "on-click": "minimize-raise",
  44. "on-click-middle": "close"
  45. },
  46. "clock": {
  47. "format": "{:%d %b %a, %H:%M}",
  48. "on-click": "gsimplecal"
  49. },
  50. "cpu": {
  51. "format": " %{usage}",
  52. "tooltip": false,
  53. "on-click": "lxtask"
  54. },
  55. "memory": {
  56. "format": " %{}",
  57. "on-click": "lxtask"
  58. },
  59. "temperature": {
  60. "hwmon-path": "/sys/class/hwmon/hwmon7/temp1_input",
  61. "critical-threshold": 80,
  62. "on-click": "",
  63. "format": "{temperatureC}°C {icon}",
  64. "format-icons": [
  65. "",
  66. "",
  67. ""
  68. ]
  69. },
  70. "backlight": {
  71. "format": "{icon} %{percent}",
  72. "format-icons": [
  73. "",
  74. ""
  75. ],
  76. "on-click": "",
  77. "on-scroll-up": "light -A 5 && light -O",
  78. "on-scroll-down": "light -U 5 && light -O"
  79. },
  80. "battery": {
  81. "states": {
  82. "warning": 30,
  83. "critical": 15
  84. },
  85. "format": "{icon} %{capacity}",
  86. "format-charging": " %{capacity}",
  87. "format-plugged": " %{capacity}",
  88. "format-alt": "{icon} {time}",
  89. "format-icons": [
  90. "",
  91. "",
  92. "",
  93. "",
  94. ""
  95. ]
  96. },
  97. "network": {
  98. "format-wifi": " {essid} (%{signalStrength})",
  99. "format-ethernet": " {ifname}",
  100. "format-linked": " {ifname} (No IP)",
  101. "format-disconnected": "",
  102. "on-click": "connman-gtk"
  103. },
  104. "pulseaudio": {
  105. "format": "{icon} %{volume} {format_source}",
  106. "format-bluetooth": "{volume}% {icon} {format_source}",
  107. "format-bluetooth-muted": " {icon} {format_source}",
  108. "format-muted": " {format_source}",
  109. "format-source": " %{volume}",
  110. "format-source-muted": "",
  111. "format-icons": {
  112. "headphone": "",
  113. "hands-free": "",
  114. "headset": "",
  115. "phone": "",
  116. "portable": "",
  117. "car": "",
  118. "default": [
  119. "",
  120. "",
  121. ""
  122. ]
  123. },
  124. "on-click": "sakura -x ncpamixer"
  125. },
  126. "tray": {},
  127. "custom/wf_recorder": {
  128. "format": "{}",
  129. "interval": 1,
  130. "exec": "~/.config/waybar/wf-rec.py",
  131. "on-click": "~/.config/waybar/wf-rec.py --click",
  132. "on-click-middle": "~/.config/waybar/wf-rec.py --middle"
  133. },
  134. "custom/weather": {
  135. "format": "{}",
  136. "interval": 600,
  137. "exec": "~/.config/waybar/weather.py",
  138. "tooltip": true,
  139. "return-type": "json",
  140. "on-click": "~/.config/waybar/weather.py --girdi"
  141. },
  142. "custom/clock": {
  143. "format": "{}",
  144. "interval": 60,
  145. "exec": "date +'%d %b %a, %H:%M'",
  146. "on-click": "gsimplecal"
  147. },
  148. "custom/screenshot": {
  149. "format": "",
  150. "on-click": "$HOME/.config/swappy/area.sh"
  151. }
  152. }