From f71125b87dd7fdb0d1860f0316df75ddbafb2e0b Mon Sep 17 00:00:00 2001 From: AngeD Date: Tue, 16 Aug 2022 11:21:26 +0200 Subject: [PATCH] feat: screenshot keys --- .config/awesome/rc.lua | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 80cec39..1ff9f4b 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -57,7 +57,7 @@ editor = os.getenv("EDITOR") or "nvim" editor_cmd = terminal .. " -e " .. editor browser = "firefox" -files = "thunar" +files = "pcmanfm" lock = "i3lock -ftni" .. gears.filesystem.get_configuration_dir() .. "wallpapers/debian11.png" @@ -375,7 +375,24 @@ globalkeys = gears.table.join( awful.spawn("set-light -10") end, {description = "lower brightness", group = "shortcut"} + ), + awful.key( + {}, + "Print", + function() + awful.spawn("flameshot full -c") + end, + {description = "take a screenshot", group = "shortcut"} + ), + awful.key( + {"Shift"}, + "Print", + function() + awful.spawn("flameshot gui") + end, + {description = "take a rectangular screenshot", group = "shortcut"} ) + ) clientkeys = @@ -646,7 +663,6 @@ apps = { "nm-applet", "killall cbatticon", "cbatticon BAT0 -i symbolic", - "numlockx", "flameshot", }