waybar: update config

This commit is contained in:
Mr Hedgehog 2022-06-29 11:49:42 -04:00
parent 9ad173b8fb
commit 95234e8d19
No known key found for this signature in database
2 changed files with 20 additions and 44 deletions

View file

@ -2,26 +2,9 @@
"layer": "top", // Waybar at top layer
"position": "top", // Waybar position (top|bottom|left|right)
"height": 30, // Waybar height (to be removed for auto height)
// Choose the order of the modules
"modules-left": ["sway/workspaces", "sway/mode"],
"modules-center": ["custom/media",],
"modules-right": ["idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "battery", "clock", "tray"],
// Modules configuration
// "sway/workspaces": {
// "disable-scroll": true,
// "all-outputs": true,
// "format": "{name}: {icon}",
// "format-icons": {
// "1": "",
// "2": "",
// "3": "",
// "4": "",
// "5": "",
// "urgent": "",
// "focused": "",
// "default": ""
// }
// },
"sway/mode": {
"format": "<span style=\"italic\">{}</span>"
},
@ -33,7 +16,6 @@
}
},
"tray": {
// "icon-size": 21,
"spacing": 10
},
"clock": {
@ -51,21 +33,17 @@
"format": "{}% "
},
"temperature": {
// "thermal-zone": 2,
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
"critical-threshold": 80,
// "format-critical": "{temperatureC}°C {icon}",
"format": "{temperatureC}°C {icon}",
"format-icons": ["", "", ""]
},
"backlight": {
// "device": "acpi_video1",
"format": "{percent}% {icon}",
"format-icons": ["", ""]
},
"battery": {
"states": {
// "good": 95,
"good": 80,
"warning": 30,
"critical": 15
},
@ -73,8 +51,8 @@
"format-charging": "{capacity}% ",
"format-plugged": "{capacity}% ",
"format-alt": "{time} {icon}",
// "format-good": "", // An empty format will hide the module
// "format-full": "",
"format-good": "",
"format-full": "",
"format-icons": ["", "", "", "", ""]
},
"battery#bat2": {
@ -84,12 +62,11 @@
"format-wifi": "{essid}",
"format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
"format-linked": "{ifname} (No IP) ",
"format-disconnected": "Not Connected ⚠",
"format-disconnected": "Disconnected! ⚠",
"format-alt": "{ifname}: {ipaddr}/{cidr}"
},
"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}",
@ -108,14 +85,14 @@
"on-click": "pavucontrol"
},
"custom/media": {
"return-type": "json",
"exec": "waybar-mpris --position --autofocus",
"on-click": "waybar-mpris --send toggle",
// This option will switch between players on right click.
"on-click-right": "waybar-mpris --send player-next",
// The options below will go to next/previous track on scroll
"on-scroll-up": "waybar-mpris --send next",
"on-scroll-down": "waybar-mpris --send prev",
"escape": true,
"format": "{icon}{}",
"return-type": "json",
"format-icons": {
"Playing": " ",
"Paused": " ",
},
"max-length":70,
"exec": "playerctl -a metadata --format '{\"text\": \"{{playerName}}: {{artist}} - {{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{markup_escape(title)}}\", \"alt\": \"{{status}}\", \"class\": \"{{status}}\"}' -F",
"on-click": "playerctl play-pause",
},
}

View file

@ -78,6 +78,7 @@ window#waybar {
#memory,
#network,
#pulseaudio,
#clock,
#idle_inhibitor,
#sway-language,
#backlight,
@ -88,17 +89,15 @@ window#waybar {
#custom-weather,
#custom-mail,
#custom-media {
margin: 0px 0px 0px 10px;
padding: 0 8px;
padding-right: 7px;
border-right: 1px solid #414868;
padding: 2px 8px;
margin: 2px 5px;
border: 1px solid #414868;
/* border-top: 3px solid rgba(217, 216, 216, 0.5); */
}
/* #clock {
margin: 0px 16px 0px 10px;
min-width: 140px;
} */
#clock {
font-weight: bold;
}
#battery.warning {
color: rgba(255, 210, 4, 1);