2023-01-10 16:40:49 +01:00

124 lines
3.1 KiB
Plaintext

// =============================================================================
//
// Waybar configuration sML (https://lacashita.com)
//
// based on configuration reference: https://github.com/Alexays/Waybar/wiki/Configuration
//
// =============================================================================
{
// -------------------------------------------------------------------------
// Global configuration
// -------------------------------------------------------------------------
"layer": "top",
// If height property would be not present, it'd be calculated dynamically
"height": 20,
"modules-left": [
"wlr/workspaces",
"sway/mode"
],
"modules-center": [
"sway/window"
],
"modules-right": [
"network",
"cpu",
"memory",
"battery", // use for compliant batteries
"tray",
"clock"
],
// -------------------------------------------------------------------------
// Modules
// -------------------------------------------------------------------------
"battery": {
"interval": 60,
"states": {
"warning": 30,
"critical": 15
},
"format-charging": " {icon} {capacity}%", // Icon: bolt
"format": "{icon} {capacity}%",
"format-icons": [
"", // Icon: battery-empty
"", // Icon: battery-quarter
"", // Icon: battery-half
"", // Icon: battery-three-quarters
"" // Icon: battery-full
],
"tooltip": true
},
"clock": {
"interval": 60,
"format": " {:%H:%M}", // Icon: calendar-alt
"tooltip": true,
"tooltip-format": "<big>{:%B %Y}</big>\n<tt>{calendar}</tt>",
},
"cpu": {
"interval": 10,
"format": " {usage}%", // Icon: microchip
"states": {
"warning": 70,
"critical": 90
},
"on-click": "swaymsg exec \"\\$term_float_landscape \\$cpu_mon\""
},
"memory": {
"interval": 10,
"format": " {}%", // Icon: memory
"states": {
"warning": 70,
"critical": 90
},
"on-click": "swaymsg exec \"\\$term_float_landscape \\$mem_mon\""
},
"network": {
"interval": 30,
"format-wifi": " {ipaddr}",
"format-ethernet": " {ifname}",
"format-disconnected": "⚠ Disconnected",
"tooltip-format": "{ifname}: {ipaddr}",
},
"sway/mode": {
"format": "<span style=\"italic\">{}</span>",
"tooltip": false
},
"sway/window": {
"format": "{}",
"max-length": 120
},
"wlr/workspaces": {
"disable-scroll": true,
"all-outputs": true,
"format": "{icon}",
"format-icons": {
"1": "",
"2": "",
"3": "",
"4": "",
"5": "",
},
"on-scroll-up": "hyprctl dispatch workspace e+1",
"on-scroll-down": "hyprctl dispatch workspace e-1",
"on-click": "activate"
},
"tray": {
"icon-size": 21,
"spacing": 5
}
}