config 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. {
  2. "layer": "top",
  3. "position": "top",
  4. "height": 45,
  5. "spacing": 5,
  6. "margin-bottom": -11,
  7. "modules-left": [
  8. "wlr/workspaces"
  9. ],
  10. "modules-right": [
  11. "cpu",
  12. "memory",
  13. "temperature",
  14. "pulseaudio",
  15. "custom/weather",
  16. "clock"
  17. ],
  18. "modules-center": [
  19. ],
  20. "custom/weather": {
  21. "return-type": "json",
  22. "exec": "$HOME/.config/waybar/run.sh",
  23. "escape": true
  24. },
  25. "keyboard-state": {
  26. "numlock": true,
  27. "capslock": true,
  28. "format": "{name} {icon}",
  29. "format-icons": {
  30. "locked": "",
  31. "unlocked": ""
  32. }
  33. },
  34. "wlr/workspaces": {
  35. "format": "{icon}",
  36. "format-active": " {icon} ",
  37. "on-click": "activate"
  38. },
  39. "sway/mode": {
  40. "format": "<span style=\"italic\">{}</span>"
  41. },
  42. "idle_inhibitor": {
  43. "format": "{icon}",
  44. "format-icons": {
  45. "activated": "",
  46. "deactivated": ""
  47. }
  48. },
  49. "tray": {
  50. "spacing": 10
  51. },
  52. "clock": {
  53. "tooltip-format": "<big>{:%Y %B}</big>",
  54. "interval": 60,
  55. "format": "{: %H:%M  %d/%m/%y}",
  56. "max-length": 25
  57. },
  58. "cpu": {
  59. "interval": "15",
  60. "format": " {usage}%",
  61. "max-length": 10
  62. },
  63. "memory": {
  64. "interval": 30,
  65. "format": " {}%",
  66. "max-length": 10
  67. },
  68. "temperature": {
  69. "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
  70. "critical-threshold": 80,
  71. "format-critical": " {temperatureC} °C",
  72. "format": " {temperatureC} °C",
  73. "interval": 2
  74. },
  75. "backlight": {
  76. "format": "{percent}% {icon}",
  77. "format-icons": [
  78. "",
  79. "",
  80. "",
  81. "",
  82. "",
  83. "",
  84. "",
  85. "",
  86. ""
  87. ]
  88. },
  89. "battery": {
  90. "states": {
  91. "warning": 50,
  92. "critical": 20
  93. },
  94. "format": "{icon}",
  95. "format-charging": "",
  96. "format-plugged": "",
  97. "format-icons": [
  98. "",
  99. "",
  100. "",
  101. "",
  102. ""
  103. ]
  104. },
  105. "battery#bat2": {
  106. "bat": "BAT2"
  107. },
  108. "network": {
  109. "format-wifi": "",
  110. "format-ethernet": "",
  111. "tooltip-format": "via {gwaddr} {ifname}",
  112. "format-linked": "",
  113. "format-disconnected": "wifi",
  114. "format-alt": " "
  115. },
  116. "pulseaudio": {
  117. "tooltip": false,
  118. "scroll-step": 5,
  119. "format": "{icon} {volume}%",
  120. "format-muted": "  ",
  121. "on-click":"pactl set-sink-mute @DEFAULT_SINK@ toggle",
  122. "format-icons": {
  123. "default": ["", "", ""]
  124. }
  125. },
  126. "custom/media": {
  127. "format": "{icon} {}",
  128. "return-type": "json",
  129. "max-length": 40,
  130. "format-icons": {
  131. "spotify": "",
  132. "default": "🎜"
  133. },
  134. "escape": true,
  135. "exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null"
  136. }
  137. }