Lenity is a small project aiming to make zenity writing scripts with GUI's more practical in the Lua language. We're aiming in an easy function oriented way to call zenity and Qarma dialogs directly from Lua.
This project was created mainly by my need to be able to just call zenity and Qarma dialogs from inside my Lua scripts making easy to write really simple "apps" that present a visual information to users who are afraid of the terminal. In theory, with this script you are able to just type info('title','text of the info message') to open the an info box on zenity or Qarma from inside of your Lua scripts, for example.
Normally, with zenity (from inside a Lua script or the Lua interpreter):
f = io.popen("zenity --entry --title='window title' --text='window example text'")
typedByTheUser = f:read("*a"):gsub("\n","")
f:close()
Or, with Qarma (from inside a Lua script or the Lua interpreter):
f = io.popen("qarma --entry --title='window title' --text='window example text'")
typedByTheUser = f:read("*a"):gsub("\n","")
f:close()
With Lenity:
lenity = require 'lenity'
lenity.entry(nil,'window title','window example text')
- Fully implement tests for fields
Implement EntryImplement InfoImplement CalendarImplement ErrorImplement file selectionImplement listImplement notification+- Implement progress ++
Implement questionImplement text informationimplement warning- Implement scale +++
Implement color selection- Implement forms
Implement PasswordExpanding to Qarma
OBS 1: Replaced for notify-send due to poor Zenity Implementation of --notification.
OBS 2: Due to Zenity implementation, it's only possible to create --progress pulsating variant.
OBS 3: Due to Zenity implementation, it's only possible to create --print-partial variant of this.
This repository is entirely Open Source, licensed under GNU General Public License 3.0, 29 June 2007. All work derivative work and/or third party distribution must keep the name of it's creator and it's contributors.
This is the official contributors list, if you had collaborated with the project with code, please add your name to this list and someone will review the push request shortly.