From dff7f7bed7de2eec5da4b9a829ef99d8aba725f1 Mon Sep 17 00:00:00 2001 From: ache Date: Fri, 21 Dec 2018 06:59:46 +0100 Subject: Screenshot notification --- rc.lua | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/rc.lua b/rc.lua index 63b2b20..e404942 100644 --- a/rc.lua +++ b/rc.lua @@ -15,13 +15,10 @@ awful.screen = require("awful.screen") local hotkeys = require("awful.hotkeys_popup") local hotkeys_popup = require("awful.hotkeys_popup").widget - -- Lain local lain = require("lain") - - -- {{{ Error handling -- Check if awesome encountered an error during startup and fell back to -- another config (This code will only ever execute for the fallback config) @@ -514,15 +511,8 @@ local own_rule_any = { } hotkeys_popup.add_hotkeys(own_rule_any) - - - - - layoutKkb = 1 - - -- {{{ Key bindings globalkeys = awful.util.table.join( @@ -583,9 +573,15 @@ awful.key({ modkey, "Shift" }, "s", hotkeys_popup.show_help, {descriptio awful.key({ modkey, "Mod1"}, "r", function () awful.util.spawn_with_shell("xterm -e 'ranger'") end, {description = "Ranger", group = "awesome"}), awful.key({ modkey, "Control"}, "r", function () awful.util.spawn("pcmanfm") end), - awful.key({ modkey, }, "s", function () awful.util.spawn("scrot") end, + awful.key({ modkey, }, "s", function () + awful.util.spawn("scrot") + naughty.notify({ title = 'Scrot', text = 'New screenshot taken', timeout = 3 }) + end, {description = "Screenshot", group = "awesome"}), - awful.key({ modkey, "Control" }, "s", function () awful.util.spawn("scrot -u") end, + awful.key({ modkey, "Control" }, "s", function () + awful.util.spawn("scrot -u") + naughty.notify({ title = 'Scrot', text = 'Use the mouse to make a screenshot', timeout = 2 }) + end, {description = "Screenshot selection", group = "awesome"}), @@ -598,7 +594,7 @@ awful.key({ modkey, "Shift" }, "s", hotkeys_popup.show_help, {descriptio awful.key({ modkey, "Control" }, "Right", function() awful.screen.focus_relative( 1) end, {description = "Previous screen", group = "awesome"}), awful.key({ modkey, }, "Escape", awful.tag.history.restore), - + awful.key({ modkey, }, "Tab", function () @@ -610,8 +606,6 @@ awful.key({ modkey, "Shift" }, "s", hotkeys_popup.show_help, {descriptio awful.client.focus.byidx(-1) if client.focus then client.focus:raise() end end,{description = "Previous client", group = "client"}), --- - awful.key({ modkey, }, "w", function () awful.util.spawn("autoWall") end, {description = "Switch wallpaper", group = "awesome"}), -- cgit v1.2.3