example: conf: use foreign-toplevel instead of i3’s ‘current’

This commit is contained in:
Daniel Eklöf 2021-10-24 17:24:15 +02:00
parent cad9dd8efd
commit 7d715d81a8
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -105,23 +105,17 @@ bar:
unfocused: {string: {<<: *music}} unfocused: {string: {<<: *music}}
invisible: {string: {<<: [*music, *invisible]}} invisible: {string: {<<: [*music, *invisible]}}
urgent: {string: {<<: [*music, *urgent]}} urgent: {string: {<<: [*music, *urgent]}}
current:
map:
left-margin: 7
tag: application
values:
"":
- map: {<<: *i3_mode}
- string: {text: "{title}"}
default:
list:
spacing: 0
items:
- map: {<<: *i3_mode}
- string: {text: "{application}", max: 10, foreground: ffa0a0ff}
- string: {text: ": "}
- string: {text: "{title}", max: 35}
- foreign-toplevel:
content:
map:
tag: activated
values:
false: {empty: {}}
true:
- string: {text: "{app-id}", foreground: ffa0a0ff}
- string: {text: ": "}
- string: {text: "{title}"}
center: center:
- mpd: - mpd:
host: /run/mpd/socket host: /run/mpd/socket