summaryrefslogtreecommitdiffstats
path: root/programs/dotfiles/awesome/rc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'programs/dotfiles/awesome/rc.lua')
-rw-r--r--programs/dotfiles/awesome/rc.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/programs/dotfiles/awesome/rc.lua b/programs/dotfiles/awesome/rc.lua
index f8cc3d6..ccd1d1a 100644
--- a/programs/dotfiles/awesome/rc.lua
+++ b/programs/dotfiles/awesome/rc.lua
@@ -21,6 +21,9 @@ local naughty = require("naughty")
local menubar = require("menubar")
local hotkeys_popup = require("awful.hotkeys_popup")
+-- Scratch pad
+local scratch = require("scratch")
+
-- Enable hotkeys help widget for VIM and other apps
-- when client with a matching name is opened:
require("awful.hotkeys_popup.keys")
@@ -390,6 +393,9 @@ globalkeys = gears.table.join(
{description = "open a terminal", group = "launcher"}),
awful.key({ modkey, }, "w", function () awful.spawn(webbrowser) end,
{description = "open the web browser", group = "launcher"}),
+ awful.key({ modkey, }, "`", function() scratch.toggle("kitty --name scratch-terminal",
+ { instance = "scratch-terminal" }) end,
+ {description = "spawn a terminal scratch-pad", group = "launcher"}),
awful.key({ modkey, "Control" }, "r", awesome.restart,
{description = "reload awesome", group = "awesome"}),
@@ -578,6 +584,7 @@ awful.rules.rules = {
"DTA", -- Firefox addon DownThemAll.
"copyq", -- Includes session name in class.
"pinentry",
+ "scratch-terminal",
},
class = {
"Arandr",