config.jsonc 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. {
  2. "layer": "top",
  3. "position": "top",
  4. "height": 34,
  5. "margin-top": 10,
  6. "margin-left": 20,
  7. "margin-right": 20,
  8. "spacing": 4,
  9. "modules-left": [
  10. "hyprland/workspaces",
  11. "custom/layout"
  12. ],
  13. "modules-center": ["clock"],
  14. "modules-right": ["network#vpn", "network", "battery", "pulseaudio", "bluetooth", "custom/notification"],
  15. "custom/notification": {
  16. "tooltip": false,
  17. "format": "{icon}",
  18. "format-icons": {
  19. "notification": "<span foreground='red'><sup></sup></span>",
  20. "none": "",
  21. "dnd-notification": "<span foreground='red'><sup></sup></span>",
  22. "dnd-none": "",
  23. "inhibited-notification": "<span foreground='red'><sup></sup></span>",
  24. "inhibited-none": "",
  25. "dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>",
  26. "dnd-inhibited-none": ""
  27. },
  28. "return-type": "json",
  29. "exec-if": "which swaync-client",
  30. "exec": "swaync-client -swb",
  31. "on-click": "swaync-client -t -sw",
  32. "on-click-right": "swaync-client -d -sw",
  33. "escape": true
  34. },
  35. "hyprland/workspaces": {
  36. "format": "{id}{windows}",
  37. "format-window-separator": "",
  38. "window-rewrite-default": "·",
  39. "window-rewrite": {
  40. ".*": "·"
  41. },
  42. "on-click": "activate",
  43. "all-outputs": true,
  44. "active-only": false,
  45. "persistent-workspaces": {
  46. "*": 10
  47. },
  48. "on-scroll-up": "hyprctl dispatch workspace e+1",
  49. "on-scroll-down": "hyprctl dispatch workspace e-1"
  50. },
  51. "clock": {
  52. "format": " {:%H:%M}",
  53. "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
  54. "format-alt": " {:%A, %d %B %Y}"
  55. },
  56. "custom/layout": {
  57. "exec": "~/.config/hypr/scripts/layout-listener.sh",
  58. "return-type": "plain",
  59. "tooltip": false,
  60. "format": "{} ",
  61. "on-click": "~/.config/hypr/scripts/toggle-layout.sh"
  62. },
  63. "backlight": {
  64. "device": "intel_backlight",
  65. "format": "{icon} {percent}%",
  66. "format-icons": ["󰃞", "󰃟", "󰃠"],
  67. "on-scroll-up": "brightnessctl set 1%+",
  68. "on-scroll-down": "brightnessctl set 1%-",
  69. "min-length": 6
  70. },
  71. "battery": {
  72. "states": {
  73. "good": 95,
  74. "warning": 30,
  75. "critical": 15
  76. },
  77. "format": "{icon} {capacity}%",
  78. "format-charging": "󰂄 {capacity}%",
  79. "format-plugged": "󰂄 {capacity}%",
  80. "format-alt": "{icon} {time}",
  81. "format-icons": ["󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"]
  82. },
  83. "network": {
  84. "format-wifi": " ",
  85. "format-ethernet": "󰈀 ",
  86. "format-linked": "󰈀 (No IP)",
  87. "format-disconnected": "󰖪 ",
  88. "tooltip-format-wifi": "SSID: {essid}\nIP: {ipaddr}",
  89. "tooltip-format-ethernet": "Interface: {ifname}\nIP: {ipaddr}/{cidr}",
  90. "tooltip-format-disconnected": "Disconnected",
  91. "format-alt": " {essid} | {ipaddr}/{cidr}"
  92. },
  93. "network#vpn": {
  94. "interface": "tun*",
  95. "format-wifi": " VPN",
  96. "format-ethernet": " VPN",
  97. "format-disconnected": "",
  98. "tooltip-format": "VPN Active",
  99. "interval": 5
  100. },
  101. "pulseaudio": {
  102. "format": "{icon} {volume}%",
  103. "format-bluetooth": "󰂯 {volume}%",
  104. "format-muted": "󰝟 Muted",
  105. "format-icons": {
  106. "headphone": "",
  107. "hands-free": "",
  108. "headset": "",
  109. "phone": "",
  110. "portable": "",
  111. "car": "",
  112. "default": ["", "", ""]
  113. },
  114. "on-click": "pavucontrol"
  115. },
  116. "bluetooth": {
  117. "format": "󰂯 {status}",
  118. "format-off": "󰂯 off",
  119. "format-disabled": "󰂯 off",
  120. "format-on": "󰂯 on",
  121. "format-connected": "󰂱 {device_alias}",
  122. "format-connected-battery": "󰂱 {device_alias} {device_battery_percentage}%",
  123. "tooltip-format": "{controller_alias}\t{controller_address}\n\n{num_connections} connected",
  124. "tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{num_connections} connected\n\n{device_enumerate}",
  125. "tooltip-format-enumerate-connected": "{device_alias}\t{device_address}",
  126. "tooltip-format-enumerate-connected-battery": "{device_alias}\t{device_address}\t{device_battery_percentage}%",
  127. "on-click": "blueman-manager"
  128. }
  129. }