Updated waybar

This commit is contained in:
2024-01-16 22:40:16 -06:00
parent 158fa4ce30
commit ae7cc50cac
2 changed files with 61 additions and 76 deletions
+44 -28
View File
@@ -3,27 +3,37 @@
"name": "main",
"layer": "top",
"position": "top",
"height": 34,
"height": 38,
"spacing": 4,
"margin-top": 10,
"margin-top": 4,
"margin-bottom": 0,
"output": "DP-2",
"output": "eDP-1",
"modules-left": [
"wireplumber",
"disk",
"memory",
"cpu",
"temperature"
"temperature",
"pulseaudio"
],
"modules-center": ["wlr/taskbar"],
"modules-center": ["hyprland/workspaces"],
"modules-right": [
"hyprland/workspaces",
"tray",
"network#wifi",
"custom/weather",
"network#ethernet",
"battery",
"clock",
"custom/poweroff"
],
"battery": {
"interval": 60,
"states": {
"warning": 30,
"critical": 15
},
"format": "{icon} {capacity}%",
"format-icons": ["", "", "", "", "", ""],
"max-length": 25
},
"clock": {
"interval": 1,
"format": "<b>{:%H:%M:%S}</b>",
@@ -51,26 +61,34 @@
},
"temperature": {
"critical-threshold": 80,
"format": " {icon} {temperatureC}°C ",
"format": "{icon} {temperatureC}°C",
"format-icons": ["", "", "", "", ""],
"hwmon-path": "/sys/class/thermal/thermal_zone2/temp"
},
"network#ethernet": {
"interface": "enp*",
"format-ethernet": "",
"format-wifi": "",
"format-linked": "",
"network#wifi": {
"interface": "wlo1",
"format-wifi": " {essid} ({signalStrength})%",
"format-disconnected": "",
"tooltip-format": "{ifname}: {ipaddr}/{cidr}",
"on-click": "nm-connection-editor"
},
"sway/mode": {
"format": "<span style=\"italic\">{}</span>"
"tooltip-format": "{ifname}: {ipaddr}/{cidr}"
},
"hyprland/workspaces": {
"format": "{name}",
"format": "{icon}",
"sort-by-number": true,
"all-outputs": true
"all-outputs": true,
"disable-scroll": true,
"active-only": false,
"format-icons": {
"default": "",
"persistent": "",
"active": ""
},
"persistent-workspaces": {
"1": [ ],
"2": [ ],
"3": [ ],
"4": [ ],
"5": [ ]
}
},
"wlr/taskbar": {
"format": "{name}",
@@ -84,19 +102,17 @@
],
"rewrite": {
"(.*)Firefox Web Browser": "",
"(.*)Discord": "",
"(.*)Discord": "󰙯",
"(.*)Alacritty": "",
"Steam(.*)": "",
"(.*)Spotify": ""
}
},
"wireplumber": {
"pulseaudio": {
"format": " {volume}%",
"format-muted": " 0%",
"on-click": "pavucontrol",
"on-click-right": "helvum",
"max-volume": 100,
"scroll-step": 5
"scroll-step": 0
},
"tray": {
"icon-size": 21,
@@ -112,10 +128,10 @@
"custom/poweroff": {
"tooltip": false,
"format": " ",
"on-click": "bash $HOME/.config/waybar/scripts/poweroff.sh"
"on-click": "bash ~/.config/waybar/scripts/poweroff.sh"
},
"custom/weather": {
"exec": "$HOME/.config/waybar/scripts/get_weather.sh Belleville+Illinois",
"exec": "~/.config/waybar/scripts/get_weather.sh Belleville+Illinois",
"return-type": "json",
"format": "{}",
"tooltip": true,