Skip to content

JerwuQu/wblocks2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wblocks2

Scriptable taskbar blocks

Functions

Exposes both std and os from QuickJS.

But also

  • createBlock() - Creates a new block
  • defaultBlock - Block that will be copied to newly created blocks
  • $(cmd) - Run a shell command and return its stdout through a Promise.

Block functions:

  • block.setFont(name, size)
  • block.setText(txt)
  • block.setColor(r, g, b)
  • block.setPadding(left, right)
  • block.setVisible(bool)
  • block.clone(keepVisibility=false)
  • block.remove()

License

GNU General Public License v3.0. See LICENSE file for more details.