From 3a17791961e982022cdd53e52b3f2a1bdb35a567 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Tue, 22 Dec 2020 14:25:28 +0530 Subject: added keybindings to modify gaps on runtime (there is an error) --- awesome/rc.lua | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/awesome/rc.lua b/awesome/rc.lua index 696cc3ef..b2e80558 100755 --- a/awesome/rc.lua +++ b/awesome/rc.lua @@ -86,11 +86,6 @@ awful.layout.layouts = { -- awful.layout.suit.corner.se, } - -function sh(command) - awful.spawn.with_shell(command) -end - -- Keyboard map indicator and switcher mykeyboardlayout = awful.widget.keyboardlayout() @@ -343,8 +338,17 @@ tagKeys = gears.table.join( if client.focus then client.focus:toggle_tag(tag12) end + end), + + -- modify gaps + awful.key({ "Mod1", "Shift", }, "j", function() + beautiful.useless_gap = beautiful.useless_gap - 1 + end), + awful.key({ "Mod1", "Shift", }, "k", function() + beautiful.useless_gap = beautiful.useless_gap + 1 end) ) + -- keybindings to handle clients -- i.e minimizing, maximizing, hiding, closing windows clientkeys = gears.table.join( @@ -477,7 +481,7 @@ tag11 = awful.tag.add("十一", { screen = awful.screen.focused(), layout = awful.layout.suit.floating, }) -tag12 = awful.tag.add("十三", { +tag12 = awful.tag.add("十二", { screen = awful.screen.focused(), layout = awful.layout.suit.floating, }) -- cgit v1.2.3