Jump to content

Workspace - Desktop grid multitasking in ComputerCraft!

3 replies to this topic

#1 LDDestroier

  • Members
  • 1,095 posts
  • LocationACDC Town

Posted 23 April 2019 - 08:43 PM

Ever use a Linux desktop and really like the way you could switch between different virtual desktops, or maybe you just don't like clicking through menus when multitasking?

look let's just get this over with I haven't eaten anything all day



The Spiffiest Task Selector

wget https://github.com/LDDestroier/CC/raw/master/workspace.lua
pastebin get s0ehEQvA workspace.lua
std ld workspace

Workspace is a multitasking wrapper for ComputerCraft that lets you switch tasks by switching between different "virtual desktops" instead of clicking through a menu, as you would with "bg" or most CC operating systems.
Whenever a program exits, the workspace becomes "inactive", taking up no resources at all. Terminate in an inactive workspace to exit.

Push CTRL + SHIFT + ArrowKey to change your workspace.
Push CTRL + SHIFT + TAB + ArrowKey to swap the current workspace with another.
Push CTRL + SHIFT + [W or A or S or D] to add a new workspace relative to the currently focused workspace.
Push CTRL + SHIFT + P to toggle pausing a workspace.
Push CTRL + SHIFT + Q to delete the current workspace.

The grid is 3x3 by default.

Edited by LDDestroier, 21 June 2019 - 04:14 AM.

#2 EveryOS

  • Members
  • 569 posts
  • LocationBOO!!

Posted 02 May 2019 - 06:56 PM

Tried it on my Mimic fork. When typing a command, the switcher will randomly appear. Other than that, it looks cool.

#3 LDDestroier

  • Members
  • 1,095 posts
  • LocationACDC Town

Posted 20 June 2019 - 09:48 PM

Substantial update! You can now pause each workspace to save on processing power! This also pauses any timer events that are queued by the paused workspace, which was the hardest part to get down, so everything should run smoothly.

#4 LDDestroier

  • Members
  • 1,095 posts
  • LocationACDC Town

Posted 04 September 2019 - 10:54 PM

  • Each instance can now have its own palette, which the native terminal will change to depending on the focused instance.
  • Problems with apps like Enchat3 involving several manually queued events (os.queueEvent) have been fixed.

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users