271 lines
8.6 KiB
Text
271 lines
8.6 KiB
Text
{
|
|
"layer": "bottom", // (top|bottom|overlay)
|
|
|
|
"position": "top", // (top|bottom|left|right)
|
|
|
|
"height": 16, // leave blank for a dynamic value
|
|
|
|
"spacing": 0, // Gaps between modules
|
|
|
|
"fixed-center": false,
|
|
|
|
"modules-left": [
|
|
"hyprland/workspaces",
|
|
"custom/arrow8"
|
|
],
|
|
"modules-center": [
|
|
"hyprland/window"
|
|
],
|
|
"modules-right": [
|
|
"custom/arrow0",
|
|
"custom/swaync",
|
|
"idle_inhibitor",
|
|
"custom/arrow1",
|
|
"cpu",
|
|
"custom/arrow2",
|
|
"memory",
|
|
"custom/arrow3",
|
|
"temperature#cpu",
|
|
"temperature#gpu",
|
|
"custom/arrow4",
|
|
"custom/storage",
|
|
"custom/arrow5",
|
|
"network",
|
|
"custom/arrow6",
|
|
"bluetooth",
|
|
"battery",
|
|
"pulseaudio",
|
|
"custom/arrow7",
|
|
"tray",
|
|
"clock",
|
|
"custom/power"
|
|
],
|
|
|
|
|
|
// Module Config
|
|
"hyprland/workspaces": {
|
|
"format": "{id}",
|
|
"smooth-scrolling-threshold": 1.0,
|
|
"on-scroll-up": "hyprctl dispatch workspace m-1",
|
|
"on-scroll-down": "hyprctl dispatch workspace m+1",
|
|
"on-click": "activate"
|
|
},
|
|
|
|
"hyprland/window": {
|
|
"max-length": 200,
|
|
"separate-outputs": true
|
|
},
|
|
|
|
"tray": {
|
|
"icon-size": 15,
|
|
"spacing": 4
|
|
},
|
|
|
|
"custom/swaync": {
|
|
"tooltip": false,
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"notification": "<span foreground='red'> </span>",
|
|
"none": " ",
|
|
"dnd-notification": "<span foreground='red'> </span>",
|
|
"dnd-none": " ",
|
|
"inhibited-notification": "<span foreground='red'> </span>",
|
|
"inhibited-none": " ",
|
|
"dnd-inhibited-notification": "<span foreground='red'> </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": " {}%",
|
|
"on-click": "missioncenter"
|
|
},
|
|
|
|
"temperature#gpu": {
|
|
"hwmon-path-abs": "/sys/devices/pci0000:00/0000:00:03.1/0000:05:00.0/0000:06:00.0/0000:07:00.0/hwmon",
|
|
"input-filename": "temp2_input",
|
|
"critical-threshold": 110,
|
|
"interval": 5,
|
|
"format": "{icon} {temperatureC}°C",
|
|
"format-icons": [
|
|
"", // Icon: temperature-empty
|
|
"", // Icon: temperature-quarter
|
|
"", // Icon: temperature-half
|
|
"", // Icon: temperature-three-quarters
|
|
"" // Icon: temperature-full
|
|
],
|
|
"tooltip": true
|
|
},
|
|
|
|
"temperature#cpu": {
|
|
"hwmon-path-abs": "/sys/devices/pci0000:00/0000:00:18.3/hwmon/",
|
|
"input-filename": "temp1_input",
|
|
"critical-threshold": 90,
|
|
"interval": 5,
|
|
"format": "{icon} {temperatureC}°C",
|
|
"format-icons": [
|
|
"", // Icon: temperature-empty
|
|
"", // Icon: temperature-quarter
|
|
"", // Icon: temperature-half
|
|
"", // Icon: temperature-three-quarters
|
|
"" // Icon: temperature-full
|
|
],
|
|
"tooltip": true,
|
|
"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": "pulsecontrol",
|
|
"format-icons": ["", "", ""]
|
|
},
|
|
|
|
"pulseaudio": {
|
|
// "scroll-step": 1, // %, can be a float
|
|
"format": " {icon} {volume}% {format_source}",
|
|
"format-bluetooth": "{icon} {volume}% {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": "pulsecontrol"
|
|
},
|
|
|
|
"clock": {
|
|
"format": " {:%H:%M %Z}",
|
|
"tooltip-format": "<big>{:%B %d %Y}</big>\n<tt>{calendar}</tt>",
|
|
"format-alt": " {:%a, %d %b, W%V %Y} ",
|
|
"calendar": {
|
|
"mode" : "month",
|
|
"weeks-pos" : "right",
|
|
"format": {
|
|
"months": "<span color='#475060'><b>{}</b></span>",
|
|
"days": "<span color='#ecc6d9'><b>{}</b></span>",
|
|
"weeks": "<span color='#99ffdd'><b>W{}</b></span>",
|
|
"weekdays": "<span color='#ffcc66'><b>{}</b></span>",
|
|
"today": "<span color='#ff6699'><b><u>{}</u></b></span>"
|
|
}
|
|
},
|
|
"on-click-right": "gsimplecal"
|
|
},
|
|
|
|
"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"]
|
|
// },
|
|
}
|