119 lines
3.6 KiB
JSON
119 lines
3.6 KiB
JSON
// -*- mode: jsonc -*-
|
|
{
|
|
"height": 30,
|
|
"spacing": 4,
|
|
"modules-left": [
|
|
"hyprland/workspaces",
|
|
"hyprland/window"
|
|
],
|
|
"modules-center": [
|
|
"clock"
|
|
],
|
|
"modules-right": [
|
|
"custom/screenshot",
|
|
"idle_inhibitor",
|
|
"pulseaudio",
|
|
"network",
|
|
"custom/mount-data",
|
|
"custom/mount-usb1",
|
|
"cpu",
|
|
"tray"
|
|
],
|
|
"hyprland/workspaces": {
|
|
"all-outputs": true,
|
|
"format": "{id} {windows}",
|
|
"format-window-separator": "",
|
|
"window-rewrite-default": "",
|
|
"window-rewrite": {
|
|
"class<firefox>": "",
|
|
"class<org\.wezfurlong\.wezterm>": "",
|
|
"class<Alacritty>": "",
|
|
"class<code|Code|codium|VSCodium>": "",
|
|
"class<thunar>": "",
|
|
"class<org\.kde\.dolphin>": "",
|
|
"class<discord>": "",
|
|
"class<vesktop>": "",
|
|
"class<spotify>": "",
|
|
"class<steam>": ""
|
|
}
|
|
},
|
|
"custom/screenshot": {
|
|
"exec": "printf '{\"text\": \"\", \"tooltip\": \"Area screenshot: edit in Swappy, copy to clipboard, save to NAS pictures if mounted\"}'",
|
|
"return-type": "json",
|
|
"interval": "once",
|
|
"on-click": "$HOME/.config/waybar/scripts/capture-share-shot.sh"
|
|
},
|
|
"idle_inhibitor": {
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"activated": "",
|
|
"deactivated": ""
|
|
}
|
|
"hyprland/window": {
|
|
"format": "{class}: {title}",
|
|
"icon": true,
|
|
"icon-size": 16,
|
|
"max-length": 80,
|
|
"separate-outputs": true,
|
|
"rewrite": {
|
|
"^(.*)$": "$1"
|
|
}
|
|
},
|
|
},
|
|
"tray": {
|
|
"spacing": 10
|
|
},
|
|
"clock": {
|
|
"format": " {:%H:%M}",
|
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
|
"format-alt": " {:%Y-%m-%d}"
|
|
},
|
|
"cpu": {
|
|
"format": " {usage}%",
|
|
"tooltip": false,
|
|
"on-click": "alacritty -e btop"
|
|
},
|
|
|
|
"custom/mount-data": {
|
|
"exec": "$HOME/.config/waybar/scripts/check-mount.sh /mnt/data data",
|
|
"return-type": "json",
|
|
"interval": 10,
|
|
"tooltip": true,
|
|
"on-click": "thunar /mnt/data"
|
|
},
|
|
"custom/mount-usb1": {
|
|
"exec": "$HOME/.config/waybar/scripts/check-mount.sh /mnt/usb1 usb1",
|
|
"return-type": "json",
|
|
"interval": 10,
|
|
"tooltip": true,
|
|
"on-click": "thunar /mnt/usb1"
|
|
},
|
|
"network": {
|
|
"format-wifi": " {essid} ({signalStrength}%)",
|
|
"format-ethernet": " {ipaddr}/{cidr}",
|
|
"tooltip-format": " {ifname} via {gwaddr}",
|
|
"format-linked": " {ifname} (No IP)",
|
|
"format-disconnected": " Disconnected",
|
|
"format-alt": " {ifname}: {ipaddr}/{cidr}",
|
|
"on-click-right": "nm-connection-editor"
|
|
},
|
|
"pulseaudio": {
|
|
"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": "pavucontrol"
|
|
}
|
|
}
|