summaryrefslogtreecommitdiff
path: root/scroll/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scroll/scripts')
-rw-r--r--scroll/scripts/scratchpad.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/scroll/scripts/scratchpad.lua b/scroll/scripts/scratchpad.lua
index 3dcfe8f..0afaa97 100644
--- a/scroll/scripts/scratchpad.lua
+++ b/scroll/scripts/scratchpad.lua
@@ -6,12 +6,14 @@ local command = nil
for i, arg in ipairs(args) do
if i <= 1 then
id = arg
+ if #args == 1 then
+ command = arg
+ end
elseif i == 2 then
if (arg == "kitty") then
terminal = true
else
command = arg
- --terminal = true
end
elseif (terminal == true) then
command = arg
@@ -19,6 +21,8 @@ for i, arg in ipairs(args) do
end
end
+command = command or "kitty"
+
local function exists(id)
local is_in_scratchpad = false
local cons = scroll.scratchpad_get_containers()