155 lines
4.6 KiB
Plaintext
155 lines
4.6 KiB
Plaintext
{
|
|
"layer": "top",
|
|
"position": "top",
|
|
"height": 35,
|
|
"spacing": 4,
|
|
"margin-left": 10,
|
|
"margin-right": 10,
|
|
"margin-top": 10,
|
|
|
|
// Choose the order of the modules
|
|
"modules-left": ["hyprland/workspaces","hyprland/window"],
|
|
"modules-center": ["clock"],
|
|
"modules-right": ["pulseaudio", "backlight", "network", "battery", "cpu", "memory", "tray"],
|
|
|
|
// Modules configuration
|
|
|
|
// "hyprland/workspaces": {
|
|
// "disable-scroll": true,
|
|
// //"all-outputs": true,
|
|
// "on-click": "activate",
|
|
// "format": "{icon}",
|
|
// "format-icons": {
|
|
// "empty": "",
|
|
// //"default": "",
|
|
// "default": "",
|
|
// "active": "",
|
|
// }
|
|
// },
|
|
|
|
"hyprland/workspaces": {
|
|
"format": "{name}",
|
|
"persistent_workspaces": {
|
|
"1": [],
|
|
"2": [],
|
|
"3": [],
|
|
"4": [],
|
|
"5": []
|
|
},
|
|
"all-outputs": true,
|
|
"active-only": false,
|
|
"sort-by-number": true
|
|
},
|
|
"keyboard-state": {
|
|
"numlock": false,
|
|
"capslock": false,
|
|
"format": "{name} {icon}",
|
|
"format-icons": {
|
|
"locked": "",
|
|
"unlocked": ""
|
|
}
|
|
},
|
|
"hyprland/window": {
|
|
"max-length": 64,
|
|
"separate-outputs": true
|
|
},
|
|
|
|
"tray": {
|
|
// "icon-size": 21,
|
|
"spacing": 0
|
|
},
|
|
"clock": {
|
|
// "timezone": "America/New_York",
|
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
|
"format-alt": "{:%Y-%m-%d}"
|
|
},
|
|
"cpu": {
|
|
"format": "{usage}% ",
|
|
"tooltip": false
|
|
},
|
|
"memory": {
|
|
"format": "{}% "
|
|
},
|
|
"backlight": {
|
|
// "device": "acpi_video1",
|
|
"format": "{percent}% {icon}",
|
|
"format-icons": ["", "", "", "", "", "", "", "", ""]
|
|
},
|
|
"battery": {
|
|
"states": {
|
|
// "good": 95,
|
|
"warning": 30,
|
|
"critical": 15
|
|
},
|
|
"format": "{capacity}% {icon}",
|
|
"format-charging": "{capacity}% 🗲",
|
|
"format-plugged": "{capacity}% ",
|
|
"format-alt": "{time} {icon}",
|
|
// "format-good": "", // An empty format will hide the module
|
|
// "format-full": "",
|
|
"format-icons": ["", "", "", "", ""]
|
|
},
|
|
"battery#bat2": {
|
|
"bat": "BAT2"
|
|
},
|
|
"network": {
|
|
"interface": "wlo1", // (Optional) To force the use of this interface
|
|
"format-wifi": "{essid} ",
|
|
"format-ethernet": "{ipaddr}/{cidr} ",
|
|
"tooltip-format": "{ifname} via {gwaddr} ",
|
|
"format-linked": "{ifname} (No IP) ",
|
|
"format-disconnected": "Disconnected ⚠",
|
|
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
|
},
|
|
"pulseaudio": {
|
|
// "scroll-step": 1, // %, can be a float
|
|
"format": "{volume}% {icon}",
|
|
"format-bluetooth": "{volume}% {icon} {format_source}",
|
|
"format-bluetooth-muted": " {icon} {format_source}",
|
|
"format-muted": " {format_source}",
|
|
"format-source": "{volume}% ",
|
|
"format-source-muted": "",
|
|
"format-icons": {
|
|
"headphone": "",
|
|
"hands-free": "",
|
|
"headset": "",
|
|
"phone": "",
|
|
"portable": "",
|
|
"car": "",
|
|
"default": ["", "", ""]
|
|
},
|
|
"on-click": "pavucontrol"
|
|
},
|
|
"custom/notification": {
|
|
"tooltip": false,
|
|
"format": "{} {icon}",
|
|
"format-icons": {
|
|
"notification": "<span foreground='red'><sup></sup></span> ",
|
|
"none": "",
|
|
"dnd-notification": "<span foreground='red'><sup></sup></span> ",
|
|
"dnd-none": "",
|
|
"inhibited-notification": "<span foreground='red'><sup></sup></span> ",
|
|
"inhibited-none": "",
|
|
"dnd-inhibited-notification": "<span foreground='red'><sup></sup></span> ",
|
|
"dnd-inhibited-none": ""
|
|
},
|
|
"return-type": "json",
|
|
"exec-if": "which swaync-client",
|
|
"exec": "swaync-client -swb",
|
|
"on-click": "sleep 0.1 && swaync-client -t -sw",
|
|
"on-click-right": "swaync-client -d -sw",
|
|
"escape": true
|
|
},
|
|
"custom/updates": {
|
|
"format": "{} {icon}",
|
|
"return-type": "json",
|
|
"format-icons": {
|
|
"has-updates": "",
|
|
"updated": ""
|
|
},
|
|
"exec-if": "which waybar-updates",
|
|
"exec": "waybar-updates --interval-seconds 5 --network-interval-seconds 300"
|
|
}
|
|
}
|
|
|