dots/waybar/config
2023-12-24 17:32:03 +10:00

168 lines
4.5 KiB
Plaintext

{
"layer": "top", // Waybar at top layer
// "position": "bottom", // Waybar position (top|bottom|left|right)
"height": 25, // Waybar height (to be removed for auto height)
// "width": 1280, // Waybar width
// Choose the order of the modules
"modules-left": [
"custom/fedora",
"cpu",
"memory",
"hyprland/workspaces",
"tray"
],
"modules-center": [
"hyprland/window"
],
// "modules-right": ["mpd", "idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "sway/language", "battery", "clock", "tray"],
"modules-right": [
"network",
"wireplumber",
"backlight",
"battery",
"clock"
],
"hyprland/workspaces": {
"active-only": true,
"format": "{icon}",
"format-icons": {
"1": "1",
"2": "2",
"3": "3",
"4": "4",
"5": "5",
"default": ""
},
"window-rewrite-default": "",
"window-rewrite": {
"firefox": "",
"alacritty": "",
"code": "󰨞"
},
"persistent-workspaces": {
"*": 5
}
},
"mpd": {
"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ ",
"format-disconnected": "Disconnected ",
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
"unknown-tag": "N/A",
"interval": 2,
"consume-icons": {
"on": " "
},
"random-icons": {
"off": "<span color=\"#f53c3c\"></span> ",
"on": " "
},
"repeat-icons": {
"on": " "
},
"single-icons": {
"on": "1 "
},
"state-icons": {
"paused": "",
"playing": ""
},
"tooltip-format": "MPD (connected)",
"tooltip-format-disconnected": "MPD (disconnected)"
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
"tray": {
// "icon-size": 21,
"spacing": 10
},
"clock": {
"format": "{:%H:%M %a %b %d}",
"tooltip": false
},
"cpu": {
"format": " {usage}%",
"tooltip": false
},
"memory": {
"format": " {}%",
"tooltip": false
},
"temperature": {
// "thermal-zone": 2,
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
"critical-threshold": 80,
// "format-critical": "{temperatureC}°C {icon}",
"format": "{icon} {temperatureC}°C",
"format-icons": [
"",
"",
"",
"",
""
],
"tooltip": false
},
"backlight": {
"device": "apple-panel-bl",
"format": "{icon} {percent}%",
"format-icons": [
""
],
"tooltip": true
},
"battery": {
"states": {
"good": 95,
"warning": 30,
"critical": 15
},
"format": "{icon} {capacity}%",
"format-charging": " {capacity}%",
"format-plugged": " {capacity}%",
// "format-discharging": " {capacity}%",
"format-alt": "{icon} {time}",
"format-icons": [
"",
"",
"",
"",
""
],
"tooltip": false
},
"network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface
"format-wifi": " {essid} ({signalStrength}%)",
"format-ethernet": " {ifname}: {ipaddr}/{cidr}",
"format-linked": " {ifname} (No IP)",
"format-disconnected": "⚠ Disconnected",
"format-alt": "{ifname}: {ipaddr}/{cidr}",
"tooltip": false
},
"wireplumber": {
// "scroll-step": 1, // %, can be a float
"format": "{icon} {volume}%",
"format-muted": "󰸈",
"format-icons": [
"",
"",
""
],
"on-click": "pavucontrol"
},
"custom/fedora": {
"format": "",
"on-click": "wlogout",
"tooltip": false
},
// "custom/notch": {
// "format": "",
// "tooltip": false
// }
}