From d67e88c6ad0083d7b0dc0320fdbe196f2d9104ce Mon Sep 17 00:00:00 2001 From: Pratik Devkota Date: Thu, 24 Jun 2021 09:28:30 +0000 Subject: [PATCH 1/2] Update rc.lua.template Add a keybindings to dismiss notifications with Ctrl+Space --- rc.lua.template | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rc.lua.template b/rc.lua.template index dd81459..4416ef1 100644 --- a/rc.lua.template +++ b/rc.lua.template @@ -250,6 +250,9 @@ root.buttons(mytable.join( -- {{{ Key bindings globalkeys = mytable.join( + -- Destroy all notifications + awful.key({ "Control", }, "space", function() naughty.destroy_all_notifications() end, + {description = "destroy all notifications", group = "hotkeys"}), -- Take a screenshot -- https://github.com/lcpz/dots/blob/master/bin/screenshot awful.key({ altkey }, "p", function() os.execute("screenshot") end, From 270b1447f66f3d1d6abc19eace94c6571d9c83fd Mon Sep 17 00:00:00 2001 From: Pratik Devkota Date: Fri, 25 Jun 2021 08:37:17 +0545 Subject: [PATCH 2/2] Update themes/powerarrow-dark/theme.lua 1. On 'modkey' used on line 140 hasn't been declared before, therefore the function won't be executed. 2. Change awful.spawn.with_shell() to awful.spawn() --- themes/powerarrow-dark/theme.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/powerarrow-dark/theme.lua b/themes/powerarrow-dark/theme.lua index 03d75b1..0e33209 100644 --- a/themes/powerarrow-dark/theme.lua +++ b/themes/powerarrow-dark/theme.lua @@ -137,7 +137,7 @@ theme.mail = lain.widget.imap({ local musicplr = awful.util.terminal .. " -title Music -g 130x34-320+16 -e ncmpcpp" local mpdicon = wibox.widget.imagebox(theme.widget_music) mpdicon:buttons(my_table.join( - awful.button({ modkey }, 1, function () awful.spawn.with_shell(musicplr) end), + awful.button({ "Mod4" }, 1, function () awful.spawn(musicplr) end), awful.button({ }, 1, function () os.execute("mpc prev") theme.mpd.update()