Add focused window title to Waybar

Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
Severin Kaderli 2023-01-13 19:10:06 +01:00
parent 8d8864836b
commit ae974d2eba
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4
2 changed files with 9 additions and 1 deletions

View file

@ -6,7 +6,7 @@
"spacing": 6,
"margin": "6px",
"modules-left": ["sway/workspaces", "sway/mode"],
"modules-center": [],
"modules-center": ["sway/window"],
"modules-right": ["custom/update", "pulseaudio", "battery", "network", "clock", "custom/power"],
"sway/workspaces": {
"disable-scroll": true,
@ -24,6 +24,9 @@
"10": "ﱘ",
}
},
"sway/window": {
"max-length": 50,
},
"custom/update": {
"format": "累 {}",
"exec": "update-count",

View file

@ -28,6 +28,11 @@
border-radius: 6px;
}
window#waybar.empty #window {
padding: 0;
background: transparent;
}
#workspaces button:first-child {
border-top-left-radius: 6px;
border-bottom-left-radius: 6px;