Files
dev/modules/optionnals/desktop/config/etc/xdg/waybar/config.jsonc

103 lines
2.2 KiB
JSON

{
"position": "top",
"reload_style_on_change": true,
"modules-left": [
"custom/logo",
"cpu",
"memory",
"disk",
"network",
"pulseaudio",
],
"modules-center": [
"hyprland/workspaces"
],
"modules-right": [
"custom/maj",
"clock",
"tray"
],
"custom/logo": {
"format": "{icon}",
"format-icons": {
"default": "  "
}
},
"cpu": {
"format": "  {usage}% ",
"tooltip": true
},
"memory": {
"format": "  {percentage}% ",
"tooltip": true,
"tooltip-format": "asd: {used:0.2f} G / {total:0.2f} G"
},
"disk": {
"interval": 300,
"format": "  {percentage_free}% ",
"path": "/"
},
"network": {
"format-wifi": "<span size='12000'> 󰤨 </span>{essid} ",
"format-ethernet": "  {ipaddr} ",
"tooltip-format": " 󰅧 {bandwidthUpBytes} 󰅢 {bandwidthDownBytes}",
"format-linked": " 󱘖 {ifname} (No IP) ",
"format-disconnected": "  Disconnected ",
"format-alt": " 󰤨 {signalStrength}% ",
"interval": 1
},
"pulseaudio": {
"format": "{icon}{volume}% ",
"format-muted": " 󰖁 0% ",
"format-icons": {
"headphone": "  ",
"hands-free": "  ",
"headset": "  ",
"phone": "  ",
"portable": "  ",
"car": "  ",
"default": [
"  ",
"  ",
"  "
]
},
"on-click-right": "pavucontrol -t 3",
"on-click": "pactl -- set-sink-mute 0 toggle",
"tooltip": false,
"tooltip-format": "{volume}%",
"scroll-step": 5.0,
},
"hyprland/workspaces": {
"disable-scroll": false,
"all-outputs": false,
"on-click": "activate",
"persistent-workspaces": {
"HDMI-A-1": [1, 2, 3],
"HDMI-A-2": [4, 5, 6],
"eDP-1": [7, 8, 9],
},
"format": "{name}",
"format-icons": {
"default": "",
},
},
"custom/maj": {
"exec": "/etc/xdg/scripts/update.sh",
"interval": 300,
"return-type": "json",
"format": "{icon}{text}",
"format-icons": {
"default": "  "
}
},
"clock": {
"format": "  {:%a %d %H:%M} ",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
},
"tray": {
"icon-size": 18,
"spacing": 6
}
}