1
1
mirror of https://github.com/rywng/dotfiles.git synced 2024-10-30 23:51:51 +08:00
dotfiles/.config/waybar/config

100 lines
2.6 KiB
Plaintext
Raw Normal View History

2022-06-25 21:26:38 +08:00
{
"layer": "top",
"modules-left": [
2023-10-10 21:24:00 +08:00
"hyprland/workspaces"
2022-06-25 21:26:38 +08:00
],
"fixed-center": false,
"modules-center": [
2023-10-10 21:24:00 +08:00
"hyprland/window"
2022-06-25 21:26:38 +08:00
],
"modules-right": [
"tray",
"custom/notification",
"custom/player",
"cpu",
"memory",
"network",
"battery",
"clock"
],
2023-10-10 21:24:00 +08:00
"hyprland/workspaces": {
2023-11-15 11:25:03 +08:00
"on-scroll-up": "hyprctl dispatch workspace e-1",
"on-scroll-down": "hyprctl dispatch workspace e+1",
"show_special": true,
"on-click": "activate",
"persistent_workspaces": {
"9": ["HDMI-A-1"]
}
2023-10-10 21:24:00 +08:00
},
"hyprland/window": {
"max-length": 50,
"separate-outputs": true
2022-06-25 21:26:38 +08:00
},
"tray": {
"spacing": 10
},
"cpu": {
"format": " {load}",
"format-alt": " {usage}% @ {avg_frequency}GHz"
2022-06-25 21:26:38 +08:00
},
"memory": {
2023-07-16 09:49:32 +08:00
"format": "󰍛 {used:0.1f}G / {total:0.1f}G",
"format-alt": "󰓡 Swap: {swapUsed:0.1f}G / {swapTotal:0.1f}G"
2022-06-25 21:26:38 +08:00
},
"network": {
"format-wifi": " {essid} ({signalStrength}%)",
2023-07-16 09:49:32 +08:00
"format-ethernet": "󰈀 {ifname}",
"format-linked": " {ifname}",
2023-07-16 09:49:32 +08:00
"format-disconnected": "󰌙 Disconnected",
"format-alt": "󰩟 {ifname}: {ipaddr}/{cidr}",
"tooltip-format": "{ifname} via {gwaddr}"
2022-06-25 21:26:38 +08:00
},
"battery": {
"states": {
2022-11-30 14:10:00 +08:00
"good": 75,
"warning": 15,
"critical": 5
2022-06-25 21:26:38 +08:00
},
"format": "{icon} {capacity}%",
2023-07-16 09:49:32 +08:00
"format-charging": "🗲 {capacity}%",
2022-06-25 21:26:38 +08:00
"format-plugged": " {capacity}%",
"format-alt": "{icon} ETA: {time}",
2022-06-25 21:26:38 +08:00
"format-icons": [
"",
"",
"",
"",
""
]
},
"clock": {
2023-07-16 09:49:32 +08:00
"format": "{:󰅐 %H:%M\t %m-%d}",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
2022-06-25 21:26:38 +08:00
},
"custom/notification": {
"tooltip": true,
2022-06-25 21:26:38 +08:00
"format": "{icon}",
"format-icons": {
"notification": " <span foreground='red'><sup></sup></span> New notifications",
2022-06-25 21:26:38 +08:00
"none": " No notifications",
"dnd-notification": " DND on",
"dnd-none": " DND on"
2022-06-25 21:26:38 +08:00
},
"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
},
"custom/player": {
2023-07-16 09:49:32 +08:00
"format": "󰎈 {}",
2022-06-25 21:26:38 +08:00
"return-type": "json",
"exec": "playerctl -a metadata --format '{\"text\": \"{{uc(playerName)}}: {{artist}} - {{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{markup_escape(title)}}\", \"class\": \"{{status}}\"}' -F",
2023-12-07 11:31:31 +08:00
"max-length": 50,
"on-click-middle": "playerctl play-pause",
"on-click-right": "plaerctl next",
"on-click-left": "playerctl previous"
2022-06-25 21:26:38 +08:00
}
}