feat: screenshot keys

This commit is contained in:
AngeD 2022-08-16 11:21:26 +02:00
parent 1d12ec064d
commit f71125b87d

View File

@ -57,7 +57,7 @@ editor = os.getenv("EDITOR") or "nvim"
editor_cmd = terminal .. " -e " .. editor editor_cmd = terminal .. " -e " .. editor
browser = "firefox" browser = "firefox"
files = "thunar" files = "pcmanfm"
lock = "i3lock -ftni" .. gears.filesystem.get_configuration_dir() .. "wallpapers/debian11.png" lock = "i3lock -ftni" .. gears.filesystem.get_configuration_dir() .. "wallpapers/debian11.png"
@ -375,7 +375,24 @@ globalkeys = gears.table.join(
awful.spawn("set-light -10") awful.spawn("set-light -10")
end, end,
{description = "lower brightness", group = "shortcut"} {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 = clientkeys =
@ -646,7 +663,6 @@ apps = {
"nm-applet", "nm-applet",
"killall cbatticon", "killall cbatticon",
"cbatticon BAT0 -i symbolic", "cbatticon BAT0 -i symbolic",
"numlockx",
"flameshot", "flameshot",
} }