@@ -35,12 +35,12 @@ write "clean_temp" at the end of all your scripts... ;-)
3535
3636#### Backend boxes priority
3737
38- EBG suppport for backend dialog boxeds depends on the runing programs:
38+ EBG support for backend boxed dialogs depends on the running programs:
3939
40401 . If all the required backends are available or at least kdialog are.. the EBG
4141 will try to check if kdebin is running and only will use kdialog.
42- 2 . If only GTK based are running, the EBG will just use zenity, event if xdialog
43- is available and there is no desktop runing ( window managers or similar.. )
42+ 2 . If only GTK based are running, the EBG will just use yad (or zenity ), even if xdialog
43+ is available and there is no desktop managers running (only window managers or similar.. )
4444
4545#### Box mode windows
4646
@@ -61,7 +61,7 @@ message "hola"
6161
6262All windows functions support options ` <-w|-width> [integer] ` and ` <-h|-height> [integer] `
6363for custom window size with exception of "notify_message" and earlier versions
64- of kdedialog !
64+ of kdialog !
6565
6666``` bash
6767source easybashgui
@@ -73,9 +73,9 @@ message -w 800 -h 100 "Hello World!"
7373
7474#### Input and output
7575
76- EBG always use STDIN and STDOUT in conjuction with a temporally directory/filename.
76+ EBG always use STDIN and STDOUT in conjuction with a temporary directory/filename.
7777
78- The temporally names are managed throught the variables ` ${dir_tmp} ` and ` ${file_tmp} `
78+ The temporary names are managed throught the variables ` ${dir_tmp} ` and ` ${file_tmp} `
7979
8080#### Functions list features
8181
@@ -114,11 +114,11 @@ notify_change -> <-i "[new icon]"> <-t "[new tooltip]"> "[good|bad]" => (
114114
115115## Examples
116116
117- You must made the scripts in ` bash ` languaje , EBG is coded in ` bash ` , in this document
117+ You must made the scripts in ` bash ` language , EBG is coded in ` bash ` , in this document
118118we will use bash to ilustrate example usages:
119119
120- 1 . install EBS or sourcered the minimun 3 files
121- 2 . crate the new program script from you
120+ 1 . install EBG or source the minimum 3 files
121+ 2 . crate your new program script
1221223 . source the main endpoint of EBG (check following examples)
1231234 . saves and launch the new script program
124124
@@ -197,7 +197,7 @@ dir="${choices[2]}"
197197
198198[ ![ ] ( https://img.youtube.com/vi/FEn4doXmiX0/0.jpg )] ( https://www.youtube.com/watch?v=FEn4doXmiX0 )
199199
200- #### progress bar
200+ #### progress bar (by percent)
201201
202202``` bash
203203for i in 10 20 30 40 50 60 70 80 90 100
@@ -213,7 +213,21 @@ done | progress "This is a test progress..."
213213adjust " Please, set Volume level" 15 40 75
214214```
215215
216- #### choose items
216+ #### choose items (only one)
217+ ``` bash
218+ menu " Red" " Yellow" " Green"
219+ choice=" $( 0< " ${dir_tmp} /${file_tmp} " ) "
220+ ```
221+
222+ #### choose items (one or more)
223+ ``` bash
224+ list " +Red" " -Yellow" " +Green"
225+ choice_list=" $( 0< " ${dir_tmp} /${file_tmp} " ) "
226+ IFS=$' \n ' ; choice_array=( $( 0< " ${dir_tmp} /${file_tmp} " ) ) ; IFS=$' \t\n '
227+ ```
228+
229+
230+ #### progress bar (by elements)
217231
218232``` bash
219233women=( Angela Carla Michelle Noemi Urma Marisa Karina Anita Josephine Rachel )
@@ -223,16 +237,13 @@ today_prefered_woman="${women[${index}]}"
223237kiss " ${today_prefered_woman} "
224238sleep 1
225239#
226-
227240# Job done !!
228-
229241# then...
230-
231242echo " PROGRESS"
232243#
233244done | progress " This is a _LOVE_ progress..." " ${# women[@]} "
234245
235- # if you use "PROGRESS" string in STDIN do not forget second argument ( "[elements number]" )
246+ # if you use "PROGRESS" string in STDIN do not forget * second* argument ( "[elements number]" )
236247```
237248
238249#### notify example with yad as backend
0 commit comments