aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/awesome/rc.lua22
1 files changed, 20 insertions, 2 deletions
diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua
index a8ea789..3af9b74 100644
--- a/.config/awesome/rc.lua
+++ b/.config/awesome/rc.lua
@@ -316,7 +316,7 @@ globalkeys = gears.table.join(
{description = "take a screenshot of the active window", group = "launcher"}),
awful.key({ "Shift" }, "Print", function () awful.spawn.easy_async_with_shell("xfce4-screenshooter -r --mouse") end,
{description = "take a screenshot of an area of the screen", group = "launcher"}),
- awful.key({ modkey, "Mod1" }, "x", function () awful.spawn.easy_async_with_shell("xkill") end,
+ awful.key({ modkey }, "x", function () awful.spawn.easy_async_with_shell("xkill") end,
{description = "kill a window by brute force", group = "launcher"}),
awful.key({ "Control", "Mod1" }, "Delete", function () awful.spawn("alacritty -t 'Task Manager' -e 'htop'") end,
{description = "launch HTOP", group = "launcher"}),
@@ -401,10 +401,15 @@ globalkeys = gears.table.join(
{description = "restore minimized", group = "client"}),
-- Prompt
+ awful.key({ modkey }, "r", function () awful.screen.focused().mypromptbox:run() end,
+ {description = "run prompt", group = "launcher"}),
+
+ -- Prompt (Alternate Keybind)
awful.key({ "Mod1" }, "F2", function () awful.screen.focused().mypromptbox:run() end,
{description = "run prompt", group = "launcher"}),
- awful.key({ modkey }, "x",
+ -- Lua Prompt
+ awful.key({ modkey, "Mod1" }, "r",
function ()
awful.prompt.run {
prompt = "Run Lua code: ",
@@ -414,6 +419,19 @@ globalkeys = gears.table.join(
}
end,
{description = "lua execute prompt", group = "awesome"}),
+
+ -- Lua Prompt (Alternate Keybind)
+ awful.key({ "Mod1" }, "F3",
+ function ()
+ awful.prompt.run {
+ prompt = "Run Lua code: ",
+ textbox = awful.screen.focused().mypromptbox.widget,
+ exe_callback = awful.util.eval,
+ history_path = awful.util.get_cache_dir() .. "/history_eval"
+ }
+ end,
+ {description = "lua execute prompt", group = "awesome"}),
+
-- Menubar
awful.key({ "Shift" }, "space", function() menubar.refresh() menubar.show() end,
{description = "show the menubar", group = "launcher"})