diff options
author | zachir <zachir@librem.one> | 2025-07-30 06:52:19 -0500 |
---|---|---|
committer | zachir <zachir@librem.one> | 2025-07-30 06:52:19 -0500 |
commit | 96e30fbe6d97242feacfd6f160396f01ec87a9f4 (patch) | |
tree | ba6cbfe5a601d59a9b01d6c4a3a72240f516d1d0 /scroll/scripts/scratchpad.lua | |
parent | 442246498a50440a19d9cba78e83abb55d542879 (diff) | |
parent | 758bf486be2560343561b1d03bffe998f6f932b4 (diff) |
Merge branch 'master' into cas
Diffstat (limited to 'scroll/scripts/scratchpad.lua')
-rw-r--r-- | scroll/scripts/scratchpad.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scroll/scripts/scratchpad.lua b/scroll/scripts/scratchpad.lua index 6972843..e581cc1 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,7 +21,7 @@ for i, arg in ipairs(args) do end end ---scroll.command(nil, "exec notify-send \"Spawn command\" \"" .. command .. "\"") +command = command or "kitty" local function exists(id) local is_in_array = false |