This commit is contained in:
2026-07-10 22:09:16 -05:00
parent cd93846314
commit 6fc12b104c
4 changed files with 149 additions and 18 deletions
+71
View File
@@ -0,0 +1,71 @@
{
"layer": "top",
"position": "top",
"mode": "dock",
"exclusive": true,
"modules-left": ["sway/workspaces"],
"modules-center": ["sway/window"],
"modules-right": [
"custom/recording",
"custom/vpn",
"cpu",
"memory",
"pulseaudio",
"battery",
"clock"
],
"sway/workspaces": {
"disable-scroll": true,
"all-outputs": false,
"format": "{name}"
},
"sway/window": {
"format": "{}",
"max-length": 50,
"rewrite": {
"": "Desktop"
}
},
"cpu": {
"interval": 5,
"format": "CPU: {usage:2}% / "
},
"memory": {
"interval": 5,
"format": "RAM: {used:0.1f}GiB/{total:.0f}GiB / "
},
"pulseaudio": {
"format": "VOL: {volume}% / ",
"format-muted": "VOL: Muted / "
},
"custom/recording": {
"exec": "pgrep -x wf-recorder >/dev/null && echo 'RECORDING! / ' || echo ''",
"interval": 1,
"format": "{}"
},
"custom/vpn": {
"exec": "python3 ~/.config/sway/main/getvpn.py",
"interval": 2,
"format": "{alt}{text}"
},
"battery": {
"interval": 2,
"format": "{capacity}% ({status}) / ",
"format-charging": "{capacity}% (Charging) / ",
"format-plugged": "{capacity}% (Charging) / "
},
"clock": {
"interval": 1,
"format": "{:%Y-%m-%d %I:%M %p}"
}
}
+61
View File
@@ -0,0 +1,61 @@
window#waybar {
background-color: #000000;
color: #ffffff;
font-family: "Noto Sans Mono", monospace;
font-size: 13px;
border-radius: 0;
}
#workspaces button {
padding: 0 5px;
background-color: #000000;
color: #ffffff;
border: none;
border-radius: 0;
box-shadow: none;
text-shadow: none;
transition: none;
}
#workspaces button:hover {
background-color: #000000;
color: #ffffff;
border: none;
box-shadow: none;
}
#workspaces button.focused,
#workspaces button.visible {
background-color: #ffffff;
color: #000000;
border-radius: 0;
}
#workspaces button.focused:hover,
#workspaces button.visible:hover {
background-color: #ffffff;
color: #000000;
}
#workspaces button.urgent {
background-color: #ffffff;
color: #ffffff;
border-radius: 0;
}
#window {
color: #ffffff;
background: transparent;
font-weight: bold;
}
#cpu, #memory, #pulseaudio, #custom-recording, #custom-vpn, #battery, #clock {
padding: 0;
margin: 0;
background: transparent;
border-radius: 0;
}
.modules-right {
padding-right: 10px;
}