A screenshot widget for Awesome WM. It's compatible with Awesome 4 (4.3)
- scrot
- xclip
cd $XDG_CONFIG_HOME/awesome/
git clone https://github.com/denisoster/awesomewm-screenshot.git
Just put these line to the appropriate places in $XDG_CONFIG_HOME/awesome/rc.lua.
-- Load the widget.
local screenshot = require("screenshot")
-- Configure the hotkeys.
awful.key({ }, "Print", scrot_full,
{description = "Take a screenshot of entire screen", group = "screenshot"}),
awful.key({ modkey, }, "Print", scrot_selection,
{description = "Take a screenshot of selection", group = "screenshot"}),
awful.key({ "Shift" }, "Print", scrot_window,
{description = "Take a screenshot of focused window", group = "screenshot"}),
awful.key({ "Ctrl" }, "Print", scrot_delay,
{description = "Take a screenshot of delay", group = "screenshot"}),
the default storage of the ~/Pictures/Screenshots/
I added the async functionality in the spawn commands since the orginal way wasn't working for me.
this software is distributed in MIT License