From fa28daf5d0eea04721c7957a8c1ec08814c05b95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Mon, 24 Feb 2020 14:33:27 +0100 Subject: [PATCH] Fix presentation mode --- i3/i3status.conf.j2 | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/i3/i3status.conf.j2 b/i3/i3status.conf.j2 index 5d9655c..d54c854 100644 --- a/i3/i3status.conf.j2 +++ b/i3/i3status.conf.j2 @@ -22,7 +22,7 @@ general { order += volume_status order += spotify order += "wifi" -order += presentation_mode +order += "external_script presentation_mode" order += online_status order += "battery_level all" order += "clock" @@ -61,9 +61,12 @@ spotify { on_click 2 = "exec $HOME/.i3/scripts/spotify-control next" } -async_script presentation_mode { - format = "{output}" - script = "$HOME/.i3/scripts/presentation-mode status" +external_script presentation_mode { + format = " Present: {output} " + script_path = "$HOME/.i3/scripts/presentation-mode status" + strip_output = True + on_click 1 = "exec $HOME/.i3/scripts/presentation-mode toggle" + } online_status {