diff options
Diffstat (limited to '.config/waybar/config.jsonc')
| -rw-r--r-- | .config/waybar/config.jsonc | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/.config/waybar/config.jsonc b/.config/waybar/config.jsonc new file mode 100644 index 0000000..dab8552 --- /dev/null +++ b/.config/waybar/config.jsonc @@ -0,0 +1,95 @@ +{ + "layer": "top", + "position": "top", + + "modules-left": [ + "sway/workspaces", + "network", + "custom/vpn" + ], + "modules-center": [], + "modules-right": [ + "tray", + "pulseaudio", + "bluetooth", + "battery", + "clock" + ], + + "sway/workspaces": { + "all-outputs": true, + "format": "{name}" + }, + + "clock": { + "format": "{:%a, %b %H:%M}", + "interval": 60, + "tooltip-format": "<big>{:%B %Y}</big>\n<tt>{calendar}</tt>" + }, + + "tray": { + "icon-size": 14, + "spacing": 0 + }, + + "battery": { + "interval": 60, + "max-length": 25, + "states": { + "good": 95, + "warning": 30, + "critical": 15 + }, + "format": "BAT: {capacity}%", + "format-icons": { + "charging": "<span color='#ffff00'>PWR: {capacity}%</span>" + }, + "format-plugged": "PLG: {capacity}%" + }, + + "bluetooth": { + "format": "BT: {num_connections}", + "format-disabled": "<span color='#aaaaaa'>BT: DC'D</span>", + "format-connected": "BT: {num_connections}", + "tooltip-format": "Devices connected: {num_connections}\n{device_alias} at {device_battery_percentage}%", + "on-click": "kitty --app-id=TUI.float -e bluetui", + "on-click-right": "rfkill toggle bluetooth" + }, + + "pulseaudio": { + "format": "{icon} <span color='#aaaaaa'>{volume}</span>", + "format-bluetooth": "BT: {icon} {volume}", + "format-muted": "X MUTED", + "format-icons": [ + "+--", + "++-", + "+++" + ], + "on-click": "pavucontrol-qt", + "tooltip-format": "{desc}", + "scroll-step": 5 + }, + + "network": { + "interface": "wlo1", + "format": "{ifname}", + "format-wifi": "WiFi: {essid} <span color='#aaaaaa'>{signalStrength}%</span>", + "format-ethernet": "Eth: {ipaddr}/<span color='#aaaaaa'>{cidr}</span>", + "format-disconnected": "DC'D", + "tooltip-format-wifi": "{essid} ({signalStrength}%)", + "tooltip-format-ethernet": "{ifname} via {gwaddr}", + "tooltip-format-disconnected": "DC'D", + "max-length": 50, + "interval": 60, + "on-click": "kitty --app-id TUI.float -e wifitui", + "on-click-right": "rfkill toggle wlan" + }, + + "custom/vpn": { + "format": "VPN", + "exec": "echo '{\"class\": \"connected\"}'", + "exec-if": "test -d /proc/sys/net/ipv4/conf/proton0", + "return-type": "json", + "interval": 5 + }, +} |
