diff options
author | ache <ache@ache.one> | 2018-12-21 06:59:46 +0100 |
---|---|---|
committer | ache <ache@ache.one> | 2018-12-21 06:59:46 +0100 |
commit | dff7f7bed7de2eec5da4b9a829ef99d8aba725f1 (patch) | |
tree | 6545de75b92641f2305a5e0e559e9b3ca719a685 | |
parent | No vlc particularity (diff) |
Screenshot notification
-rw-r--r-- | rc.lua | 24 |
1 files changed, 9 insertions, 15 deletions
@@ -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"}), |