From 2a912fc8fef9816e232baa8e1becdbdf3d924ae8 Mon Sep 17 00:00:00 2001 From: elenapan Date: Wed, 18 Mar 2020 08:50:15 +0200 Subject: [PATCH] Keybind fixes for desktop elements --- config/awesome/keys.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/config/awesome/keys.lua b/config/awesome/keys.lua index 64d4c86..09c76fd 100644 --- a/config/awesome/keys.lua +++ b/config/awesome/keys.lua @@ -40,12 +40,16 @@ keys.desktopbuttons = gears.table.join( -- Right click - Show app drawer -- awful.button({ }, 3, function () mymainmenu:toggle() end), awful.button({ }, 3, function () - app_drawer_show() + if app_drawer_show then + app_drawer_show() + end end), -- Middle button - Toggle dashboard awful.button({ }, 2, function () - dashboard_show() + if dashboard_show then + dashboard_show() + end end), -- Scrolling - Switch tags