Updated waybar for laptop display

This commit is contained in:
Damien Broqua 2021-11-08 15:31:25 +01:00
parent 582ab7a111
commit d205c2bdb2
2 changed files with 28 additions and 16 deletions

View File

@ -1,5 +1,6 @@
[
{
"name": "thinkstation",
"layer": "bottom",
"position": "top",
"margin": 4,
@ -135,6 +136,7 @@
}
},
{
"name": "laptop",
"layer": "bottom",
"position": "top",
"margin": 4,
@ -161,7 +163,7 @@
"tray"
],
"custom/clock": {
"exec": "date +'%a %x %R'",
"exec": "date +'%d/%m/%Y %H:%M'",
"interval": 60,
},
"sway/workspaces": {
@ -175,13 +177,13 @@
"interval": 60,
"format": " {percentage_used:2}%",
"path": "/",
"tooltip": false,
"tooltip": true,
},
"disk#2": {
"interval": 60,
"format": " {percentage_used:2}%",
"path": "/home",
"tooltip": false
"tooltip": true
},
"battery": {
"bat": "BAT0",
@ -192,7 +194,8 @@
},
"format": "{capacity}% {icon}",
"format-icons": ["", "", "", "", ""],
"max-length": 25
"max-length": 25,
"tooltip": true
},
"network": {
"interface": "wlp59s0",
@ -201,32 +204,34 @@
"format-ethernet": "{ifname} ",
"format-disconnected": "", //An empty format will hide the module.
"max-length": 50,
"tooltip": false
"tooltip": true
},
"network#openvpn": {
"interface": "tun0",
"format": "🔒",
"format-disconnected": "🔓", //An empty format will hide the module.
"max-length": 50,
"tooltip": false
"tooltip": true
},
"cpu": {
"format": " {load}%",
"tooltip": false
"tooltip": true
},
"memory": {
"format": " {percentage}%",
"tooltip": false
"tooltip": true
},
"temperature": {
"thermal-zone": 1,
"hwmon-path": "/sys/class/hwmon/hwmon0/temp1_input",
"format": " {temperatureC}°C"
"format": " {temperatureC}°C",
"tooltip": true,
},
"backlight": {
"device": "intel_backlight",
"format": "{percent}% {icon}",
"format-icons": ["", ""]
"format-icons": ["", ""],
"tooltip": true,
},
"pulseaudio": {
"format": "♪ {volume}% {icon}",
@ -243,7 +248,7 @@
},
"scroll-step": 5,
"on-click": "pavucontrol",
"tooltip": false
"tooltip": true
},
"mpd": {
"format": "{stateIcon}{randomIcon}{repeatIcon}{singleIcon} {artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ",
@ -267,11 +272,7 @@
},
"tooltip-format": "MPD (connected)",
"tooltip-format-disconnected": "MPD (disconnected)",
"tooltip": false
},
"clock": {
"format": "{:%d/%m %H:%M}",
"tooltip": false
"tooltip": true
},
"tray": {
"spacing": 10

View File

@ -76,6 +76,17 @@ window#waybar {
border-bottom-left-radius: 0;
}
/* Style for battery */
#battery.discharging {
border: 2px solid rgba(208, 135, 112, 0.7);
}
#battery.warning {
background: rgba(208, 135, 112, 0.7);
}
#battery.critical {
background: rgba(191, 97, 106, 0.7);
}
/* Style for buttons */
#mpd,
#custom-spotify,