name: acces name
icon: the icon name
menu: the context menu
path: additional icon theme path or None
see exemple for usage
CLIP@@GET
Get the clipboard content. Indicate the --clipboard option
sh: 'clipboard' function will be called with the clipboard content as argument.
py: clipboard content
CLIP@@SET@@My text
Loads 'My text' in the clipboard. Indicate the --clipboard option
COLOR@@widget,widget@@modify@@gtk_state@@color
Changes the color of a widget
#FFFFFF or name color
modify gtk2: modify_fg, modify_text, modify_bg, modify_base
modify gtk3: background_color, color
gtk_state: NORMAL, SELECTED, ACTIVE, PRELIGHT
echo 'COLOR@@_textview1@@color@@NORMAL@@black'
COMBO@@CLEAR@@combobox[,combobo,...]
Deletes all the elements of the combobox
COMBO@@DELEND@@combobox
Deletes the last element of the combobox.
COMBO@@END@@combobox@@item[|icon]
Adds a line to the combo.
icon: name of the image (gtk theme), optional
COMBO@@FINDDEL@@combobox@@item
Deletes one combobox element by its item.
item: Regular expression
COMBO@@FINDSELECT@@combobox@@item
Selects a combobox element by its item.
item: Regular expression
COMBO@@IMG@@combobox@@item|filename[|size]
Adds a line with image to the combo.
size: in pixel, optional
filename: relative or absolute path of the picture
Creates a context menu (is easier to use glade to create it ...)
widget: the widget which will receive the menu
menu_name: menu name
item: menu label
function: function to be called
arg: function argument
use `separator::None::None' to add separator
MULTI@@GET@@cmd()@@widget,widget
Runs the pygtk command on the widgets.
Same principle as GET@, but simultaneously on several widgets
same as GET@
MULTI@@SET@@cmd()@@widget,widget
Runs the pygtk command on the widgets.
Same principle as SET@, but simultaneously on several widgets
NOTIFY@@timer@@titre@@texte@@icon
Displays a notify message
timer: display delay in millisecondes
titre: message title
texte: text to display
icon: image path or icon name
dependancies: pynotify and libnotify
menu_name: menu name
label_menuitem: the menu label where the sub-menu will appear from
SYSTRAY@@name@@menu@@icon@@infobulle
Displays a systray icon.
name: acces name
icon: the icon name
menu: associated contextmenu or None
infobulle: tootltip text
Default hide, use pygtk command to show it and more (see exemple)
Adds/remove one or several tag(s) to the selection
TEXT@@SOURCE@@LANG@@textview@@lang
Set the language code view
Only with --sourceview option
Environnement variable G2S_SOURCEVIEW_LANG loaded
TEXT@@SOURCE@@STYLE@@textview@@style
Set the language code view
Only with --sourceview option
Environnement variable G2S_SOURCEVIEW_STYLE loaded
TIMER@@START@@delay@@function
Loop call of a function
delay: milliseconds
TIMER@@STOP@@function
Stops the loop call
TOGGLE@@ACTIVE@@widget,widget
Toggle the active status of one or several widget(s) (check, radio, toggle)
TOGGLE@@EXPANDER@@widget,widget
Opens or closes one or several expander(s)
TOGGLE@@SENSITIVE@@widget,widget
Toggles the sensitive (grey) status of one or several widget(s)
TOGGLE@@VISIBLE@@widget,widget
Toggles the visibility status of one or several widget(s)
TREE@@BOTTOM@@treeview[@@line]
Push down in last position the selected line or the indicated line
Indicate the --tree/-t option
line: line number (optional)
TREE@@CELL@@treeview@@[line[,col]]@@[data]
Modify a cell or a line
Indicate the --tree/-t option
line: path (1 ou 1:0)
col: colonne (optionnel)
data: text|text|text
if not `data', the line will be erased
if not `col', line will be replaced
else the cellule will be modified
TREE@@CLEAR@@treeview
Deletes the treeview
Indicate the --tree/-t option
TREE@@DOWN@@treeview[@@line]
Push down the selected line or the indicated line
Indicate the --tree/-t option
line: line number (optional)
TREE@@END@@treeview@@data
Adds a line at the end of the treeview
Indicate the --tree/-t option
data: text|text|text
TREE@@FIND@@treeview@@col/None@@motif
Finds and sends the lines according to a motif and a column
Indicate the --tree/-t option
col/None: if None, will be the entire line
motif: Regular expression
Finds and selects a line according to a motif and a column
Indicate the --tree/-t option
col/None: if None, will be the entire line
motif: Regular expression
TREE@@FORCE_SELECT@@treeview
Force the variable selection (security block)
Indicate the --tree/-t option
TREE@@GET@@treeview
Loads the selected line in a variable and calls the treeview function
Python direct acces: self.g2s.retourne_selection(treename)
Indicate the --tree/-t option
variable and calls function, arg: line@data|data|data
TREE@@HIZO@@treeview
Sends the treeview content to its function
path will send if it's a real treeview (arborescence)
With python to get return, call directly self.g2s.TREEHIZO('TREE@@HIZO@@treeview')
Indicate the --tree/-t option
sh: hizo@[path@]data|data@@[path@]data|data => the lines are separated by @@
py: (None, [list], 'hizo')
TREE@@IMG@@treeview@@data|data@@colonne@@size
Adds a line containing an image
Indicate the --tree/-t option
column: where the image is
size: in pixels
echo 'TREE@@IMG@@treeview1@@texte col 1|texte col 2|tux.png@@2@@150'
TREE@@INSERT@@treeview@@line@@data
insert a line in the treeview
Indicate the --tree/-t option
line: path (1 or 1:0)
data: text|text|text
TREE@@LOAD@@treeview@@fichier
Loads the treeview from a file
Indicate the --tree/-t option
fichier: absolute or relative file path
TREE@@PROG@@treeview@@line,col@@value
Modify the value of a progressbar contained in the treeview
Indicate the --tree/-t option
value: 0 to 100
echo 'TREE@@PROG@@treeview1@@1,2@80'
TREE@@SAVE@@treeview@@fichier
Saves the treeview in a file
Indicate the --tree/-t option
fichier: relative or absolute file path
TREE@@SELECT@@treeview@@row
Select row in the treeview
Indicate the --tree/-t option
row: integrer
TREE@@TOP@@treeview[@@line]
Push up in first position the selected line or the indicated line
Indicate the --tree/-t option
line: line number (optional)
TREE@@UP@@treeview[@@line]
Push up the selected line or the indicated line
Indicate the --tree/-t option
line: line number (optional)
choice: UserChoose/UserSave/GetLink
UserChoose calls the function with the save destination user choice
UserSave: saves a file directly from the user choice, also calls the function
GetLink: simple function call
item:function:value/html
item: menu label
function: function to call
value: value of the element under the cursor
html: html of the element under the cursor
separator:None:None
WEBKIT@@OVERLINK@@webview,webview
Calls the function when cursor goes above the links
sh: overlink@url
py: (overlink, url)
WEBKIT@@REQUEST@@webview@@pattern
Filters the http requests
pattern: `ALL' / item
All: calls the function with all the requests as argument
item: filters via the regular expression (does not display the filtered requests in the webview)
sh: request@http://...
py: (request, http//...)
WEBKIT@@SAVE@@webview
Calls the webview function with its content as argument
menuitem: label of the context menu from where the sub-menu will appear
item:function:value/html
item: menu label
function: function to call
value: value of the element under the cursor
html: html of the element under the cursor
separator:None:None
WINDOW@@BACKGROUND@@name@@image
Uses an image as window background (not available GTK3)
this command must be run before the window display,
set the window on invisible then run a show().
name: window name
image: relative or absolute image path
WINDOW@@TRANS@@name@@trans@@color
Ajusts the transparency and color of the window background (not available GTK3)
add the --transparent option
name: window name
trans: transparency (0 to 1)
color: #ffffff or color name