waybar: add separator#left, cleanup
This commit is contained in:
parent
d79912e664
commit
2e36451196
3 changed files with 46 additions and 32 deletions
|
@ -3,38 +3,42 @@
|
||||||
"layer": "top",
|
"layer": "top",
|
||||||
"height": 25,
|
"height": 25,
|
||||||
"modules-left": [
|
"modules-left": [
|
||||||
"sway/workspaces"
|
"sway/workspaces",
|
||||||
|
"custom/separator#left"
|
||||||
],
|
],
|
||||||
"modules-center": [
|
"modules-center": [
|
||||||
"sway/window"
|
|
||||||
],
|
],
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
"custom/separator",
|
"custom/separator#right",
|
||||||
"custom/mail",
|
"custom/mail",
|
||||||
"custom/separator",
|
"custom/separator#right",
|
||||||
"pulseaudio",
|
"pulseaudio",
|
||||||
"custom/media",
|
"custom/media",
|
||||||
"custom/separator",
|
"custom/separator#right",
|
||||||
"network#wl0",
|
"network#wl0",
|
||||||
"network#en0",
|
"network#en0",
|
||||||
"network#vpn0",
|
"network#vpn0",
|
||||||
"custom/separator",
|
"custom/separator#right",
|
||||||
"cpu",
|
"cpu",
|
||||||
"memory",
|
"memory",
|
||||||
"custom/separator",
|
"custom/separator#right",
|
||||||
"backlight",
|
"backlight",
|
||||||
"custom/separator",
|
"custom/separator#right",
|
||||||
"battery",
|
"battery",
|
||||||
"custom/separator",
|
"custom/separator#right",
|
||||||
"clock",
|
"clock",
|
||||||
"tray"
|
"tray"
|
||||||
],
|
],
|
||||||
"custom/separator": {
|
"custom/separator#left": {
|
||||||
|
"format": " <span foreground='#268bd2'>❯</span> "
|
||||||
|
},
|
||||||
|
"custom/separator#right": {
|
||||||
"format": " <span foreground='#268bd2'>❮</span> "
|
"format": " <span foreground='#268bd2'>❮</span> "
|
||||||
},
|
},
|
||||||
"custom/mail": {
|
"custom/mail": {
|
||||||
"format": "{icon} {}",
|
"format": "{icon} {}",
|
||||||
"return-type": "json",
|
"return-type": "json",
|
||||||
|
"min-length": 15,
|
||||||
"max-length": 15,
|
"max-length": 15,
|
||||||
"interval": 30,
|
"interval": 30,
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
|
@ -47,6 +51,7 @@
|
||||||
"custom/media": {
|
"custom/media": {
|
||||||
"format": "{icon} {}",
|
"format": "{icon} {}",
|
||||||
"return-type": "json",
|
"return-type": "json",
|
||||||
|
"min-length": 30,
|
||||||
"max-length": 40,
|
"max-length": 40,
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
"chromium": " ",
|
"chromium": " ",
|
||||||
|
@ -97,8 +102,8 @@
|
||||||
"format": "{ifname}",
|
"format": "{ifname}",
|
||||||
"format-wifi": "<span foreground='#ebdbb2'> </span>{ifname} {essid} ({signalStrength}%)",
|
"format-wifi": "<span foreground='#ebdbb2'> </span>{ifname} {essid} ({signalStrength}%)",
|
||||||
"format-ethernet": "<span foreground='#ebdbb2'> </span>{ifname}",
|
"format-ethernet": "<span foreground='#ebdbb2'> </span>{ifname}",
|
||||||
"format-linked": "<span foreground='#606060'> </span>{ifname}",
|
"format-linked": "<span foreground='#ebdbb2'> </span>{ifname}",
|
||||||
"format-disconnected": "<span foreground='#fb4934'> </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",
|
||||||
|
@ -110,8 +115,8 @@
|
||||||
"format": "{ifname}",
|
"format": "{ifname}",
|
||||||
"format-wifi": "<span foreground='#ebdbb2'> </span> {essid} ({signalStrength}%)",
|
"format-wifi": "<span foreground='#ebdbb2'> </span> {essid} ({signalStrength}%)",
|
||||||
"format-ethernet": "<span foreground='#ebdbb2'> </span>{ifname}",
|
"format-ethernet": "<span foreground='#ebdbb2'> </span>{ifname}",
|
||||||
"format-linked": "<span foreground='#606060'> </span>{ifname}",
|
"format-linked": "<span foreground='#ebdbb2'> </span>{ifname}",
|
||||||
"format-disconnected": "<span foreground='#fb4934'> </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",
|
||||||
|
@ -123,8 +128,8 @@
|
||||||
"format": "{ifname}",
|
"format": "{ifname}",
|
||||||
"format-wifi": "<span foreground='#ebdbb2'> </span> {essid} ({signalStrength}%)",
|
"format-wifi": "<span foreground='#ebdbb2'> </span> {essid} ({signalStrength}%)",
|
||||||
"format-ethernet": "<span foreground='#ebdbb2'> </span>{ifname}",
|
"format-ethernet": "<span foreground='#ebdbb2'> </span>{ifname}",
|
||||||
"format-linked": "<span foreground='#606060'> </span>{ifname}",
|
"format-linked": "<span foreground='#ebdbb2'> </span>{ifname}",
|
||||||
"format-disconnected": "<span foreground='#fb4934'> </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",
|
||||||
|
|
|
@ -3,35 +3,39 @@
|
||||||
"layer": "top",
|
"layer": "top",
|
||||||
"height": 25,
|
"height": 25,
|
||||||
"modules-left": [
|
"modules-left": [
|
||||||
"sway/workspaces"
|
"sway/workspaces",
|
||||||
|
"custom/separator#left"
|
||||||
],
|
],
|
||||||
"modules-center": [
|
"modules-center": [
|
||||||
"sway/window"
|
|
||||||
],
|
],
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
"custom/separator",
|
"custom/separator#right",
|
||||||
"custom/mail",
|
"custom/mail",
|
||||||
"custom/separator",
|
"custom/separator#right",
|
||||||
"pulseaudio",
|
"pulseaudio",
|
||||||
"custom/media",
|
"custom/media",
|
||||||
"custom/separator",
|
"custom/separator#right",
|
||||||
"network#en0",
|
"network#en0",
|
||||||
"network#vpn0",
|
"network#vpn0",
|
||||||
"custom/separator",
|
"custom/separator#right",
|
||||||
"cpu",
|
"cpu",
|
||||||
"memory",
|
"memory",
|
||||||
"custom/separator",
|
"custom/separator#right",
|
||||||
"backlight",
|
"backlight",
|
||||||
"custom/separator",
|
"custom/separator#right",
|
||||||
"clock",
|
"clock",
|
||||||
"tray"
|
"tray"
|
||||||
],
|
],
|
||||||
"custom/separator": {
|
"custom/separator#left": {
|
||||||
|
"format": " <span foreground='#268bd2'>❯</span> "
|
||||||
|
},
|
||||||
|
"custom/separator#right": {
|
||||||
"format": " <span foreground='#268bd2'>❮</span> "
|
"format": " <span foreground='#268bd2'>❮</span> "
|
||||||
},
|
},
|
||||||
"custom/mail": {
|
"custom/mail": {
|
||||||
"format": "{icon} {}",
|
"format": "{icon} {}",
|
||||||
"return-type": "json",
|
"return-type": "json",
|
||||||
|
"min-length": 15,
|
||||||
"max-length": 15,
|
"max-length": 15,
|
||||||
"interval": 30,
|
"interval": 30,
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
|
@ -44,6 +48,7 @@
|
||||||
"custom/media": {
|
"custom/media": {
|
||||||
"format": "{icon} {}",
|
"format": "{icon} {}",
|
||||||
"return-type": "json",
|
"return-type": "json",
|
||||||
|
"min-length": 30,
|
||||||
"max-length": 40,
|
"max-length": 40,
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
"chromium": " ",
|
"chromium": " ",
|
||||||
|
@ -79,7 +84,7 @@
|
||||||
},
|
},
|
||||||
"battery": {
|
"battery": {
|
||||||
"bat": "BAT0",
|
"bat": "BAT0",
|
||||||
"design-capacity": true,
|
"design-capacity": false,
|
||||||
"states": {
|
"states": {
|
||||||
"warning": 30,
|
"warning": 30,
|
||||||
"critical": 15
|
"critical": 15
|
||||||
|
@ -88,14 +93,14 @@
|
||||||
"format-charging": "<span foreground='#fb4934'></span> {capacity}%",
|
"format-charging": "<span foreground='#fb4934'></span> {capacity}%",
|
||||||
"format-icons": ["", "", "", "", ""]
|
"format-icons": ["", "", "", "", ""]
|
||||||
},
|
},
|
||||||
"network#wl0": {
|
{
|
||||||
"interval": 2,
|
"interval": 2,
|
||||||
"interface": "wl0",
|
"interface": "wl0",
|
||||||
"format": "{ifname}",
|
"format": "{ifname}",
|
||||||
"format-wifi": "<span foreground='#ebdbb2'> </span>{ifname} {essid} ({signalStrength}%)",
|
"format-wifi": "<span foreground='#ebdbb2'> </span>{ifname} {essid} ({signalStrength}%)",
|
||||||
"format-ethernet": "<span foreground='#ebdbb2'> </span>{ifname}",
|
"format-ethernet": "<span foreground='#ebdbb2'> </span>{ifname}",
|
||||||
"format-linked": "<span foreground='#606060'> </span>{ifname}",
|
"format-linked": "<span foreground='#606060'> </span>{ifname}",
|
||||||
"format-disconnected": "<span foreground='#fb4934'> </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",
|
||||||
|
@ -108,7 +113,7 @@
|
||||||
"format-wifi": "<span foreground='#ebdbb2'> </span> {essid} ({signalStrength}%)",
|
"format-wifi": "<span foreground='#ebdbb2'> </span> {essid} ({signalStrength}%)",
|
||||||
"format-ethernet": "<span foreground='#ebdbb2'> </span>{ifname}",
|
"format-ethernet": "<span foreground='#ebdbb2'> </span>{ifname}",
|
||||||
"format-linked": "<span foreground='#606060'> </span>{ifname}",
|
"format-linked": "<span foreground='#606060'> </span>{ifname}",
|
||||||
"format-disconnected": "<span foreground='#fb4934'> </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",
|
||||||
|
@ -121,7 +126,7 @@
|
||||||
"format-wifi": "<span foreground='#ebdbb2'> </span> {essid} ({signalStrength}%)",
|
"format-wifi": "<span foreground='#ebdbb2'> </span> {essid} ({signalStrength}%)",
|
||||||
"format-ethernet": "<span foreground='#ebdbb2'> </span>{ifname}",
|
"format-ethernet": "<span foreground='#ebdbb2'> </span>{ifname}",
|
||||||
"format-linked": "<span foreground='#606060'> </span>{ifname}",
|
"format-linked": "<span foreground='#606060'> </span>{ifname}",
|
||||||
"format-disconnected": "<span foreground='#fb4934'> </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",
|
||||||
|
|
|
@ -23,6 +23,7 @@ window#waybar {
|
||||||
|
|
||||||
#workspaces button {
|
#workspaces button {
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
|
min-width: 60px;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
color: @foreground;
|
color: @foreground;
|
||||||
border-bottom: 3px solid transparent;
|
border-bottom: 3px solid transparent;
|
||||||
|
@ -44,12 +45,15 @@ window#waybar {
|
||||||
#cpu,
|
#cpu,
|
||||||
#custom-media,
|
#custom-media,
|
||||||
#memory,
|
#memory,
|
||||||
#network,
|
|
||||||
#pulseaudio,
|
#pulseaudio,
|
||||||
#workspaces {
|
#workspaces {
|
||||||
padding: 0 6px;
|
padding: 0 6px;
|
||||||
margin: 0 6px;
|
margin: 0 6px;
|
||||||
}
|
}
|
||||||
|
#network {
|
||||||
|
padding: 0 2px;
|
||||||
|
margin: 0 2px;
|
||||||
|
}
|
||||||
|
|
||||||
/* good */
|
/* good */
|
||||||
#battery.full {
|
#battery.full {
|
||||||
|
|
Loading…
Reference in a new issue