Add screenshot key

This commit is contained in:
Arkhist 2019-07-23 14:47:16 +02:00
parent ec08bfe121
commit 3ae20fda42
1 changed files with 6 additions and 1 deletions

7
rc.lua
View File

@ -123,6 +123,8 @@ kbdlayout.switch = function()
os.execute( kbdlayout.cmd .. " " .. t )
end
screenshotCmd = "flameshot gui"
-- {{{ Wibar
-- Create a textclock widget
mytextclock = wibox.widget.textclock()
@ -351,7 +353,10 @@ globalkeys = gears.table.join(
awful.key({ "Mod1" }, "Shift_L", function () kbdlayout.switch() end,
{description = "switch keyboard layout"}),
awful.key({ "Shift" }, "Alt_L", function () kbdlayout.switch() end,
{description = "switch keyboard layout"})
{description = "switch keyboard layout"}),
-- Flameshot
awful.key({}, "Print", function () os.execute( screenshotCmd ) end,
{description = "screenshot using the specified command"})
)
clientkeys = gears.table.join(