diff --git a/rc.lua b/rc.lua index 11e3ab2..90d2964 100644 --- a/rc.lua +++ b/rc.lua @@ -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(