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

View file

@ -76,6 +76,17 @@ window#waybar {
border-bottom-left-radius: 0; 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 */ /* Style for buttons */
#mpd, #mpd,
#custom-spotify, #custom-spotify,