diff options
Diffstat (limited to 'waybar/config.jsonc')
| -rw-r--r-- | waybar/config.jsonc | 263 |
1 files changed, 78 insertions, 185 deletions
diff --git a/waybar/config.jsonc b/waybar/config.jsonc index 4c2af10..46467c4 100644 --- a/waybar/config.jsonc +++ b/waybar/config.jsonc @@ -1,223 +1,116 @@ -// _*_ mode: jsonc _*_ { - "reload_style_on_change": true, "layer": "top", - "position": "bottom", + "position": "top", "modules-left": [ - "niri/workspaces", - "custom/uptime", - "backlight", - "group/network" + "clock", + "mpris", + "niri/window" + ], + "modules-center": [ + "custom/workspaces" ], - "modules-center": [], "modules-right": [ - "group/expand-tray", - "group/hardware", - "group/audio", - "group/powerofmachine", - "clock" + "tray", + "network", + "pulseaudio", + "bluetooth", + "memory", + "battery" ], "niri/workspaces": { - "on-click": "activate", + "current-only": true, "format": "{icon}", - "format-icons": { - "1": "1", - "2": "2", - "3": "3", - "4": "4", - "5": "5", - "6": "6", - "7": "7", - "8": "8", - "9": "9", - "10": "10" - } - }, - // module groups - "group/hardware": { - "orientation": "horizontal", - "modules": [ - "cpu", - "memory", - "temperature" - ] - }, - "group/audio": { - "orientation": "horizontal", - "modules": [ - "bluetooth", - "pulseaudio" - ] + "all-outputs": false // usually keep false so each monitor shows its own active workspace }, - "group/network": { - "orientation": "horizontal", - "modules": [ - "network", - "custom/vpn" - ] + "niri/window": { + "format": "{app_id}" }, - "group/powerofmachine": { - "orientation": "horizontal", - "modules": [ - "battery" - ] - }, - "group/expand-tray": { - "orientation": "inherit", - "drawer": { - "transition-duration": 600, - "children-class": "tray-group-item" + "mpris": { + "format": "{status_icon} {artist} - {title}", + "format-paused": "{status_icon} <i>{artist} - {title}</i>", + "player-icons": { + "default": "ā¶", + "mpv": "šµ" }, - "modules": [ - "custom/expand-icon", - "tray" - ] + "status-icons": { + "paused": "āø" + } }, - // Individual modules "clock": { - "interval": 60, - "tooltip": true, - "format": "ļ {:%R ļ³ %d/%m}", - "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>", - "format-alt": "ļ³ {:%a, %d, %b %Y}" + "format": "{:%a, %b %d %H:%M}", + "format-alt": "{:%Y-%m-%d}" }, "memory": { - "interval": 12, - "format": "īæ
{}%" - }, - "cpu": { - "interval": 5, - "format": "ļ {usage}%", - "on-click": "alacritty --class TUI.float -e btop" - }, - "temperature": { - // The thermal zone for CPU changes from time to time on MSI Laptops - "thermal-zone": 5, - "critical-threshold": 80, - "format": "ļ {temperatureC}°C" + "format": "īæ
{used}GiB" }, - "network": { - "interface": "wlan0", - "family": "ipv4", - "format": "{ifname}", - "format-wifi": "{icon} {essid}", - "format-ethernet": "ī½ {ipaddr}/<span color='#aaaaaa'>{cidr}</span>", - "format-disconnected": "ó°Ø DC'D", - "format-icons": [ - "󰤯", - "ó°¤", - "󰤢", - "󰤄", - "󰤨" - ], - "tooltip-format": "{ifname} via {gwaddr}", - "tooltip-format-wifi": "{essid} ({frequency} GHz)\nā£{bandwidthDownBytes} ā”{bandwidthUpBytes}", - "tooltip-format-ethernet": "ā£{bandwidthDownBytes} ā”{bandwidthUpBytes}", - "tooltip-format-disconnected": "Disconnected", - "interval": 5, - "on-click": "alacritty --class TUI.float -e wifitui", - "on-click-right": "rfkill toggle wlan" - }, - "backlight": { - "device": "intel_backlight", - "format": "{icon} {percent}%", - "format-icons": [ - "ī", - "ī", - "ī", - "ī", - "ī", - "ī", - "ī", - "ī", - "ī" - ] + "battery": { + "states": { + "good": 95, + "warning": 30, + "critical": 15 + }, + "format": "{icon} {capacity}%", + "format-icons": { + "default": [ + "ļ", + "ļ", + "ļ", + "ļ", + "ļ" + ], + "charging": "ļ§" + }, + "format-plugged": "ļ¦ {capacity}%" }, "bluetooth": { "format": "ļ {num_connections}", "format-disabled": "<span color='#aaaaaa'>ó°²</span>", "format-connected": "ļ {num_connections}", "tooltip-format": "Devices connected: {num_connections}\n{device_alias} at {device_battery_percentage}%", - "on-click": "alacritty --class=TUI.float -e bluetui", + "on-click": "$TERMINAL --app-id=TUI.float -e bluetui", "on-click-right": "rfkill toggle bluetooth" }, "pulseaudio": { "format": "{icon} {volume}%", - "on-click": "alacritty --class TUI.float -e wiremix", - "tooltip-format": "{desc}", - "scroll-step": 5, - "format-muted": "<span color='#aaaaaa' </span>", + "format-bluetooth": "ļ {icon} {volume}%", + "format-muted": "ļ¦", "format-icons": { + "alsa_output.pci-0000_00_1f.3.analog-stereo": "ī", + "alsa_output.pci-0000_00_1f.3.analog-stereo-muted": "ī", "headphone": "ļ„", + "hands-free": "ļ", + "headset": "ļ", + "phone": "ļ", + "phone-muted": "ī“", + "portable": "ļ", + "car": "ļ¹", "default": [ - "ļ¦", "ļ§", "ļØ" ] - } - }, - "battery": { - "format": "{capacity}% {icon}", - "format-discharging": "{icon} {capacity}%", - "format-charging": "{icon} {capacity}%", - "format-plugged": "ļ¦ {capacity}%", - "format-full": "ó°¹ {capacity}%", - "format-icons": { - "charging": [ - "ó°¢", - "ó°", - "ó°", - "ó°", - "ó°¢", - "ó°", - "ó°¢", - "ó°", - "ó°", - "ó°
" - ], - "default": [ - "ó°ŗ", - "ó°»", - "ó°¼", - "ó°½", - "ó°¾", - "ó°æ", - "ó°", - "ó°", - "ó°", - "ó°¹" - ] }, - "interval": 5, - "states": { - "warning": 20, - "critical": 10 - } + "on-click": "$TERMINAL --app-id=TUI.float -e wiremix", + "tooltip-format": "{desc}", + "scroll-step": 5 }, - // Tray - "tray": { - "icon-size": 10, - "spacing": 10 + "network": { + "interface": "wlo1", + "format": "{ifname}", + "format-wifi": "ļ« {signalStrength}%", + "format-ethernet": "ī½ {ipaddr}/{cidr}", + "format-disconnected": "ó°Ŗ", //An empty format will hide the module. + "tooltip-format": "ī½ {ifname} via {gwaddr}", + "tooltip-format-wifi": "ļ« {essid} {signalStrength}%", + "tooltip-format-ethernet": "ļ{ifname}", + "tooltip-format-disconnected": "ó°Ŗ", + "max-length": 50, + "interval": 60, + "on-click": "$TERMINAL --app-id TUI.float -e wifitui", + "on-click-right": "rfkill toggle wlan" }, - // Custom modules - "custom/vpn": { - "format": "ļ£ VPN", - "exec": "echo '{\"class\": \"connected\"}'", - "exec-if": "test -d /proc/sys/net/ipv4/conf/proton0", + "custom/workspaces": { + "exec": "~/.config/waybar/niri-workspaces", "return-type": "json", - "interval": 5 - }, - "custom/expand-icon": { - "format": "ļ ", - "tooltip": false - }, - "custom/uptime": { - "format": "{}", - "format-icon": [ - "ļ¢" - ], - "tooltip": false, - "interval": 1600, - "exec": "~/.config/waybar/scripts/uptime.sh" + "format": "{}" } } |
