From 6e71a5d84583c37a05c8409804437728a4b8f89e Mon Sep 17 00:00:00 2001 From: Jason Hilder Date: Fri, 24 Jul 2026 09:51:25 +0200 Subject: [PATCH] Updated binds for emacs. --- config/awesome/rc.lua | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/config/awesome/rc.lua b/config/awesome/rc.lua index 92e9ad5..b74d3f9 100644 --- a/config/awesome/rc.lua +++ b/config/awesome/rc.lua @@ -15,9 +15,10 @@ awful.spawn.with_shell("feh --bg-fill --randomize /home/jason/Pictures/Wallpaper -- Global config -- Alt. Use "Mod4" for the Super/Windows key. -modkey = "Mod4" -terminal = "alacritty" -editor = os.getenv("EDITOR") or "nano" +modkey = "Mod4" +terminal = "alacritty" +theChurch = "emacs" +editor = os.getenv("EDITOR") or "nano" -- Layouts: suit.tile = master column LEFT, stack column RIGHT. awful.layout.layouts = { awful.layout.suit.tile, awful.layout.suit.max } @@ -244,7 +245,8 @@ keys.globalkeys = gears.table.join( awful.key({ modkey, "Shift" }, "l", function() awful.tag.incmwfact( 0.05) end, { description = "grow master", group = "layout" }), -- Launching / layout - awful.key({ modkey }, "Return", function() awful.spawn(terminal) end, { description = "open a terminal", group = "launcher" }), + awful.key({ modkey }, "Return", function() awful.spawn(theChurch) end, { description = "open the church of emacs", group = "launcher" }), + awful.key({ modkey }, "t", function() awful.spawn(terminal) end, { description = "open alacritty", group = "launcher" }), awful.key({ modkey }, "e", function() awful.spawn("thunar") end, { description = "Filemanager", group = "system" }), awful.key({ modkey }, "w", function() awful.layout.inc(1) end, { description = "next layout", group = "layout" }), @@ -291,7 +293,8 @@ end keys.clientkeys = gears.table.join( awful.key({ modkey }, "q", function(c) c:kill() end, { description = "kill window", group = "client" }), awful.key({ modkey }, "f", function(c) c.fullscreen = not c.fullscreen; c:raise() end, { description = "toggle fullscreen", group = "client" }), - awful.key({ modkey }, "m", function(c) c:swap(awful.client.getmaster()) end, { description = "make master", group = "client" }), + -- awful.key({ modkey }, "m", function(c) c:swap(awful.client.getmaster()) end, { description = "make master", group = "client" }), + awful.key({ modkey }, "m", function (c) c.maximized = not c.maximized c:raise() end, {description = "(un)maximize", group = "client"}), awful.key({ modkey, "Control" }, "space", awful.client.floating.toggle, { description = "toggle floating", group = "client" }) )