From a92a6fe86a8115433fa1a8393157f0fad091d2b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 17 Apr 2024 10:02:19 +0200 Subject: waybar: reformat --- config/waybar/config.jsonc | 237 +++++++++++++++++++++++---------------------- 1 file changed, 123 insertions(+), 114 deletions(-) (limited to 'config/waybar') diff --git a/config/waybar/config.jsonc b/config/waybar/config.jsonc index 5726dd0..4d921a3 100644 --- a/config/waybar/config.jsonc +++ b/config/waybar/config.jsonc @@ -1,119 +1,128 @@ { - // TODO gpu - "ipc": true, - "reload_style_on_change": true, -"modules-left": ["sway/language", "sway/workspaces", "sway/mode", "privacy", "systemd-failed-units"], - "modules-center": ["group/clock", "custom/email","mpd"], - "modules-right": ["wireplumber", "cpu", "memory", "disk#root", "disk#home", "network", "group/hardware", "tray"], - "group/clock": { - "orientation": "horizontal", - "modules": [ - "clock", "idle_inhibitor" - ], - "drawer": { } - }, - "group/hardware": { - "orientation": "horizontal", - "modules": [ - //"battery", "backlight", "bluetooth", - "temperature" - ], - "drawer": { } - }, + "ipc": true, + "reload_style_on_change": true, + "modules-left": [ + "sway/language", + "sway/workspaces", + "sway/mode", + "privacy", + "systemd-failed-units" + ], + "modules-center": [ + "group/clock", + "custom/email", + "mpd" + ], + "modules-right": [ + "wireplumber", + "cpu", + "memory", + "temperature", + "disk#root", + "disk#home", + "network", + "group/hardware", + "tray" + ], - "cpu": { - "interval": 2, - "format": "{usage}% " - }, - "memory": { - "interval": 10, - "format": "{used}/{total}GiB " - }, - "disk#root": { - "format": "/ {free}", - "path": "/" - }, - "disk#home": { - "format": "/home2 {free}", - "path": "/home2" - }, - "clock": { - "tooltip-format": "{:%Y %B}\n{calendar}", - "format": "{:%F %T}", - "format-alt": "{:%F %T}", - "interval": 1 - }, - "idle_inhibitor": { - "format": "{icon}", - "format-icons": { - "activated": "󰔡", - "deactivated": "󰔢" - } - }, - "wireplumber": { - "format": "{volume}% {icon}", - "format-muted": "Muted 󰓄", - "format-icons": ["󰓃", "", ""], - "on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle" - }, + "group/clock": { + "orientation": "horizontal", + "modules": [ + "clock", + "idle_inhibitor" + ], + "drawer": {} + }, + "group/hardware": { + "orientation": "horizontal", + "modules": [ + "battery", + "backlight", + "bluetooth" + ], + "drawer": {} + }, - "network": { - "format": "󰈀 {ipaddr}/{cidr} ⇅{bandwidthTotalBytes}", - "format-wifi": " {essid}({signalStrength}%) {ipaddr}/{cidr} ⇅{bandwidthTotalBytes}", - "tooltip-format": "{ifname} via {gwaddr} ↑{bandwidthUpBytes} ↓{bandwidthDownBytes}", - "interval": 1 - }, - - "battery": { - "format": "{capacity}% {icon}", - "format-icons": ["", "", "", "", ""] - }, - "temperature": { - "hwmon-path": "/sys/class/hwmon/hwmon1/temp1_input", - "critical-threshold": 80, - "format-critical": "{temperatureC}°C ", - "format": "{temperatureC}°C " - }, - "bluetooth": { - "format": " {status}", - "format-disabled": "", // an empty format will hide the module - "format-connected": " {num_connections} connected", - "tooltip-format": "{controller_alias}\t{controller_address}", - "tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{device_enumerate}", - "tooltip-format-enumerate-connected": "{device_alias}\t{device_address}" - }, - - "mpd": { - "format-stopped": "", - "format-paused": "{album} - {artist} - {title}", - "on-click": "mpc toggle >/dev/null", - "on-click-right": "mpc stop >/dev/null", - "on-click-backward": "mpc prev >/dev/null", - "on-click-forward": "mpc next >/dev/null" - }, - "privacy": { - "icon-spacing": 4, - "icon-size": 12, - "transition-duration": 250, - "modules": [ - { - "type": "screenshare", - "tooltip": true, - "tooltip-icon-size": 24 - }, - { - "type": "audio-in", - "tooltip": true, - "tooltip-icon-size": 24 - } - ] - }, - - "custom/email": { - "exec": "~/.config/waybar/email.sh", - "interval": 30, - "signal": 13 - } -} + "cpu": { + "interval": 2, + "format": "{usage}% " + }, + "memory": { + "interval": 10, + "format": "{used}/{total}GiB " + }, + "disk#root": { + "format": "/ {free}", + "path": "/" + }, + "disk#home": { + "format": "/home2 {free}", + "path": "/home2" + }, + "clock": { + "tooltip-format": "{:%Y %B}\n{calendar}", + "format": "{:%F %T}", + "format-alt": "{:%F %T}", + "interval": 1 + }, + "idle_inhibitor": { + "format": "{icon}", + "format-icons": { + "activated": "󰔡", + "deactivated": "󰔢" + } + }, + "wireplumber": { + "format": "{volume}% {icon}", + "format-muted": "Muted 󰓄", + "format-icons": [ "󰓃"], + "on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle" + }, + "network": { + "format": "󰈀 {ipaddr}/{cidr} ⇅{bandwidthTotalBytes}", + "format-wifi": " {essid}({signalStrength}%) {ipaddr}/{cidr} ⇅{bandwidthTotalBytes}", + "tooltip-format": "{ifname} via {gwaddr} ↑{bandwidthUpBytes} ↓{bandwidthDownBytes}", + "interval": 1 + }, + "battery": { + "format": "{capacity}% {icon}", + "format-icons": ["", "", "", "", "" ] + }, + "temperature": { + "hwmon-path": "/sys/class/hwmon/hwmon1/temp1_input", + "critical-threshold": 85, + "format-critical": "{temperatureC}°C ", + "format": "{temperatureC}°C " + }, + "bluetooth": { + "format": " {status}", + "format-disabled": "", + "format-connected": " {num_connections} connected", + "tooltip-format": "{controller_alias}\t{controller_address}", + "tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{device_enumerate}", + "tooltip-format-enumerate-connected": "{device_alias}\t{device_address}" + }, + "mpd": { + "format-stopped": "", + "format-paused": "{album} - {artist} - {title}", + "on-click": "mpc toggle >/dev/null", + "on-click-right": "mpc stop >/dev/null", + "on-click-backward": "mpc prev >/dev/null", + "on-click-forward": "mpc next >/dev/null" + }, + "privacy": { + "icon-spacing": 4, + "icon-size": 12, + "transition-duration": 250, + "modules": [ + {"type": "screenshare", "tooltip": true, "tooltip-icon-size": 24}, + {"type": "audio-in", "tooltip": true, "tooltip-icon-size": 24} + ] + }, + "custom/email": { + "exec": "~/.config/waybar/email.sh", + "interval": 30, + "signal": 13 + } } -- cgit v1.2.3