cleanup waybar

This commit is contained in:
Johannes Loher 2020-09-15 05:51:19 +02:00
parent 478cbad172
commit 18cae15ec4
2 changed files with 40 additions and 35 deletions

View file

@ -1,7 +1,6 @@
{ {
"layer": "top", "layer": "top",
"position": "top", "position": "top",
// "height": 30,
"modules-left": ["sway/workspaces", "custom/right-arrow-dark"], "modules-left": ["sway/workspaces", "custom/right-arrow-dark"],
"modules-center": [ "modules-center": [
"custom/left-arrow-dark", "custom/left-arrow-dark",
@ -25,13 +24,9 @@
"battery", "battery",
"custom/left-arrow-light", "custom/left-arrow-light",
"custom/left-arrow-dark", "custom/left-arrow-dark",
"tray"], "tray"
// Modules configuration ],
"sway/workspaces": {
"disable-scroll": true,
"all-outputs": false,
"format": "{name}"
},
"custom/left-arrow-dark": { "custom/left-arrow-dark": {
"format": "", "format": "",
"tooltip": false "tooltip": false
@ -48,6 +43,13 @@
"format": "", "format": "",
"tooltip": false "tooltip": false
}, },
"sway/workspaces": {
"disable-scroll": true,
"all-outputs": false,
"format": "{name}"
},
"disk": { "disk": {
"interval": 30, "interval": 30,
"format": "{free} ", "format": "{free} ",
@ -56,7 +58,7 @@
"path": "/home" "path": "/home"
}, },
"tray": { "tray": {
// "icon-size": 21, "icon-size": 22,
"spacing": 10 "spacing": 10
}, },
"clock#1": { "clock#1": {
@ -73,7 +75,6 @@
}, },
"battery": { "battery": {
"states": { "states": {
// "good": 95,
"warning": 30, "warning": 30,
"critical": 15 "critical": 15
}, },
@ -84,16 +85,7 @@
"format-icons": ["", "", "", "", ""], "format-icons": ["", "", "", "", ""],
"tooltip": false "tooltip": false
}, },
"network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface
"format-wifi": "{essid} ({signalStrength}%) ",
"format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
"format-linked": "{ifname} (No IP) ",
"format-disconnected": "Disconnected ⚠",
"format-alt": "{ifname}: {ipaddr}/{cidr}"
},
"pulseaudio": { "pulseaudio": {
// "scroll-step": 1, // %, can be a float
"format": "{volume}% {icon} {format_source}", "format": "{volume}% {icon} {format_source}",
"format-bluetooth": "{volume}% {icon} {format_source}", "format-bluetooth": "{volume}% {icon} {format_source}",
"format-bluetooth-muted": " {icon} {format_source}", "format-bluetooth-muted": " {icon} {format_source}",

View file

@ -11,34 +11,47 @@ window#waybar {
color: #7780a1; color: #7780a1;
} }
#workspaces button { #clock,
padding: 0 5px; #disk,
#pulseaudio,
#battery,
#tray,
#workspaces {
padding: 0 10px;
background: #1f222d; background: #1f222d;
color: #7780a1;
} }
#workspaces button.focused {
color: #ffffff;
}
#custom-right-arrow-dark, #custom-right-arrow-dark,
#custom-left-arrow-dark { #custom-left-arrow-dark {
color: #1f222d; color: #1f222d;
} }
#custom-right-arrow-light, #custom-right-arrow-light,
#custom-left-arrow-light { #custom-left-arrow-light {
color: #252936; color: #252936;
background: #1f222d; background: #1f222d;
} }
#workspaces button {
#clock, padding: 0 5px;
#disk,
#pulseaudio,
#battery,
#tray {
padding-left: 10px;
padding-right: 10px;
background: #1f222d; background: #1f222d;
color: #7780a1;
border: none;
}
#workspaces button.focused {
color: #ffffff;
}
#workspaces button:hover {
box-shadow: none;
text-shadow: none;
}
#battery.warning {
color: #ffd400;
}
#battery.critical {
color: #ff5400;
} }