137 lines
3.1 KiB
JSON
137 lines
3.1 KiB
JSON
{
|
|
"reload_style_on_change": true,
|
|
"layer": "top",
|
|
"position": "top",
|
|
"margin-top": 6,
|
|
"margin-right": 8,
|
|
"margin-left": 8,
|
|
"spacing": 6,
|
|
|
|
"modules-left": ["custom/power-menu", "niri/workspaces", "group/player"],
|
|
"modules-center": ["clock"],
|
|
"modules-right": [
|
|
"tray",
|
|
"niri/language",
|
|
"cpu",
|
|
"memory",
|
|
"group/system-indicators"
|
|
],
|
|
|
|
"custom/power-menu": {
|
|
"format": " ",
|
|
"tooltip": false
|
|
},
|
|
|
|
"niri/workspaces": {
|
|
"on-click": "activate",
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"default": ""
|
|
}
|
|
},
|
|
|
|
// Player
|
|
"group/player": {
|
|
"orientation": "horizontal",
|
|
"modules": [
|
|
"custom/player-icon",
|
|
"mpris",
|
|
"custom/player-prev",
|
|
"custom/player-play-pause",
|
|
"custom/player-next"
|
|
]
|
|
},
|
|
"custom/player-icon": {
|
|
"format": " "
|
|
},
|
|
"custom/player-prev": {
|
|
"format": "",
|
|
"on-click": "playerctl previous",
|
|
"tooltip": false,
|
|
"interval": 0
|
|
},
|
|
"custom/player-play-pause": {
|
|
"exec": "~/.config/waybar/player-play-pause.sh",
|
|
"on-click": "playerctl play-pause",
|
|
"tooltip": false,
|
|
"interval": 0,
|
|
"return-type": "json"
|
|
},
|
|
"custom/player-next": {
|
|
"format": "",
|
|
"on-click": "playerctl next",
|
|
"tooltip": false,
|
|
"interval": 0
|
|
},
|
|
"mpris": {
|
|
"format": "{artist} {title}",
|
|
"max-length": 32,
|
|
"tooltip": false
|
|
},
|
|
|
|
|
|
|
|
"clock": {
|
|
"format": "{:L%R %a %d}",
|
|
"tooltip-format": "<tt><small>{calendar}</small></tt>",
|
|
"calendar": {
|
|
"mode" : "month",
|
|
"weeks-pos" : "",
|
|
"on-scroll" : 1,
|
|
"format": {
|
|
"months": "<span color='#2e3440'><b>{}</b></span>",
|
|
"days": "<span color='#2e3440'><b>{}</b></span>",
|
|
"weekdays": "<span color='#4c566a'><b>{}</b></span>",
|
|
"today": "<span color='#5e81ac'><b><u>{}</u></b></span>"
|
|
}
|
|
}
|
|
},
|
|
|
|
"tray": {
|
|
"icon-size": 14,
|
|
"spacing": 10
|
|
},
|
|
"niri/language": {
|
|
"format": " {short}"
|
|
},
|
|
"cpu": {
|
|
"format": " {usage}%",
|
|
"on-click": "alacritty -e btop",
|
|
"tooltip": false
|
|
},
|
|
"memory": {
|
|
"format": " {percentage}%",
|
|
"on-click": "alacritty -e btop",
|
|
"tooltip": false
|
|
},
|
|
|
|
// System Indicators
|
|
"group/system-indicators": {
|
|
"orientation": "horizontal",
|
|
"modules": ["network", "wireplumber"]
|
|
},
|
|
"network": {
|
|
"format-icons": ["", "", "", "", ""],
|
|
"format": "{icon}",
|
|
"format-wifi": "{icon}",
|
|
"tooltip-format-wifi": "{essid}\n⇣{bandwidthDownBytes}\n⇡{bandwidthUpBytes}",
|
|
"format-ethernet": "",
|
|
"tooltip-format-ethernet": "{ifname}: {ipaddr}/{cidr}",
|
|
"format-disconnected": "",
|
|
"tooltip-format-disconnected": "Нет подключения",
|
|
"interval": 3,
|
|
"on-click": "kitty --class waybar -e impala -m station"
|
|
},
|
|
"wireplumber": {
|
|
"scroll-step": 5,
|
|
"format": "{icon}",
|
|
"format-muted": "",
|
|
"format-icons": {
|
|
"default": ["", "", ""]
|
|
},
|
|
"tooltip": false,
|
|
"on-click": "kitty --class waybar -e wiremix"
|
|
}
|
|
|
|
}
|