From 86cc3f0918429c30308780098041182015ec49f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sat, 2 Jan 2021 13:09:12 +0100 Subject: [PATCH 1/2] examples: laptop: add i3-mode Closes #27 --- examples/configurations/laptop.conf | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/examples/configurations/laptop.conf b/examples/configurations/laptop.conf index d124e72..f6c1df5 100644 --- a/examples/configurations/laptop.conf +++ b/examples/configurations/laptop.conf @@ -45,6 +45,15 @@ bar: - urgent: &urgent foreground: 000000ff deco: {stack: [background: {color: bc2b3fff}, <<: *std_underline]} + - map: &i3_mode + tag: mode + default: + - string: + text: "{mode}" + deco: {background: {color: cc421dff}} + - empty: {right-margin: 7} + values: + default: {empty: {}} content: "": map: @@ -100,11 +109,14 @@ bar: left-margin: 7 tag: application values: - "": {string: {text: "{title}"}} + "": + - 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} From 87b6b986954564ca3f0beb8e021ef4587f29b5c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sat, 2 Jan 2021 14:49:13 +0100 Subject: [PATCH 2/2] examples: laptop: add margin around i3 mode --- examples/configurations/laptop.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/configurations/laptop.conf b/examples/configurations/laptop.conf index f6c1df5..b07ed8a 100644 --- a/examples/configurations/laptop.conf +++ b/examples/configurations/laptop.conf @@ -49,6 +49,7 @@ bar: tag: mode default: - string: + margin: 5 text: "{mode}" deco: {background: {color: cc421dff}} - empty: {right-margin: 7}