Add screenshot key

This commit is contained in:
Arkhist 2019-07-23 14:47:16 +02:00
parent ec08bfe121
commit 3ae20fda42

7
rc.lua
View File

@ -123,6 +123,8 @@ kbdlayout.switch = function()
os.execute( kbdlayout.cmd .. " " .. t ) os.execute( kbdlayout.cmd .. " " .. t )
end end
screenshotCmd = "flameshot gui"
-- {{{ Wibar -- {{{ Wibar
-- Create a textclock widget -- Create a textclock widget
mytextclock = wibox.widget.textclock() mytextclock = wibox.widget.textclock()
@ -351,7 +353,10 @@ globalkeys = gears.table.join(
awful.key({ "Mod1" }, "Shift_L", function () kbdlayout.switch() end, awful.key({ "Mod1" }, "Shift_L", function () kbdlayout.switch() end,
{description = "switch keyboard layout"}), {description = "switch keyboard layout"}),
awful.key({ "Shift" }, "Alt_L", function () kbdlayout.switch() end, 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( clientkeys = gears.table.join(