From c425575caeaa8338eed29f2e9eb593022361469d Mon Sep 17 00:00:00 2001 From: actionless Date: Fri, 9 Nov 2018 06:08:48 +0100 Subject: [PATCH] fix(hotkeys: tmux): don't show tmux hotkeys if no rule was specified by user --- lib/awful/hotkeys_popup/keys/tmux.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/awful/hotkeys_popup/keys/tmux.lua b/lib/awful/hotkeys_popup/keys/tmux.lua index e3b771e03..1023b4661 100644 --- a/lib/awful/hotkeys_popup/keys/tmux.lua +++ b/lib/awful/hotkeys_popup/keys/tmux.lua @@ -14,10 +14,10 @@ local tmux = {} -- -- For example: -- --- tmux.add_rules_for_terminal({ rule = { name = { "tmux" }}}) +-- tmux.add_rules_for_terminal({ rule = { name = "tmux" }}) -- -- will show tmux hotkeys for any window that has 'tmux' in its title. --- If no rules are provided then tmux hotkeys will be shown always! +-- If no rules are provided then tmux hotkeys won't be shown. -- @function add_rules_for_terminal -- @see awful.rules.rules -- @tparam table rule Rules to match a window containing a tmux session. @@ -32,6 +32,9 @@ function tmux.add_rules_for_terminal(rule) end end +-- don't show hotkeys by default +tmux.add_rules_for_terminal({rule={focusable=false}}) + local tmux_keys = { ["tmux: sessions"] = {{ modifiers = {},