From 071fbbc04e42df6f5f573cc64693b29930b57606 Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Mon, 18 Jan 2021 09:54:06 +0100 Subject: [PATCH] make it possible to define false to end activity on workspace selection --- templates/workspaces/workspace.focus.fish.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/workspaces/workspace.focus.fish.j2 b/templates/workspaces/workspace.focus.fish.j2 index cdb53c4..4864de0 100644 --- a/templates/workspaces/workspace.focus.fish.j2 +++ b/templates/workspaces/workspace.focus.fish.j2 @@ -3,5 +3,9 @@ i3-msg mode remote {% if workspaces[workspace].activity is defined %} +{% if workspaces[workspace].activity %} ~/bin/timer begin_activity "{{workspaces[workspace].activity}}" +{% else %} +~/bin/timer end_activity +{% endif %} {% endif %}