215 lines
7 KiB
Text
215 lines
7 KiB
Text
{
|
|
"layer": "bottom", // (top|bottom|overlay)
|
|
"position": "top", // (top|bottom|left|right)
|
|
"height": 20, // leave blank for a dynamic value
|
|
// "width": 1280, // leave blank for a dynamic value
|
|
"spacing": 0, // Gaps between modules
|
|
"fixed-center": false,
|
|
// Choose the order of the modules
|
|
"modules-left": ["hyprland/workspaces", "custom/arrow8"],
|
|
"modules-center": ["hyprland/window"],
|
|
"modules-right": [ "custom/arrow0", "tray", "custom/notification", "idle_inhibitor", "custom/arrow1", "cpu", "custom/arrow2", "memory", "custom/arrow3", "temperature", "custom/arrow4", "custom/storage", "custom/arrow5", "network", "custom/arrow6", "bluetooth", "battery", "wireplumber", "custom/arrow7", "clock","custom/power"],
|
|
// Module Config
|
|
"hyprland/workspaces": {
|
|
"format": "{id}",
|
|
"smooth-scrolling-threshold": 1.0,
|
|
"on-scroll-up": "hyprctl dispatch workspace r+1",
|
|
"on-scroll-down": "hyprctl dispatch workspace r-1",
|
|
"on-click": "activate"
|
|
},
|
|
"hyprland/window": {
|
|
"max-length": 200,
|
|
"separate-outputs": true
|
|
},
|
|
"tray": {
|
|
"icon-size": 16,
|
|
"spacing": 4
|
|
},
|
|
"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": "swaync-client -t -sw",
|
|
"on-click-right": "swaync-client -d -sw",
|
|
"escape": true
|
|
},
|
|
"idle_inhibitor": {
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"activated": "",
|
|
"deactivated": ""
|
|
}
|
|
},
|
|
"cpu": {
|
|
"format": " {max_frequency}GHz | {usage}%" ,
|
|
},
|
|
"memory": {
|
|
"format": " {}%"
|
|
},
|
|
"temperature": {
|
|
"interval": 4,
|
|
"critical-threshold": 80,
|
|
// "format-critical": "{temperatureC}°C {icon}",
|
|
"format": "{icon}{temperatureC}°C",
|
|
"format-icons": ["", "", ""],
|
|
"tooltip": false,
|
|
"max-length": 6,
|
|
"min-length": 6,
|
|
"on-click": "xsensors"
|
|
},
|
|
"custom/storage": {
|
|
"format": " {}",
|
|
"format-alt": "{percentage}% ",
|
|
"format-alt-click": "click-right",
|
|
"return-type": "json",
|
|
"interval": 60,
|
|
"exec": "~/.config/waybar/modules/storage.sh"
|
|
},
|
|
"network": {
|
|
// "interface": "wlp2*", // (Optional) To force the use of this interface
|
|
"format-ethernet": " {bandwidthUpBytes} {bandwidthDownBytes}",
|
|
"format-wifi": " {bandwidthUpBytes} {bandwidthDownBytes}",
|
|
"tooltip-format": "[{ipaddr}/{cidr}] {ifname} via {gwaddr}",
|
|
"tooltip-format-wifi": "{essid} {frequency}MHz\nStrength: {signaldBm}dBm ({signalStrength}%)\n[{ipaddr}/{cidr}] {ifname} via {gwaddr}",
|
|
"format-linked": " {ifname} (No IP)",
|
|
"format-disconnected": "⚠ Disconnected",
|
|
"interval": 10,
|
|
"on-click": "nm-connection-editor",
|
|
"on-click-right": "rfkill toggle wlan"
|
|
},
|
|
"battery": {
|
|
"interval": 2,
|
|
"states": {
|
|
"good": 85,
|
|
"warning": 30,
|
|
"critical": 15
|
|
},
|
|
"format": "{icon} {capacity}%",
|
|
"format-charging": " {capacity}%",
|
|
"format-plugged": " {capacity}%",
|
|
"format-icons": [
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
""
|
|
]
|
|
},
|
|
"bluetooth": {
|
|
// "controller": "controller1", // specify the alias of the controller if there are more than 1 on the system
|
|
"format-on": "",
|
|
"format-off": "",
|
|
"format-disabled": "", // an empty format will hide the module
|
|
"format-connected": " {num_connections}",
|
|
"tooltip-format": "{controller_alias}\t[{controller_address}]",
|
|
"tooltip-format-connected": "{controller_alias}\t[{controller_address}]\n\n{device_enumerate}",
|
|
"tooltip-format-enumerate-connected": "{device_alias}\t[{device_address}]",
|
|
"tooltip-format-enumerate-connected-battery": "{device_alias}\t {device_battery_percentage}%\t[{device_address}]",
|
|
"on-click": "blueman-manager",
|
|
"on-click-right": "rfkill toggle bluetooth"
|
|
},
|
|
"wireplumber": {
|
|
"format": "{icon} {volume}%",
|
|
"format-muted": " MUTE",
|
|
"on-click": "pavucontrol",
|
|
"format-icons": ["", "", ""]
|
|
},
|
|
"clock": {
|
|
"format": " {:%I:%M %p}",
|
|
"tooltip-format": "<tt>{calendar}</tt>",
|
|
"format-alt": " {:%a, %d %b, W%V %Y} ",
|
|
"calendar": {
|
|
"mode" : "month",
|
|
"weeks-pos" : "right",
|
|
"format": {
|
|
"months": "<span color='#0883ff'><b>{}</b></span>",
|
|
"days": "<span color='#8308ff'><b>{}</b></span>",
|
|
"weeks": "<span color='#08ff83'><b>W{}</b></span>",
|
|
"weekdays": "<span color='#ff8308'><b>{}</b></span>",
|
|
"today": "<span color='#ff0883'><b><u>{}</u></b></span>"
|
|
}
|
|
}
|
|
},
|
|
"custom/power": {
|
|
"format": "",
|
|
"tooltip": false,
|
|
"on-click": "wlogout"
|
|
},
|
|
// Separators
|
|
"custom/arrow0": {
|
|
"format": "",
|
|
"tooltip": false
|
|
},
|
|
"custom/arrow1": {
|
|
"format": "",
|
|
"tooltip": false
|
|
},
|
|
"custom/arrow2": {
|
|
"format": "",
|
|
"tooltip": false
|
|
},
|
|
"custom/arrow3": {
|
|
"format": "",
|
|
"tooltip": false
|
|
},
|
|
"custom/arrow4": {
|
|
"format": "",
|
|
"tooltip": false
|
|
},
|
|
"custom/arrow5": {
|
|
"format": "",
|
|
"tooltip": false
|
|
},
|
|
"custom/arrow6": {
|
|
"format": "",
|
|
"tooltip": false
|
|
},
|
|
"custom/arrow7": {
|
|
"format": "",
|
|
"tooltip": false
|
|
},
|
|
"custom/arrow8": {
|
|
"format": "",
|
|
"tooltip": false
|
|
}
|
|
// Unused modules
|
|
// "keyboard-state": {
|
|
// "numlock": true,
|
|
// "capslock": true,
|
|
// "format": "{name} {icon}",
|
|
// "format-icons": {
|
|
// "locked": "",
|
|
// "unlocked": ""
|
|
// }
|
|
// },
|
|
// "disk": {
|
|
// "format": " {percentage_used}%",
|
|
// "tooltip-format": "{used} of {total} on {path}",
|
|
// "path": "/"
|
|
// },
|
|
// "mpris": {
|
|
// "format": "{player_icon} {artist} - {title}",
|
|
// "format-paused": "{status_icon} {artist} - {title}",
|
|
// "player-icons": {
|
|
// "default": "⏵",
|
|
// "mpv": ""
|
|
// },
|
|
// "status-icons": {
|
|
// "paused": "⏯"
|
|
// },
|
|
// "ignored-players": ["firefox"]
|
|
// },
|
|
}
|
|
|