{
"height": 30,
"spacing": 0,
"layer": "top",
"modules-left": ["sway/workspaces", "sway/mode", "hyprland/workspaces", "hyprland/window", "mpris"],
"modules-center": [],
"modules-right": ["tray", "idle_inhibitor", "network#vpnovpn", "network#vpnwg", "network#e", "network#wl", "network", "cpu", "memory", "pulseaudio", "battery", "power-profiles-daemon", "clock"],
"sway/workspaces": {
"disable-scroll": true,
"all-outputs": false,
"format": "{name}",
},
"power-profiles-daemon": {
"format": "{icon}",
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
"tooltip": true,
"format-icons": {
"default": " ",
"performance": " ",
"balanced": "",
"power-saver": " "
}
},
"hyprland/workspaces": {
"disable-scroll": true,
"all-outputs": false,
"format": "{name}",
},
"hyprland/window": {
"separate-outputs": true,
},
"tray": {
"spacing": 10
},
"clock": {
"tooltip-format": "{:%Y %B}\n{calendar}",
"format": "{:%d %b %H:%M:%OS}",
"format-alt": "{:%Y-%m-%d %H:%M:%OS}",
"interval": 1
},
"battery": {
"interval": 1,
"states": {
"full": 100,
"normal": 99,
"low": 20,
"warning": 10,
"critical": 5,
},
"format": "{icon} {capacity}%",
"format-alt": "{icon} {capacity}% ({power:0.1f} W)",
"design-capacity": false,
"format-charging": "{icon} {capacity}% ",
"format-charging-full": " {capacity}% ",
"format-icons": ["", "", "", "", "", "", "", "", "", "", ""],
"tooltip-format": "{timeTo} ({power} W)"
},
"backlight": {
"format": "{icon} {percent}%",
"format-icons": [" ", " "],
"on-scroll-up": "brightnessctl set +5",
"on-scroll-down": "brightnessctl set 5-"
},
"cpu": {
"format": " {usage}%",
"tooltip": true
},
"memory": {
"format": " {percentage}%",
"format-alt": " {used}/{total} GiB",
"states": {
"high": 80
},
"tooltip": true
},
"network": {
"format-disconnected": " Disconnected",
"format": "",
"on-click-right": "alacritty -e /usr/bin/nmtui",
},
"network#e": {
"interface": "e*",
"format": " {ipaddr}",
"tooltip-format": "{ipaddr}: {ifname} via {gwaddr}",
"format-linked": " {ifname} (No IP)",
"format-alt": " {ifname}: {ipaddr}/{cidr}",
"on-click-right": "alacritty -e /usr/bin/nmtui",
"format-disconnected": "",
},
"network#wl": {
"interface": "wlp1s0",
"format": " {essid} ({signalStrength}%)",
"tooltip-format": "{ipaddr}: {ifname} via {gwaddr}",
"format-linked": " {ifname} (No IP)",
"format-alt": " {ifname}: {ipaddr}/{cidr}",
"on-click-right": "alacritty -e /bin/bash -c \"/usr/bin/sleep 0.5 && /usr/bin/nmtui\"",
"format-disconnected": "",
"format-disabled": "",
},
"network#vpnovpn": {
"interface": "tun0",
"format": "",
"format-alt": "{ifname}: {ipaddr}/{cidr}",
"format-linked": "",
"format-disconnected": "",
"format-disabled": "",
},
"network#vpnwg": {
"interface": "wg*",
"format": " {ifname}",
"format-alt": " {ifname}: {ipaddr}/{cidr}",
"format-linked": "",
"format-disconnected": "",
"format-disabled": "",
},
"pulseaudio": {
"format": "{icon} {volume}%",
"format-bluetooth": " {volume}%",
"format-bluetooth-muted": " 0%",
"format-muted": " ",
// "format": "{icon} {volume}% {format_source}",
// "format-bluetooth": " {volume}% {format_source}",
// "format-bluetooth-muted": " 0% {format_source}",
// "format-muted": " {format_source}",
"format-source": " {volume}%",
"format-source-muted": " 0%",
"format-icons": {
"headphone": " ",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": " ",
"default": [" ", " ", " "]
},
"states": {
"normal": 100,
"warning": 1000
},
"on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle",
"on-click-right": "pavucontrol",
"ignored-sinks": ["Easy Effects Sink"],
"scroll-step": 0.5
},
"mpris": {
"format": " {player_icon} {artist} - {title} ",
"format-paused": " {status_icon}{player_icon} {artist} - {title} ",
"player-icons": {
"default": " ",
"spotify": " ",
},
"status-icons": {
"paused": "⏸ "
},
"ignored-players": ["firefox"]
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"deactivated": " ",
"activated": " "
}
},
"custom/idle-inhibitor": {
"exec": "~/bin/get-inhibit-idle-status.sh",
"exec-on-event": true,
"interval": "once",
"return-type": "json",
"on-click": "~/bin/inhibit-idle.sh",
"format": " {icon} ",
"format-icons": {
"running": " ",
"suspended": " ",
"stopped": " "
}
}
}