diff options
| author | Autumn <git@autumnfo.rest> | 2026-05-16 07:11:06 +0100 |
|---|---|---|
| committer | Autumn <git@autumnfo.rest> | 2026-05-16 07:11:06 +0100 |
| commit | 1eea2a62d9f2b6207733db920a08b055c90a5685 (patch) | |
| tree | 8c3996c59641a2cd4d2b31a5cbe15b3bea9c6aa3 /src/waybar/020_config.jsonc | |
| parent | 67f3a0ccc8432df83be732103f6eedec9736f2f7 (diff) | |
Diffstat (limited to 'src/waybar/020_config.jsonc')
| -rw-r--r-- | src/waybar/020_config.jsonc | 121 |
1 files changed, 121 insertions, 0 deletions
diff --git a/src/waybar/020_config.jsonc b/src/waybar/020_config.jsonc new file mode 100644 index 0000000..967c256 --- /dev/null +++ b/src/waybar/020_config.jsonc @@ -0,0 +1,121 @@ +{ + // + // ~~~ 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: <span color='#eb4056'>MUTE</span> ]", + + "on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle" + }, + + // internet + "network": { + "interface": "wlan0", + + "format": "[ NET: <span color='#fad075'>UNKNOWN</span> ]", + "format-wifi": "[ NET: {essid} ]", + "format-linked": "[ NET: <span color='#fad075'>{essid}</span> ]", + "format-disconnected": "[ NET: <span color='#eb4056'>NONE</span> ]", + + "tooltip-format-wifi": "IP: {ipaddr}\nStrength: {signalStrength}%" + }, + + // tinc + "custom/vpn": { + "exec": "~/scripts/sway/vpn.nu", + "interval": 3 + }, + + // bluetooth + "bluetooth": { + "format-off": "[ BT: <span color='#f7768e'>0</span> ]", + "format-on": "[ BT: 0 ]", + "format-connected": "[ BT: <span color='#7aa2f7'>{num_connections}</span> ]" + }, + + // battery + "battery": { + "states": { + "warning": 20, + "critical": 10 + }, + "full-at": 95, + + "format": "[ BAT: {capacity}% ]", + "format-charging": "[ BAT: <span color='#9ece6a'>{capacity}%+</span> ]", + "format-warning": "[ BAT: <span color='#e0af68'>{capacity}%</span> ]", + "format-critical": "[BAT: <span color='#f7768e'>{capacity}%</span> ]", + + "tooltip": true, + "tooltip-format": "{time} remaining" + }, + + // clock + "clock": { + "interval": 45, + + "format": "[ {:%H:%M} ]", + "tooltip": true, + "tooltip-format": "{:%Y-%m-%d %H:%M}" + } +} |
