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,
"modules-left": [
"sway/workspaces",
"custom/separator#left"
"custom/separator#left",
"custom/separator#space"
],
"modules-center": [
"custom/separator#right",
"custom/media",
"custom/separator#center",
"pulseaudio",
"custom/separator#left"
"custom/separator#center",
"custom/card",
"custom/separator#center",
"custom/mail",
"custom/separator#left",
"custom/separator#space"
],
"modules-right": [
"custom/separator#right",
"custom/card",
"custom/separator#right",
"custom/mail",
"custom/separator#right",
"network#wl0",
"network#en0",
"network#vpn0",
// "network#en0",
// "network#vpn0",
"custom/separator#right",
"cpu",
"memory",
@ -39,6 +41,9 @@
"custom/separator#left": {
"format": "<span foreground='#268bd2'></span>"
},
"custom/separator#space": {
"format": " "
},
"custom/separator#center": {
// "format": "<span foreground='#268bd2'></span>"
"format": "<span foreground='#268bd2'>|</span>"
@ -51,6 +56,8 @@
"tooltip-format": "{}",
"tooltip": true,
"return-type": "json",
"min-length": 25,
"max-length": 40,
"interval": 300,
"format-icons": {
"now": "<span foreground='#fb4934'></span>",
@ -96,8 +103,8 @@
"tooltip-format": "{}",
"tooltip": true,
"return-type": "json",
"min-length": 30,
"max-length": 40,
"min-length": 10,
"max-length": 30,
"format-icons": {
"chromium": " ",
"firefox": " ",
@ -108,11 +115,13 @@
"exec": "$HOME/.config/sway/bin/waybar_mediaplayer.py 2> /dev/null"
},
"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"
},
"cpu": {
"format": "<span foreground='#ebdbb2'></span>{usage:3}%",
"min-length": 6,
"max-length": 10,
"states": {
"warning": 70,
"critical": 90
@ -121,6 +130,8 @@
},
"memory": {
"format": "<span foreground='#ebdbb2'></span>{}%",
"min-length": 6,
"max-length": 10,
"states": {
"warning": 70,
"critical": 90
@ -142,11 +153,12 @@
"interval": 2,
"interface": "wl0",
"format": "{ifname}",
"format-wifi": "<span foreground='#ebdbb2'> </span>{ifname} {essid} ({signalStrength:3}%)",
"format-ethernet": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-wifi": "<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}",
"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-disconnected": "{ifname} disconnected",
"on-click": "foot -T float nmtui"
@ -179,10 +191,10 @@
},
"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-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-icons": {
"headphone": "🎧",
@ -193,11 +205,11 @@
"car": "",
"default": ["", "", ""]
},
"min-length": 9,
"max-length": 20,
"min-length": 7,
"max-length": 12,
"on-click": "$HOME/.config/sway/bin/sway_volume mute",
"on-click-middle": "$HOME/.config/sway/bin/sway_volume gui",
"on-click-right": "$HOME/.config/sway/bin/sway_volume source-mute",
"on-click-middle": "$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-down": "$HOME/.config/sway/bin/sway_volume decrease-mute"
},

View file

@ -8,7 +8,8 @@
"height": 25,
"modules-left": [
"sway/workspaces",
"custom/separator#left"
"custom/separator#left",
"custom/separator#space"
],
"modules-center": [
"custom/separator#right",
@ -39,6 +40,9 @@
"custom/separator#left": {
"format": "<span foreground='#268bd2'></span>"
},
"custom/separator#space": {
"format": " "
},
"custom/separator#center": {
// "format": "<span foreground='#268bd2'></span>"
"format": "<span foreground='#268bd2'>|</span>"
@ -51,6 +55,8 @@
"tooltip-format": "{}",
"tooltip": true,
"return-type": "json",
"min-length": 25,
"max-length": 40,
"interval": 300,
"format-icons": {
"now": "<span foreground='#fb4934'></span>",
@ -96,8 +102,8 @@
"tooltip-format": "{}",
"tooltip": true,
"return-type": "json",
"min-length": 30,
"max-length": 40,
"min-length": 10,
"max-length": 30,
"format-icons": {
"chromium": " ",
"firefox": " ",
@ -108,11 +114,13 @@
"exec": "$HOME/.config/sway/bin/waybar_mediaplayer.py 2> /dev/null"
},
"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"
},
"cpu": {
"format": "<span foreground='#ebdbb2'></span>{usage:3}%",
"min-length": 6,
"max-length": 10,
"states": {
"warning": 70,
"critical": 90
@ -121,6 +129,8 @@
},
"memory": {
"format": "<span foreground='#ebdbb2'></span>{}%",
"min-length": 6,
"max-length": 10,
"states": {
"warning": 70,
"critical": 90
@ -142,11 +152,12 @@
"interval": 2,
"interface": "wl0",
"format": "{ifname}",
"format-wifi": "<span foreground='#ebdbb2'> </span>{ifname} {essid} ({signalStrength:3}%)",
"format-ethernet": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-wifi": "<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}",
"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-disconnected": "{ifname} disconnected",
"on-click": "foot -T float nmtui"
@ -179,10 +190,10 @@
},
"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-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-icons": {
"headphone": "🎧",
@ -193,11 +204,11 @@
"car": "",
"default": ["", "", ""]
},
"min-length": 9,
"max-length": 20,
"min-length": 7,
"max-length": 12,
"on-click": "$HOME/.config/sway/bin/sway_volume mute",
"on-click-middle": "$HOME/.config/sway/bin/sway_volume gui",
"on-click-right": "$HOME/.config/sway/bin/sway_volume source-mute",
"on-click-middle": "$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-down": "$HOME/.config/sway/bin/sway_volume decrease-mute"
},

View file

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