{ // // ~~~ waybar config // // /// ~~~ bar // sizing "position": "bottom", "height": 28, // modules "modules-left": [ "sway/workspaces", "sway/window" ], "modules-right": [ "cpu", "memory", "wireplumber", "network", "custom/vpn", "bluetooth", "battery", "clock" ], // // ~~~ modules // sway workspaces "sway/workspaces": { "persistent-workspaces": { "1": [ "eDP-1" ], "2": [ "eDP-1" ], "3": [ "eDP-1" ], "4": [ "eDP-1" ], "5": [ "eDP-1" ], "6": [ "eDP-1" ], "7": [ "eDP-1" ], "8": [ "eDP-1" ], "9": [ "eDP-1" ], "10": [ "eDP-1" ], "11": [ "DP-2" ], "12": [ "DP-2" ], "13": [ "DP-2" ], "14": [ "DP-2" ], "15": [ "DP-2" ], "16": [ "DP-2" ], "17": [ "DP-2" ], "18": [ "DP-2" ], "19": [ "DP-2" ], "20": [ "DP-2" ] } }, // cpu "cpu": { "interval": 5, "format": "[ CPU: {usage}% ]" }, // memory "memory": { "interval": 15, "format": "[ MEM: {percentage}% ]", "tooltip-format": "{used}GiB used out of {total}GiB" }, // volume "wireplumber": { "max-volume": 100, "format": "[ VOL: {volume}% ]", "format-muted": "[ VOL: MUTE ]", "on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle" }, // internet "network": { "interface": "wlan0", "format": "[ NET: UNKNOWN ]", "format-wifi": "[ NET: {essid} ]", "format-linked": "[ NET: {essid} ]", "format-disconnected": "[ NET: NONE ]", "tooltip-format-wifi": "IP: {ipaddr}\nStrength: {signalStrength}%" }, // tinc "custom/vpn": { "exec": "~/scripts/sway/vpn.nu", "interval": 3 }, // bluetooth "bluetooth": { "format-off": "[ BT: 0 ]", "format-on": "[ BT: 0 ]", "format-connected": "[ BT: {num_connections} ]" }, // battery "battery": { "states": { "warning": 20, "critical": 10 }, "full-at": 95, "format": "[ BAT: {capacity}% ]", "format-charging": "[ BAT: {capacity}%+ ]", "format-warning": "[ BAT: {capacity}% ]", "format-critical": "[BAT: {capacity}% ]", "tooltip": true, "tooltip-format": "{time} remaining" }, // clock "clock": { "interval": 45, "format": "[ {:%H:%M} ]", "tooltip": true, "tooltip-format": "{:%Y-%m-%d %H:%M}" } }