From 0395c7beb1e35d252d607c9e047a3037daa09832 Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Sun, 24 Sep 2023 07:25:56 -0400 Subject: add scratchpad to awesome --- programs/dotfiles/awesome/rc.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'programs/dotfiles/awesome/rc.lua') 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", -- cgit v1.2.1