// -*- mode: jsonc -*-
{
"height": 30,
"spacing": 4,
"modules-left": [
"hyprland/workspaces",
"hyprland/window"
],
"modules-center": [
"clock"
],
"modules-right": [
"custom/spotify",
"custom/weather",
"custom/screenshot",
"idle_inhibitor",
"pulseaudio",
"network",
"custom/mount-data",
"custom/mount-usb1",
"cpu",
"tray"
],
"hyprland/workspaces": {
"format": "{id}"
},
"custom/screenshot": {
"exec": "printf '{\"text\": \"Shot \", \"tooltip\": \"Area screenshot: edit in Swappy, then choose save path and filename; Esc on filename uses screenshot\"}'",
"return-type": "json",
"escape": false,
"interval": "once",
"on-click": "$HOME/.config/waybar/scripts/capture-share-shot.sh"
},
"idle_inhibitor": {
"escape": false,
"format": "{icon}",
"format-icons": {
"activated": "Awake ",
"deactivated": "Idle "
}
},
"tray": {
"spacing": 10
},
"clock": {
"escape": false,
"format": "{:%H:%M} ",
"tooltip-format": "{:%Y %B}\n{calendar}",
"format-alt": "{:%Y-%m-%d} "
},
"custom/spotify": {
"exec": "bash $HOME/.config/waybar/scripts/spotify-waybar.sh",
"return-type": "json",
"interval": 2,
"escape": false,
"on-click": "bash $HOME/.config/waybar/scripts/spotify-waybar.sh --toggle",
"on-click-right": "bash $HOME/.config/waybar/scripts/spotify-waybar.sh --stop",
"on-scroll-up": "bash $HOME/.config/waybar/scripts/spotify-waybar.sh --next",
"on-scroll-down": "bash $HOME/.config/waybar/scripts/spotify-waybar.sh --prev",
"tooltip": false
},
"custom/weather": {
"exec": "bash $HOME/.config/waybar/scripts/weather-norrkoping.sh",
"return-type": "json",
"interval": 600,
"escape": false,
"tooltip": true
},
"cpu": {
"escape": false,
"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",
"escape": false,
"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",
"escape": false,
"interval": 10,
"tooltip": true,
"on-click": "thunar /mnt/usb1"
},
"network": {
"escape": false,
"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": {
"escape": false,
"format": "{volume}% {format_source} {icon}",
"format-bluetooth": "{volume}% {format_source} {icon}",
"format-bluetooth-muted": "{format_source} {icon} ",
"format-muted": "{format_source} ",
"format-source": "{volume}% ",
"format-source-muted": "",
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
},
"on-click": "pavucontrol"
}
}