waybar: autoformat config

This commit is contained in:
Konstantin Koslowski 2021-05-08 22:33:06 +02:00
parent eaeed6ab5b
commit 3ddba3831d
2 changed files with 266 additions and 266 deletions

View file

@ -4,175 +4,175 @@
// red #fb4934 // red #fb4934
// green #b8bb26 // green #b8bb26
{ {
"layer": "top", "layer": "top",
"height": 25, "height": 25,
"modules-left": [ "modules-left": [
"sway/workspaces", "sway/workspaces",
"custom/separator#left" "custom/separator#left"
], ],
"modules-center": [ "modules-center": [
], ],
"modules-right": [ "modules-right": [
"custom/separator#right", "custom/separator#right",
"custom/mail", "custom/mail",
"custom/separator#right", "custom/separator#right",
"pulseaudio", "pulseaudio",
"custom/media", "custom/media",
"custom/separator#right", "custom/separator#right",
"network#wl0", "network#wl0",
"network#en0", "network#en0",
"network#vpn0", "network#vpn0",
"custom/separator#right", "custom/separator#right",
"cpu", "cpu",
"memory", "memory",
"custom/separator#right", "custom/separator#right",
"backlight", "backlight",
"custom/separator#right", "custom/separator#right",
"battery", "battery",
"custom/separator#right", "custom/separator#right",
"custom/calendar", "custom/calendar",
"clock", "clock",
"tray" "tray"
], ],
"custom/separator#left": { "custom/separator#left": {
"format": " <span foreground='#268bd2'></span> " "format": " <span foreground='#268bd2'></span> "
},
"custom/separator#right": {
"format": " <span foreground='#268bd2'></span> "
},
"custom/calendar": {
"format": "{}",
"tooltip-format": "{}",
"tooltip": true,
"return-type": "json",
"interval": 300,
"escape": false,
"exec": "$HOME/.config/sway/bin/waybar_khal.py 2> /dev/null",
"on-click": "foot -T float khal interactive"
},
"custom/mail": {
"format": "{icon} {}",
"return-type": "json",
"min-length": 15,
"max-length": 15,
"interval": 30,
"format-icons": {
"unread": " ",
"read": " "
}, },
"custom/separator#right": { "escape": true,
"format": " <span foreground='#268bd2'></span> " "exec": "$HOME/.config/sway/bin/waybar_mail 2> /dev/null"
},
"custom/media": {
"format": "{icon} {}",
"return-type": "json",
"min-length": 30,
"max-length": 40,
"format-icons": {
"chromium": " ",
"firefox": " ",
"Plexamp": " ",
"default": "♫ "
}, },
"custom/calendar": { "escape": true,
"format": "{}", "exec": "$HOME/.config/sway/bin/waybar_mediaplayer.py 2> /dev/null",
"tooltip-format": "{}", "exec-if": "pgrep plexamp"
"tooltip": true, },
"return-type": "json", "clock": {
"interval": 300, "format": "<span foreground='#ebdbb2'> </span>{:%H:%M}",
"escape": false, "on-click": "foot -T float khal interactive"
"exec": "$HOME/.config/sway/bin/waybar_khal.py 2> /dev/null", },
"on-click": "foot -T float khal interactive" "cpu": {
"format": "<span foreground='#ebdbb2'></span> {usage:3}%",
"states": {
"warning": 70,
"critical": 90
}, },
"custom/mail": { "on-click": "foot -T float bashtop"
"format": "{icon} {}", },
"return-type": "json", "memory": {
"min-length": 15, "format": "<span foreground='#ebdbb2'></span> {}%",
"max-length": 15, "states": {
"interval": 30, "warning": 70,
"format-icons": { "critical": 90
"unread": " ",
"read": " "
},
"escape": true,
"exec": "$HOME/.config/sway/bin/waybar_mail 2> /dev/null"
}, },
"custom/media": { "on-click": "foot -T float bashtop"
"format": "{icon} {}", },
"return-type": "json", "backlight": {
"min-length": 30, "format": "<span foreground='#ebdbb2'>{icon}</span> {percent:3}%",
"max-length": 40, "format-icons": [""]
"format-icons": { },
"chromium": " ", "battery": {
"firefox": " ", "bat": "BAT0",
"Plexamp": " ", "design-capacity": false,
"default": "♫ " "states": {
}, "warning": 30,
"escape": true, "critical": 15
"exec": "$HOME/.config/sway/bin/waybar_mediaplayer.py 2> /dev/null",
"exec-if": "pgrep plexamp"
}, },
"clock": { "format": "<span foreground='#ebdbb2'>{icon}</span> {capacity:3}%",
"format": "<span foreground='#ebdbb2'> </span>{:%H:%M}", "format-charging": "<span foreground='#268bd2'></span> {capacity:3}%",
"on-click": "foot -T float khal interactive" "format-icons": ["", "", "", "", ""]
},
"network#wl0": {
"interval": 2,
"interface": "wl0",
"format": "{ifname}",
"format-wifi": "<span foreground='#ebdbb2'> </span>{ifname} {essid} ({signalStrength:3}%)",
"format-ethernet": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-linked": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-disconnected": "<span foreground='#606060'></span>{ifname}",
"tooltip-format": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
"tooltip-format-linked": "{ifname} linked",
"tooltip-format-disconnected": "{ifname} disconnected",
"on-click": "foot -T float nmtui"
},
"network#en0": {
"interval": 2,
"interface": "en0",
"format": "{ifname}",
"format-wifi": "<span foreground='#ebdbb2'> </span> {essid} ({signalStrength:3}%)",
"format-ethernet": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-linked": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-disconnected": "<span foreground='#606060'></span>{ifname}",
"tooltip-format": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
"tooltip-format-linked": "{ifname} linked",
"tooltip-format-disconnected": "{ifname} disconnected",
"on-click": "foot -T float nmtui"
},
"network#vpn0": {
"interval": 2,
"interface": "vpn0",
"format": "{ifname}",
"format-wifi": "<span foreground='#ebdbb2'> </span> {essid} ({signalStrength:3}%)",
"format-ethernet": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-linked": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-disconnected": "<span foreground='#606060'></span>{ifname}",
"tooltip-format": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
"tooltip-format-linked": "{ifname} linked",
"tooltip-format-disconnected": "{ifname} disconnected",
"on-click": "foot -T float nmtui"
},
"pulseaudio": {
"format": "<span foreground='#ebdbb2'>{icon} </span>{volume}% {format_source}",
"format-bluetooth": "<span foreground='#ebdbb2'>{icon} </span>{volume}% {format_source}",
"format-bluetooth-muted": "<span foreground='#fb4934'> {icon} </span>{format_source}",
"format-muted": "<span foreground='#fb4934'> </span>{format_source}",
"format-source": "<span foreground='#b8bb26'> </span>{volume}%",
"format-source-muted": "<span foreground='#fb4934'> </span>",
"format-icons": {
"headphone": "🎧",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
}, },
"cpu": { "on-click": "pkill -x pavucontrol || pavucontrol"
"format": "<span foreground='#ebdbb2'></span> {usage:3}%", },
"states": { "tray": {
"warning": 70, "padding": 10,
"critical": 90 "spacing": 10
}, }
"on-click": "foot -T float bashtop"
},
"memory": {
"format": "<span foreground='#ebdbb2'></span> {}%",
"states": {
"warning": 70,
"critical": 90
},
"on-click": "foot -T float bashtop"
},
"backlight": {
"format": "<span foreground='#ebdbb2'>{icon}</span> {percent:3}%",
"format-icons": [""]
},
"battery": {
"bat": "BAT0",
"design-capacity": false,
"states": {
"warning": 30,
"critical": 15
},
"format": "<span foreground='#ebdbb2'>{icon}</span> {capacity:3}%",
"format-charging": "<span foreground='#268bd2'></span> {capacity:3}%",
"format-icons": ["", "", "", "", ""]
},
"network#wl0": {
"interval": 2,
"interface": "wl0",
"format": "{ifname}",
"format-wifi": "<span foreground='#ebdbb2'> </span>{ifname} {essid} ({signalStrength:3}%)",
"format-ethernet": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-linked": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-disconnected": "<span foreground='#606060'></span>{ifname}",
"tooltip-format": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
"tooltip-format-linked": "{ifname} linked",
"tooltip-format-disconnected": "{ifname} disconnected",
"on-click": "foot -T float nmtui"
},
"network#en0": {
"interval": 2,
"interface": "en0",
"format": "{ifname}",
"format-wifi": "<span foreground='#ebdbb2'> </span> {essid} ({signalStrength:3}%)",
"format-ethernet": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-linked": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-disconnected": "<span foreground='#606060'></span>{ifname}",
"tooltip-format": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
"tooltip-format-linked": "{ifname} linked",
"tooltip-format-disconnected": "{ifname} disconnected",
"on-click": "foot -T float nmtui"
},
"network#vpn0": {
"interval": 2,
"interface": "vpn0",
"format": "{ifname}",
"format-wifi": "<span foreground='#ebdbb2'> </span> {essid} ({signalStrength:3}%)",
"format-ethernet": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-linked": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-disconnected": "<span foreground='#606060'></span>{ifname}",
"tooltip-format": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
"tooltip-format-linked": "{ifname} linked",
"tooltip-format-disconnected": "{ifname} disconnected",
"on-click": "foot -T float nmtui"
},
"pulseaudio": {
"format": "<span foreground='#ebdbb2'>{icon} </span>{volume}% {format_source}",
"format-bluetooth": "<span foreground='#ebdbb2'>{icon} </span>{volume}% {format_source}",
"format-bluetooth-muted": "<span foreground='#fb4934'> {icon} </span>{format_source}",
"format-muted": "<span foreground='#fb4934'> </span>{format_source}",
"format-source": "<span foreground='#b8bb26'> </span>{volume}%",
"format-source-muted": "<span foreground='#fb4934'> </span>",
"format-icons": {
"headphone": "🎧",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
},
"on-click": "pkill -x pavucontrol || pavucontrol"
},
"tray": {
"padding": 10,
"spacing": 10
}
} }

View file

@ -4,38 +4,38 @@
// red #fb4934 // red #fb4934
// green #b8bb26 // green #b8bb26
{ {
"layer": "top", "layer": "top",
"height": 25, "height": 25,
"modules-left": [ "modules-left": [
"sway/workspaces", "sway/workspaces",
"custom/separator#left" "custom/separator#left"
], ],
"modules-center": [ "modules-center": [
], ],
"modules-right": [ "modules-right": [
"custom/separator#right", "custom/separator#right",
"custom/mail", "custom/mail",
"custom/separator#right", "custom/separator#right",
"pulseaudio", "pulseaudio",
"custom/media", "custom/media",
"custom/separator#right", "custom/separator#right",
"network#en0", "network#en0",
"network#vpn0", "network#vpn0",
"custom/separator#right", "custom/separator#right",
"cpu", "cpu",
"memory", "memory",
"custom/separator#right", "custom/separator#right",
"backlight", "backlight",
"custom/separator#right", "custom/separator#right",
"custom/calendar", "custom/calendar",
"clock", "clock",
"tray" "tray"
], ],
"custom/separator#left": { "custom/separator#left": {
"format": " <span foreground='#268bd2'></span> " "format": " <span foreground='#268bd2'></span> "
}, },
"custom/separator#right": { "custom/separator#right": {
"format": " <span foreground='#268bd2'></span> " "format": " <span foreground='#268bd2'></span> "
}, },
"custom/calendar": { "custom/calendar": {
"format": "{}", "format": "{}",
@ -76,96 +76,96 @@
"exec-if": "pgrep plexamp" "exec-if": "pgrep plexamp"
}, },
"clock": { "clock": {
"format": "<span foreground='#ebdbb2'> </span>{:%H:%M}", "format": "<span foreground='#ebdbb2'> </span>{:%H:%M}",
"on-click": "foot -T float khal interactive" "on-click": "foot -T float khal interactive"
}, },
"cpu": { "cpu": {
"format": "<span foreground='#ebdbb2'></span> {usage:3}%", "format": "<span foreground='#ebdbb2'></span> {usage:3}%",
"states": { "states": {
"warning": 70, "warning": 70,
"critical": 90 "critical": 90
}, },
"on-click": "foot -T float bashtop" "on-click": "foot -T float bashtop"
}, },
"memory": { "memory": {
"format": "<span foreground='#ebdbb2'></span> {}%", "format": "<span foreground='#ebdbb2'></span> {}%",
"states": { "states": {
"warning": 70, "warning": 70,
"critical": 90 "critical": 90
}, },
"on-click": "foot -T float bashtop" "on-click": "foot -T float bashtop"
}, },
"backlight": { "backlight": {
"format": "<span foreground='#ebdbb2'>{icon}</span> {percent:3}%", "format": "<span foreground='#ebdbb2'>{icon}</span> {percent:3}%",
"format-icons": [""] "format-icons": [""]
}, },
"battery": { "battery": {
"bat": "BAT0", "bat": "BAT0",
"design-capacity": false, "design-capacity": false,
"states": { "states": {
"warning": 30, "warning": 30,
"critical": 15 "critical": 15
}, },
"format": "<span foreground='#ebdbb2'>{icon}</span> {capacity:3}%", "format": "<span foreground='#ebdbb2'>{icon}</span> {capacity:3}%",
"format-charging": "<span foreground='#268bd2'></span> {capacity:3}%", "format-charging": "<span foreground='#268bd2'></span> {capacity:3}%",
"format-icons": ["", "", "", "", ""] "format-icons": ["", "", "", "", ""]
}, },
"network#wl0": { "network#wl0": {
"interval": 2, "interval": 2,
"interface": "wl0", "interface": "wl0",
"format": "{ifname}", "format": "{ifname}",
"format-wifi": "<span foreground='#ebdbb2'> </span>{ifname} {essid} ({signalStrength:3}%)", "format-wifi": "<span foreground='#ebdbb2'> </span>{ifname} {essid} ({signalStrength:3}%)",
"format-ethernet": "<span foreground='#ebdbb2'> </span>{ifname}", "format-ethernet": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-linked": "<span foreground='#ebdbb2'> </span>{ifname}", "format-linked": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-disconnected": "<span foreground='#606060'></span>{ifname}", "format-disconnected": "<span foreground='#606060'></span>{ifname}",
"tooltip-format": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}", "tooltip-format": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
"tooltip-format-linked": "{ifname} linked", "tooltip-format-linked": "{ifname} linked",
"tooltip-format-disconnected": "{ifname} disconnected", "tooltip-format-disconnected": "{ifname} disconnected",
"on-click": "foot -T float nmtui" "on-click": "foot -T float nmtui"
}, },
"network#en0": { "network#en0": {
"interval": 2, "interval": 2,
"interface": "en0", "interface": "en0",
"format": "{ifname}", "format": "{ifname}",
"format-wifi": "<span foreground='#ebdbb2'> </span> {essid} ({signalStrength:3}%)", "format-wifi": "<span foreground='#ebdbb2'> </span> {essid} ({signalStrength:3}%)",
"format-ethernet": "<span foreground='#ebdbb2'> </span>{ifname}", "format-ethernet": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-linked": "<span foreground='#ebdbb2'> </span>{ifname}", "format-linked": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-disconnected": "<span foreground='#606060'></span>{ifname}", "format-disconnected": "<span foreground='#606060'></span>{ifname}",
"tooltip-format": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}", "tooltip-format": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
"tooltip-format-linked": "{ifname} linked", "tooltip-format-linked": "{ifname} linked",
"tooltip-format-disconnected": "{ifname} disconnected", "tooltip-format-disconnected": "{ifname} disconnected",
"on-click": "foot -T float nmtui" "on-click": "foot -T float nmtui"
}, },
"network#vpn0": { "network#vpn0": {
"interval": 2, "interval": 2,
"interface": "vpn0", "interface": "vpn0",
"format": "{ifname}", "format": "{ifname}",
"format-wifi": "<span foreground='#ebdbb2'> </span> {essid} ({signalStrength:3}%)", "format-wifi": "<span foreground='#ebdbb2'> </span> {essid} ({signalStrength:3}%)",
"format-ethernet": "<span foreground='#ebdbb2'> </span>{ifname}", "format-ethernet": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-linked": "<span foreground='#ebdbb2'> </span>{ifname}", "format-linked": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-disconnected": "<span foreground='#606060'></span>{ifname}", "format-disconnected": "<span foreground='#606060'></span>{ifname}",
"tooltip-format": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}", "tooltip-format": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
"tooltip-format-linked": "{ifname} linked", "tooltip-format-linked": "{ifname} linked",
"tooltip-format-disconnected": "{ifname} disconnected", "tooltip-format-disconnected": "{ifname} disconnected",
"on-click": "foot -T float nmtui" "on-click": "foot -T float nmtui"
}, },
"pulseaudio": { "pulseaudio": {
"format": "<span foreground='#ebdbb2'>{icon} </span>{volume}% {format_source}", "format": "<span foreground='#ebdbb2'>{icon} </span>{volume}% {format_source}",
"format-bluetooth": "<span foreground='#ebdbb2'>{icon} </span>{volume}% {format_source}", "format-bluetooth": "<span foreground='#ebdbb2'>{icon} </span>{volume}% {format_source}",
"format-bluetooth-muted": "<span foreground='#fb4934'> {icon} </span>{format_source}", "format-bluetooth-muted": "<span foreground='#fb4934'> {icon} </span>{format_source}",
"format-muted": "<span foreground='#fb4934'> </span>{format_source}", "format-muted": "<span foreground='#fb4934'> </span>{format_source}",
"format-source": "<span foreground='#b8bb26'> </span>{volume}%", "format-source": "<span foreground='#b8bb26'> </span>{volume}%",
"format-source-muted": "<span foreground='#fb4934'> </span>", "format-source-muted": "<span foreground='#fb4934'> </span>",
"format-icons": { "format-icons": {
"headphone": "🎧", "headphone": "🎧",
"hands-free": "", "hands-free": "",
"headset": "", "headset": "",
"phone": "", "phone": "",
"portable": "", "portable": "",
"car": "", "car": "",
"default": ["", "", ""] "default": ["", "", ""]
}, },
"on-click": "pkill -x pavucontrol || pavucontrol" "on-click": "pkill -x pavucontrol || pavucontrol"
}, },
"tray": { "tray": {
"padding": 10, "padding": 10,