diff options
author | zachir <zachir@librem.one> | 2025-07-28 13:15:10 -0500 |
---|---|---|
committer | zachir <zachir@librem.one> | 2025-07-28 13:15:10 -0500 |
commit | 437d77fc962e19d6ee4a060b53c390657e2d0ef2 (patch) | |
tree | 4115ea14fe7a79bdf81b8ee1caafcfa1824e3dc0 | |
parent | b8f311d06956fb7dbc8eb390dc02d11efb62e972 (diff) | |
parent | 98d4473f1c9783c7bc8f01208f1996b2e40e53ce (diff) |
Merge branch 'master' into clacla
-rw-r--r-- | scroll/scripts/scratchpad.lua | 6 |
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() |