diff options
| author | Blista Kanjo | 2022-11-05 11:38:51 -0400 |
|---|---|---|
| committer | Blista Kanjo | 2022-11-05 11:38:51 -0400 |
| commit | e08c20b0cec11db0b7e598c2bf22743bd8a1af4e (patch) | |
| tree | 1178f44b874f02f935ab8b97ddefade562083626 | |
| parent | 3626ced088bab4d2c6b9b74fe33f78166b25310a (diff) | |
refactor: replaced several keybinds
| -rw-r--r-- | .config/awesome/rc.lua | 22 |
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"}) |
