config.jsonc 4.1 KB

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