summaryrefslogtreecommitdiffstats
path: root/programs/dotfiles/awesome/rc.lua
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2023-09-24 07:25:56 -0400
committerJon Santmyer <jon@jonsantmyer.com>2023-09-24 07:25:56 -0400
commit0395c7beb1e35d252d607c9e047a3037daa09832 (patch)
tree6ba8e5696799d69c6865b8f6991feec8afcc3977 /programs/dotfiles/awesome/rc.lua
parent1a646f724ebd8c79bfecd89b57207842e25b93c7 (diff)
downloadnix-config-0395c7beb1e35d252d607c9e047a3037daa09832.tar.gz
nix-config-0395c7beb1e35d252d607c9e047a3037daa09832.tar.bz2
nix-config-0395c7beb1e35d252d607c9e047a3037daa09832.zip
add scratchpad to awesome
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",