More waybar tuning
This commit is contained in:
@@ -18,15 +18,12 @@
|
|||||||
"modules-right": [
|
"modules-right": [
|
||||||
"mpd",
|
"mpd",
|
||||||
"idle_inhibitor",
|
"idle_inhibitor",
|
||||||
"pulseaudio",
|
|
||||||
"backlight",
|
"backlight",
|
||||||
"tray",
|
"group/kbd",
|
||||||
"keyboard-state",
|
|
||||||
"sway/language",
|
|
||||||
"bluetooth",
|
|
||||||
"group/nw",
|
"group/nw",
|
||||||
"group/hw",
|
"group/hw",
|
||||||
"group/power",
|
"group/power",
|
||||||
|
"group/misc",
|
||||||
"clock",
|
"clock",
|
||||||
"custom/power"
|
"custom/power"
|
||||||
],
|
],
|
||||||
@@ -47,15 +44,6 @@
|
|||||||
// "default": ""
|
// "default": ""
|
||||||
// }
|
// }
|
||||||
// },
|
// },
|
||||||
"keyboard-state": {
|
|
||||||
"numlock": true,
|
|
||||||
"capslock": true,
|
|
||||||
"format": "{name} {icon}",
|
|
||||||
"format-icons": {
|
|
||||||
"locked": "",
|
|
||||||
"unlocked": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"sway/mode": {
|
"sway/mode": {
|
||||||
"format": "<span style=\"italic\">{}</span>"
|
"format": "<span style=\"italic\">{}</span>"
|
||||||
},
|
},
|
||||||
@@ -99,33 +87,46 @@
|
|||||||
"deactivated": ""
|
"deactivated": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tray": {
|
|
||||||
// "icon-size": 21,
|
|
||||||
"spacing": 10
|
|
||||||
},
|
|
||||||
"backlight": {
|
"backlight": {
|
||||||
// "device": "acpi_video1",
|
// "device": "acpi_video1",
|
||||||
"format": "{percent}% {icon}",
|
"format": "{percent}% {icon}",
|
||||||
"format-icons": ["", "", "", "", "", "", "", "", ""]
|
"format-icons": ["", "", "", "", "", "", "", "", ""]
|
||||||
},
|
},
|
||||||
"pulseaudio": {
|
"group/kbd" : {
|
||||||
// "scroll-step": 1, // %, can be a float
|
"orientation": "vertical",
|
||||||
"format": "{volume}% {icon} {format_source}",
|
"modules": [
|
||||||
"format-bluetooth": "{volume}% {icon} {format_source}",
|
"keyboard-state",
|
||||||
"format-bluetooth-muted": " {icon} {format_source}",
|
"sway/languague"
|
||||||
"format-muted": " {format_source}",
|
]
|
||||||
"format-source": "{volume}% ",
|
|
||||||
"format-source-muted": "",
|
|
||||||
"format-icons": {
|
|
||||||
"headphone": "",
|
|
||||||
"hands-free": "",
|
|
||||||
"headset": "",
|
|
||||||
"phone": "",
|
|
||||||
"portable": "",
|
|
||||||
"car": "",
|
|
||||||
"default": ["", "", ""]
|
|
||||||
},
|
},
|
||||||
"on-click": "pavucontrol"
|
"keyboard-state": {
|
||||||
|
"numlock": true,
|
||||||
|
"capslock": true,
|
||||||
|
"format": "{name} {icon}",
|
||||||
|
"format-icons": {
|
||||||
|
"locked": "",
|
||||||
|
"unlocked": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"sway/languague": {
|
||||||
|
|
||||||
|
},
|
||||||
|
"group/nw": {
|
||||||
|
"orientation": "vertical",
|
||||||
|
"modules": [
|
||||||
|
"network",
|
||||||
|
"bluetooth"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"network": {
|
||||||
|
//"interface": "wlp2*", // (Optional) To force the use of this interface
|
||||||
|
"family": "ipv4",
|
||||||
|
"format-wifi": "{essid} ({signalStrength}%) ",
|
||||||
|
"format-ethernet": "{ipaddr}/{cidr} ",
|
||||||
|
"tooltip-format": "{ifname} via {gwaddr} ",
|
||||||
|
"format-linked": "{ifname} (No IP) ",
|
||||||
|
"format-disconnected": "Disconnected ⚠",
|
||||||
|
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
||||||
},
|
},
|
||||||
"bluetooth": {
|
"bluetooth": {
|
||||||
"format": " {status}",
|
"format": " {status}",
|
||||||
@@ -138,32 +139,6 @@
|
|||||||
"tooltip-format": "{device_alias}: {device_address},{device_address_type}"
|
"tooltip-format": "{device_alias}: {device_address},{device_address_type}"
|
||||||
|
|
||||||
},
|
},
|
||||||
"group/nw": {
|
|
||||||
"orientation": "vertical",
|
|
||||||
"modules": [
|
|
||||||
"network",
|
|
||||||
"network#wired"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"network": {
|
|
||||||
"interface": "wlp2*", // (Optional) To force the use of this interface
|
|
||||||
"family": "ipv4",
|
|
||||||
"format-wifi": "{essid} ({signalStrength}%) ",
|
|
||||||
"format-ethernet": "{ipaddr}/{cidr} ",
|
|
||||||
"tooltip-format": "{ifname} via {gwaddr} ",
|
|
||||||
"format-linked": "{ifname} (No IP) ",
|
|
||||||
"format-disconnected": "Disconnected ⚠",
|
|
||||||
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
|
||||||
},
|
|
||||||
"network#wired": {
|
|
||||||
"interface": "enp*", // (Optional) To force the use of this interface
|
|
||||||
"family": "ipv4",
|
|
||||||
"format-ethernet": "{ipaddr}/{cidr} ",
|
|
||||||
"tooltip-format": "{ifname} via {gwaddr} ",
|
|
||||||
"format-linked": "{ifname} (No IP) ",
|
|
||||||
"format-disconnected": "Disconnected ⚠",
|
|
||||||
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
|
||||||
},
|
|
||||||
"group/hw": {
|
"group/hw": {
|
||||||
"orientation": "vertical",
|
"orientation": "vertical",
|
||||||
"modules": [
|
"modules": [
|
||||||
@@ -174,8 +149,8 @@
|
|||||||
"drawer": {
|
"drawer": {
|
||||||
"transition-duration": 500,
|
"transition-duration": 500,
|
||||||
"children-class": "not-power",
|
"children-class": "not-power",
|
||||||
"transition-left-to-right": true,
|
"transition-left-to-right": true
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
"cpu": {
|
"cpu": {
|
||||||
"format": "{usage}% ",
|
"format": "{usage}% ",
|
||||||
@@ -227,6 +202,36 @@
|
|||||||
"power-saver": ""
|
"power-saver": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"group/misc": {
|
||||||
|
"orientation": "vertical",
|
||||||
|
"modules": [
|
||||||
|
"tray",
|
||||||
|
"pulseaudio"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"tray": {
|
||||||
|
// "icon-size": 21,
|
||||||
|
"spacing": 10
|
||||||
|
},
|
||||||
|
"pulseaudio": {
|
||||||
|
// "scroll-step": 1, // %, can be a float
|
||||||
|
"format": "{volume}% {icon} {format_source}",
|
||||||
|
"format-bluetooth": "{volume}% {icon} {format_source}",
|
||||||
|
"format-bluetooth-muted": " {icon} {format_source}",
|
||||||
|
"format-muted": " {format_source}",
|
||||||
|
"format-source": "{volume}% ",
|
||||||
|
"format-source-muted": "",
|
||||||
|
"format-icons": {
|
||||||
|
"headphone": "",
|
||||||
|
"hands-free": "",
|
||||||
|
"headset": "",
|
||||||
|
"phone": "",
|
||||||
|
"portable": "",
|
||||||
|
"car": "",
|
||||||
|
"default": ["", "", ""]
|
||||||
|
},
|
||||||
|
"on-click": "pavucontrol"
|
||||||
|
},
|
||||||
"clock": {
|
"clock": {
|
||||||
// "timezone": "America/New_York",
|
// "timezone": "America/New_York",
|
||||||
"format": "{0:%H:%M}\n{0:%Y-%m-%d}",
|
"format": "{0:%H:%M}\n{0:%Y-%m-%d}",
|
||||||
|
|||||||
@@ -126,15 +126,6 @@ label:focus {
|
|||||||
background-color: #000000;
|
background-color: #000000;
|
||||||
}
|
}
|
||||||
|
|
||||||
#cpu {
|
|
||||||
background-color: #2ecc71;
|
|
||||||
color: #000000;
|
|
||||||
}
|
|
||||||
|
|
||||||
#memory {
|
|
||||||
background-color: #9b59b6;
|
|
||||||
}
|
|
||||||
|
|
||||||
#disk {
|
#disk {
|
||||||
background-color: #964B00;
|
background-color: #964B00;
|
||||||
}
|
}
|
||||||
@@ -143,28 +134,6 @@ label:focus {
|
|||||||
background-color: #90b1b1;
|
background-color: #90b1b1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#network {
|
|
||||||
background-color: #2980b9;
|
|
||||||
}
|
|
||||||
|
|
||||||
#network.wired {
|
|
||||||
background-color: #2980b9;
|
|
||||||
}
|
|
||||||
|
|
||||||
#network.disconnected {
|
|
||||||
background-color: #f53c3c;
|
|
||||||
}
|
|
||||||
|
|
||||||
#pulseaudio {
|
|
||||||
background-color: #f1c40f;
|
|
||||||
color: #000000;
|
|
||||||
}
|
|
||||||
|
|
||||||
#pulseaudio.muted {
|
|
||||||
background-color: #90b1b1;
|
|
||||||
color: #2a5c45;
|
|
||||||
}
|
|
||||||
|
|
||||||
#wireplumber {
|
#wireplumber {
|
||||||
background-color: #fff0f5;
|
background-color: #fff0f5;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
@@ -188,27 +157,6 @@ label:focus {
|
|||||||
background-color: #ffa000;
|
background-color: #ffa000;
|
||||||
}
|
}
|
||||||
|
|
||||||
#temperature {
|
|
||||||
background-color: #f0932b;
|
|
||||||
}
|
|
||||||
|
|
||||||
#temperature.critical {
|
|
||||||
background-color: #eb4d4b;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tray {
|
|
||||||
background-color: #2980b9;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tray > .passive {
|
|
||||||
-gtk-icon-effect: dim;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tray > .needs-attention {
|
|
||||||
-gtk-icon-effect: highlight;
|
|
||||||
background-color: #eb4d4b;
|
|
||||||
}
|
|
||||||
|
|
||||||
#idle_inhibitor {
|
#idle_inhibitor {
|
||||||
background-color: #2d3436;
|
background-color: #2d3436;
|
||||||
}
|
}
|
||||||
@@ -235,30 +183,6 @@ label:focus {
|
|||||||
background-color: #51a37a;
|
background-color: #51a37a;
|
||||||
}
|
}
|
||||||
|
|
||||||
#language {
|
|
||||||
background: #00b093;
|
|
||||||
color: #740864;
|
|
||||||
/*padding: 0 5px;
|
|
||||||
margin: 0 5px;*/
|
|
||||||
min-width: 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#keyboard-state {
|
|
||||||
background: #97e1ad;
|
|
||||||
color: #000000;
|
|
||||||
/*padding: 0 0px;
|
|
||||||
margin: 0 5px;*/
|
|
||||||
min-width: 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#keyboard-state > label {
|
|
||||||
/*padding: 0 5px;*/
|
|
||||||
}
|
|
||||||
|
|
||||||
#keyboard-state > label.locked {
|
|
||||||
background: rgba(0, 0, 0, 0.2);
|
|
||||||
}
|
|
||||||
|
|
||||||
#scratchpad {
|
#scratchpad {
|
||||||
background: rgba(0, 0, 0, 0.2);
|
background: rgba(0, 0, 0, 0.2);
|
||||||
}
|
}
|
||||||
@@ -287,6 +211,56 @@ label:focus {
|
|||||||
background-color: #0069d4;
|
background-color: #0069d4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#keyboard-state {
|
||||||
|
background: #97e1ad;
|
||||||
|
color: #000000;
|
||||||
|
min-width: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#keyboard-state > label.locked {
|
||||||
|
background: rgba(0, 0, 0, 0.2);
|
||||||
|
}
|
||||||
|
#keyboard-state > label.locked.numlock {
|
||||||
|
border-radius: 0 20px 20px 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#keyboard-state > label.locked.capslock {
|
||||||
|
border-radius: 0 20px 20px 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#language {
|
||||||
|
background: #00b093;
|
||||||
|
color: #740864;
|
||||||
|
/*padding: 0 5px;
|
||||||
|
margin: 0 5px;*/
|
||||||
|
min-width: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#network {
|
||||||
|
background-color: #2980b9;
|
||||||
|
}
|
||||||
|
|
||||||
|
#network.disconnected {
|
||||||
|
background-color: #f53c3c;
|
||||||
|
}
|
||||||
|
|
||||||
|
#cpu {
|
||||||
|
background-color: #2ecc71;
|
||||||
|
color: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
#memory {
|
||||||
|
background-color: #9b59b6;
|
||||||
|
}
|
||||||
|
|
||||||
|
#temperature {
|
||||||
|
background-color: #f0932b;
|
||||||
|
}
|
||||||
|
|
||||||
|
#temperature.critical {
|
||||||
|
background-color: #eb4d4b;
|
||||||
|
}
|
||||||
|
|
||||||
#battery {
|
#battery {
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
@@ -334,6 +308,29 @@ background-color: #2ecc71;
|
|||||||
color: #000000;
|
color: #000000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#pulseaudio {
|
||||||
|
background-color: #f1c40f;
|
||||||
|
color: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
#pulseaudio.muted {
|
||||||
|
background-color: #90b1b1;
|
||||||
|
color: #2a5c45;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tray {
|
||||||
|
background-color: #2980b9;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tray > .passive {
|
||||||
|
-gtk-icon-effect: dim;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tray > .needs-attention {
|
||||||
|
-gtk-icon-effect: highlight;
|
||||||
|
background-color: #eb4d4b;
|
||||||
|
}
|
||||||
|
|
||||||
#clock {
|
#clock {
|
||||||
background-color: #64727D;
|
background-color: #64727D;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user