diff options
author | Vidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com> | 2020-10-28 15:34:14 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com> | 2020-10-28 15:34:14 +0530 |
commit | 70be66723bc11b49332887787f4cd3b844833b06 (patch) | |
tree | a063860e0ef649100890e8017ca7ad797589e392 | |
parent | 09c68ed4aeb46595bf148aafc87928ba5c46f1b1 (diff) |
added scrot and pcmanfm keybindings
-rwxr-xr-x | awesome/rc.lua | 12 | ||||
-rwxr-xr-x | herbstluftwm/autostart | 6 |
2 files changed, 15 insertions, 3 deletions
diff --git a/awesome/rc.lua b/awesome/rc.lua index 07c9aaa6..19874936 100755 --- a/awesome/rc.lua +++ b/awesome/rc.lua @@ -286,6 +286,18 @@ globalkeys = gears.table.join( end end, {description = "go back", group = "client"}), + + -- custom hotkeys + + awful.key({ modkey, "Shift" }, "Return", function () awful.spawn.with_shell("pcmanfm") end, + {description = "open file manager", group = "custom"}), + + awful.key({ modkey, "Shift" }, "m", function () awful.spawn.with_shell("betterlockscreen -s ") end, + {description = "lock screen", group = "custom"}), + + awful.key({ "Mod1", }, "s", function () awful.spawn.with_shell("scrot ~/Media/Screenshots/%Y-%d-%m-%T-screenshot.png") end, + {description = "take a screenshot", group = "custom"}), + -- Standard program awful.key({ modkey, }, "Return", function () awful.spawn(terminal) end, diff --git a/herbstluftwm/autostart b/herbstluftwm/autostart index a946bbd1..ae804687 100755 --- a/herbstluftwm/autostart +++ b/herbstluftwm/autostart @@ -19,10 +19,10 @@ hc set focus_follows_mouse 1 # if you have a super key you will be much happier with Mod set to Mod4 # Mod=Mod1 # Use alt as the main modifier Mod=Mod4 # Use the super key as the main modifier -hc keybind Control-d spawn caja hc keybind Mod1-Return spawn dmenu_run -hc keybind Mod4-Shift-m spawn betterlockscreen -s -t 'Vidhu Kant is gone rn' -hc keybinf Mod1-s spawn scrot ~/Screenshots/%Y-%m-%d-%T-screenshot.png +hc keybind Mod4-Shift-m spawn betterlockscreen -s +hc keybind Mod1-s spawn scrot ~/Media/Screenshots/%Y-%d-%m-%T-screenshot.png +hc keybind Mod4-Shift-Return spawn pcmanfm # autostart firefox & |