From 8100b282065b9ea93bb82f31273ef01badb6cbbe Mon Sep 17 00:00:00 2001 From: Benedikt Heine Date: Mon, 19 Mar 2018 18:20:20 +0100 Subject: [PATCH] Let albert toggle when invoking In some occasions, albert loses focus, but does not close itself. By then, it's still visible and the "show" command does not work. If this occurs, toggle behaves better, as albert will disappear on the first execution and appear **with** focus on the second one. "show" would do nothing and you would have grab your mouse to focus albert again. For the normal use case, "toggle" and "show" work the same. --- i3/i3config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/i3/i3config b/i3/i3config index a0fd10a..fdd6bc1 100644 --- a/i3/i3config +++ b/i3/i3config @@ -114,8 +114,8 @@ bindsym $mod+z exec ~/.local/bin/lockscreen -fl bindsym $mod+y exec ~/.local/bin/lockscreen -fl # start dmenu (a program launcher) -bindsym $mod+x exec --no-startup-id i3-dmenu-desktop --entry-type=command -bindsym $mod+d exec --no-startup-id albert && albert show +bindsym $mod+Shift+d exec --no-startup-id i3-dmenu-desktop --entry-type=command +bindsym $mod+d exec --no-startup-id albert toggle || albert # kill focused window bindsym $mod+Shift+q kill