waybar: update config, optimize spacings

This commit is contained in:
Konstantin Koslowski 2021-07-24 08:25:43 +02:00
parent 6baf09b068
commit 93bf3cd7ea
4 changed files with 138 additions and 100 deletions

View file

@ -8,24 +8,26 @@
"height": 25, "height": 25,
"modules-left": [ "modules-left": [
"sway/workspaces", "sway/workspaces",
"custom/separator#left" "custom/separator#left",
"custom/separator#space"
], ],
"modules-center": [ "modules-center": [
"custom/separator#right", "custom/separator#right",
"custom/media", "custom/media",
"custom/separator#center", "custom/separator#center",
"pulseaudio", "pulseaudio",
"custom/separator#left" "custom/separator#center",
"custom/card",
"custom/separator#center",
"custom/mail",
"custom/separator#left",
"custom/separator#space"
], ],
"modules-right": [ "modules-right": [
"custom/separator#right",
"custom/card",
"custom/separator#right",
"custom/mail",
"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",
@ -39,6 +41,9 @@
"custom/separator#left": { "custom/separator#left": {
"format": "<span foreground='#268bd2'></span>" "format": "<span foreground='#268bd2'></span>"
}, },
"custom/separator#space": {
"format": " "
},
"custom/separator#center": { "custom/separator#center": {
// "format": "<span foreground='#268bd2'></span>" // "format": "<span foreground='#268bd2'></span>"
"format": "<span foreground='#268bd2'>|</span>" "format": "<span foreground='#268bd2'>|</span>"
@ -51,6 +56,8 @@
"tooltip-format": "{}", "tooltip-format": "{}",
"tooltip": true, "tooltip": true,
"return-type": "json", "return-type": "json",
"min-length": 25,
"max-length": 40,
"interval": 300, "interval": 300,
"format-icons": { "format-icons": {
"now": "<span foreground='#fb4934'></span>", "now": "<span foreground='#fb4934'></span>",
@ -96,8 +103,8 @@
"tooltip-format": "{}", "tooltip-format": "{}",
"tooltip": true, "tooltip": true,
"return-type": "json", "return-type": "json",
"min-length": 30, "min-length": 10,
"max-length": 40, "max-length": 30,
"format-icons": { "format-icons": {
"chromium": " ", "chromium": " ",
"firefox": " ", "firefox": " ",
@ -108,11 +115,13 @@
"exec": "$HOME/.config/sway/bin/waybar_mediaplayer.py 2> /dev/null" "exec": "$HOME/.config/sway/bin/waybar_mediaplayer.py 2> /dev/null"
}, },
"clock": { "clock": {
"format": "<span foreground='#ebdbb2'> </span>{: %a, %b %d, %H:%M}", "format": "<span foreground='#ebdbb2'></span>{: %b %d, %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}%",
"min-length": 6,
"max-length": 10,
"states": { "states": {
"warning": 70, "warning": 70,
"critical": 90 "critical": 90
@ -121,6 +130,8 @@
}, },
"memory": { "memory": {
"format": "<span foreground='#ebdbb2'></span>{}%", "format": "<span foreground='#ebdbb2'></span>{}%",
"min-length": 6,
"max-length": 10,
"states": { "states": {
"warning": 70, "warning": 70,
"critical": 90 "critical": 90
@ -142,11 +153,12 @@
"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}",
"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}", "min-length": 8,
"max-length": 30,
"tooltip-format": "{ifname} {essid} ({signalStrength:3}%)\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"
@ -179,10 +191,10 @@
}, },
"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-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-bluetooth": "<span foreground='#ebdbb2'>{icon}</span> {volume}% {format_source}",
"format-bluetooth-muted": "<span foreground='#fb4934'>{icon}</span>{format_source}",
"format-source": "<span foreground='#b8bb26'></span>",
"format-source-muted": "<span foreground='#fb4934'></span>", "format-source-muted": "<span foreground='#fb4934'></span>",
"format-icons": { "format-icons": {
"headphone": "🎧", "headphone": "🎧",
@ -193,11 +205,11 @@
"car": "", "car": "",
"default": ["", "", ""] "default": ["", "", ""]
}, },
"min-length": 9, "min-length": 7,
"max-length": 20, "max-length": 12,
"on-click": "$HOME/.config/sway/bin/sway_volume mute", "on-click": "$HOME/.config/sway/bin/sway_volume mute",
"on-click-middle": "$HOME/.config/sway/bin/sway_volume gui", "on-click-middle": "$HOME/.config/sway/bin/sway_volume source-mute",
"on-click-right": "$HOME/.config/sway/bin/sway_volume source-mute", "on-click-right": "$HOME/.config/sway/bin/sway_volume gui",
"on-scroll-up": "$HOME/.config/sway/bin/sway_volume increase", "on-scroll-up": "$HOME/.config/sway/bin/sway_volume increase",
"on-scroll-down": "$HOME/.config/sway/bin/sway_volume decrease-mute" "on-scroll-down": "$HOME/.config/sway/bin/sway_volume decrease-mute"
}, },

View file

@ -8,7 +8,8 @@
"height": 25, "height": 25,
"modules-left": [ "modules-left": [
"sway/workspaces", "sway/workspaces",
"custom/separator#left" "custom/separator#left",
"custom/separator#space"
], ],
"modules-center": [ "modules-center": [
"custom/separator#right", "custom/separator#right",
@ -39,6 +40,9 @@
"custom/separator#left": { "custom/separator#left": {
"format": "<span foreground='#268bd2'></span>" "format": "<span foreground='#268bd2'></span>"
}, },
"custom/separator#space": {
"format": " "
},
"custom/separator#center": { "custom/separator#center": {
// "format": "<span foreground='#268bd2'></span>" // "format": "<span foreground='#268bd2'></span>"
"format": "<span foreground='#268bd2'>|</span>" "format": "<span foreground='#268bd2'>|</span>"
@ -51,6 +55,8 @@
"tooltip-format": "{}", "tooltip-format": "{}",
"tooltip": true, "tooltip": true,
"return-type": "json", "return-type": "json",
"min-length": 25,
"max-length": 40,
"interval": 300, "interval": 300,
"format-icons": { "format-icons": {
"now": "<span foreground='#fb4934'></span>", "now": "<span foreground='#fb4934'></span>",
@ -96,8 +102,8 @@
"tooltip-format": "{}", "tooltip-format": "{}",
"tooltip": true, "tooltip": true,
"return-type": "json", "return-type": "json",
"min-length": 30, "min-length": 10,
"max-length": 40, "max-length": 30,
"format-icons": { "format-icons": {
"chromium": " ", "chromium": " ",
"firefox": " ", "firefox": " ",
@ -108,11 +114,13 @@
"exec": "$HOME/.config/sway/bin/waybar_mediaplayer.py 2> /dev/null" "exec": "$HOME/.config/sway/bin/waybar_mediaplayer.py 2> /dev/null"
}, },
"clock": { "clock": {
"format": "<span foreground='#ebdbb2'> </span>{: %a, %b %d, %H:%M}", "format": "<span foreground='#ebdbb2'></span>{: %b %d, %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}%",
"min-length": 6,
"max-length": 10,
"states": { "states": {
"warning": 70, "warning": 70,
"critical": 90 "critical": 90
@ -121,6 +129,8 @@
}, },
"memory": { "memory": {
"format": "<span foreground='#ebdbb2'></span>{}%", "format": "<span foreground='#ebdbb2'></span>{}%",
"min-length": 6,
"max-length": 10,
"states": { "states": {
"warning": 70, "warning": 70,
"critical": 90 "critical": 90
@ -142,11 +152,12 @@
"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}",
"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}", "min-length": 8,
"max-length": 30,
"tooltip-format": "{ifname} {essid} ({signalStrength:3}%)\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"
@ -179,10 +190,10 @@
}, },
"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-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-bluetooth": "<span foreground='#ebdbb2'>{icon}</span> {volume}% {format_source}",
"format-bluetooth-muted": "<span foreground='#fb4934'>{icon}</span>{format_source}",
"format-source": "<span foreground='#b8bb26'></span>",
"format-source-muted": "<span foreground='#fb4934'></span>", "format-source-muted": "<span foreground='#fb4934'></span>",
"format-icons": { "format-icons": {
"headphone": "🎧", "headphone": "🎧",
@ -193,11 +204,11 @@
"car": "", "car": "",
"default": ["", "", ""] "default": ["", "", ""]
}, },
"min-length": 9, "min-length": 7,
"max-length": 20, "max-length": 12,
"on-click": "$HOME/.config/sway/bin/sway_volume mute", "on-click": "$HOME/.config/sway/bin/sway_volume mute",
"on-click-middle": "$HOME/.config/sway/bin/sway_volume gui", "on-click-middle": "$HOME/.config/sway/bin/sway_volume source-mute",
"on-click-right": "$HOME/.config/sway/bin/sway_volume source-mute", "on-click-right": "$HOME/.config/sway/bin/sway_volume gui",
"on-scroll-up": "$HOME/.config/sway/bin/sway_volume increase", "on-scroll-up": "$HOME/.config/sway/bin/sway_volume increase",
"on-scroll-down": "$HOME/.config/sway/bin/sway_volume decrease-mute" "on-scroll-down": "$HOME/.config/sway/bin/sway_volume decrease-mute"
}, },

View file

@ -8,27 +8,32 @@
"height": 25, "height": 25,
"modules-left": [ "modules-left": [
"sway/workspaces", "sway/workspaces",
"custom/separator#left" "custom/separator#left",
"custom/separator#space"
], ],
"modules-center": [ "modules-center": [
"custom/separator#right", "custom/separator#right",
"custom/media", "custom/media",
"custom/separator#center", "custom/separator#center",
"pulseaudio", "pulseaudio",
"custom/separator#left" "custom/separator#center",
"custom/card",
"custom/separator#center",
"custom/mail",
"custom/separator#left",
"custom/separator#space"
], ],
"modules-right": [ "modules-right": [
"custom/separator#right", "custom/separator#right",
"custom/card", // "network#wl0",
"custom/separator#right",
"custom/mail",
"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",
// "battery",
// "custom/separator#right",
"custom/calendar", "custom/calendar",
"clock", "clock",
"tray" "tray"
@ -36,6 +41,9 @@
"custom/separator#left": { "custom/separator#left": {
"format": "<span foreground='#268bd2'></span>" "format": "<span foreground='#268bd2'></span>"
}, },
"custom/separator#space": {
"format": " "
},
"custom/separator#center": { "custom/separator#center": {
// "format": "<span foreground='#268bd2'></span>" // "format": "<span foreground='#268bd2'></span>"
"format": "<span foreground='#268bd2'>|</span>" "format": "<span foreground='#268bd2'>|</span>"
@ -48,6 +56,8 @@
"tooltip-format": "{}", "tooltip-format": "{}",
"tooltip": true, "tooltip": true,
"return-type": "json", "return-type": "json",
"min-length": 25,
"max-length": 40,
"interval": 300, "interval": 300,
"format-icons": { "format-icons": {
"now": "<span foreground='#fb4934'></span>", "now": "<span foreground='#fb4934'></span>",
@ -93,8 +103,8 @@
"tooltip-format": "{}", "tooltip-format": "{}",
"tooltip": true, "tooltip": true,
"return-type": "json", "return-type": "json",
"min-length": 30, "min-length": 10,
"max-length": 40, "max-length": 30,
"format-icons": { "format-icons": {
"chromium": " ", "chromium": " ",
"firefox": " ", "firefox": " ",
@ -105,11 +115,13 @@
"exec": "$HOME/.config/sway/bin/waybar_mediaplayer.py 2> /dev/null" "exec": "$HOME/.config/sway/bin/waybar_mediaplayer.py 2> /dev/null"
}, },
"clock": { "clock": {
"format": "<span foreground='#ebdbb2'> </span>{: %a, %b %d, %H:%M}", "format": "<span foreground='#ebdbb2'></span>{: %b %d, %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}%",
"min-length": 6,
"max-length": 10,
"states": { "states": {
"warning": 70, "warning": 70,
"critical": 90 "critical": 90
@ -118,6 +130,8 @@
}, },
"memory": { "memory": {
"format": "<span foreground='#ebdbb2'></span>{}%", "format": "<span foreground='#ebdbb2'></span>{}%",
"min-length": 6,
"max-length": 10,
"states": { "states": {
"warning": 70, "warning": 70,
"critical": 90 "critical": 90
@ -139,11 +153,12 @@
"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}",
"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}", "min-length": 8,
"max-length": 30,
"tooltip-format": "{ifname} {essid} ({signalStrength:3}%)\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"
@ -176,10 +191,10 @@
}, },
"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-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-bluetooth": "<span foreground='#ebdbb2'>{icon}</span> {volume}% {format_source}",
"format-bluetooth-muted": "<span foreground='#fb4934'>{icon}</span>{format_source}",
"format-source": "<span foreground='#b8bb26'></span>",
"format-source-muted": "<span foreground='#fb4934'></span>", "format-source-muted": "<span foreground='#fb4934'></span>",
"format-icons": { "format-icons": {
"headphone": "🎧", "headphone": "🎧",
@ -188,13 +203,13 @@
"phone": "", "phone": "",
"portable": "", "portable": "",
"car": "", "car": "",
"default": ["", "", ""] "default": ["", "", ""]
}, },
"min-length": 9, "min-length": 7,
"max-length": 20, "max-length": 12,
"on-click": "$HOME/.config/sway/bin/sway_volume mute", "on-click": "$HOME/.config/sway/bin/sway_volume mute",
"on-click-middle": "$HOME/.config/sway/bin/sway_volume gui", "on-click-middle": "$HOME/.config/sway/bin/sway_volume source-mute",
"on-click-right": "$HOME/.config/sway/bin/sway_volume source-mute", "on-click-right": "$HOME/.config/sway/bin/sway_volume gui",
"on-scroll-up": "$HOME/.config/sway/bin/sway_volume increase", "on-scroll-up": "$HOME/.config/sway/bin/sway_volume increase",
"on-scroll-down": "$HOME/.config/sway/bin/sway_volume decrease-mute" "on-scroll-down": "$HOME/.config/sway/bin/sway_volume decrease-mute"
}, },