Fix screenshot binds

Forgot to change them from helpers.screenshot to apps.screenshot
This commit is contained in:
elenapan 2020-04-21 21:43:40 +03:00
parent 41281d368b
commit b60c1ccda6
2 changed files with 5 additions and 4 deletions

View file

@ -5,6 +5,7 @@ local beautiful = require("beautiful")
local naughty = require("naughty")
local icons = require("icons")
local helpers = require("helpers")
local apps = require("apps")
local keygrabber = require("awful.keygrabber")
@ -589,12 +590,12 @@ local screenshot_box = create_boxed_widget(screenshot, dpi(150), dpi(78), x.back
screenshot_box:buttons(gears.table.join(
-- Left click - Take screenshot
awful.button({ }, 1, function ()
helpers.screenshot("full")
apps.screenshot("full")
end),
-- Right click - Take screenshot in 5 seconds
awful.button({ }, 3, function ()
naughty.notify({title = "Say cheese!", text = "Taking shot in 5 seconds", timeout = 4, icon = icons.screenshot})
helpers.screenshot("full", 5)
apps.screenshot("full", 5)
end)
))

View file

@ -509,12 +509,12 @@ local screenshot_box = create_boxed_widget(screenshot, dpi(150), dpi(78), x.back
screenshot_box:buttons(gears.table.join(
-- Left click - Take screenshot
awful.button({ }, 1, function ()
helpers.screenshot("full")
apps.screenshot("full")
end),
-- Right click - Take screenshot in 5 seconds
awful.button({ }, 3, function ()
naughty.notify({title = "Say cheese!", text = "Taking shot in 5 seconds", timeout = 4, icon = icons.screenshot})
helpers.screenshot("full", 5)
apps.screenshot("full", 5)
end)
))