awesome-www/doc/uicb.mdwn

186 lines
3.5 KiB
Plaintext
Raw Normal View History

2007-11-20 09:28:50 +01:00
[[toc levels=2]]
# What are uicb?
2007-11-21 16:25:15 +01:00
In *awesome*, a lot of functions are available. These functions are called **uicb** (User Interface Call Backs). Each function can be bound to a key shortcut or a mouse button.
2007-11-20 09:28:50 +01:00
# Uicb function list
2007-11-21 16:25:15 +01:00
## General
### quit
2007-11-20 09:28:50 +01:00
Syntax: quit
This function quits *awesome*.
2007-11-21 16:25:15 +01:00
### togglebar
Hide or show statusbar.
### spawn
Args: program
Execute an external program.
### exec
Args: program
Replace *awesome* with another window manager.
### reloadconfig
Reload configuration file.
### setstatustext
Args: text
Set status bar text.
## Client
### client_kill
2007-11-20 09:28:50 +01:00
This function closes the focused client.
2007-11-21 16:25:15 +01:00
### client_moveresize
Args: x y width height
2007-11-20 09:28:50 +01:00
This function allows to dynamically move and resize floating windows.
Coordinates can be relative or absolute. Relative values must begin with + or -.
For example, resizing a window to 200x200 without moving it will be done with:
2007-11-21 16:25:15 +01:00
"+0 +0 200 200"
2007-11-20 09:28:50 +01:00
To move a window 10 pixels up:
2007-11-21 16:25:15 +01:00
"+0 +10 +0 +0"
2007-11-20 09:28:50 +01:00
To move a window in the upper left corner and increase its width by 10px:
2007-11-21 16:25:15 +01:00
"0 0 +0 +10"
2007-11-20 09:28:50 +01:00
2007-11-21 16:25:15 +01:00
### client_settrans
Args: float
2007-11-20 09:28:50 +01:00
Set client transparency, number can be a relative or absolute floating number in percentage.
2007-11-21 16:25:15 +01:00
### client_swapnext
2007-11-20 09:28:50 +01:00
Swap window placement with the next displayed window.
2007-11-21 16:25:15 +01:00
### client_swapprev
2007-11-20 09:28:50 +01:00
Swap window placement with the previous displayed window.
2007-11-21 16:25:15 +01:00
### client_focusnext
2007-11-20 09:28:50 +01:00
Focus next window.
2007-11-21 16:25:15 +01:00
### client_focusprev
2007-11-20 09:28:50 +01:00
Focus previous window.
2007-11-21 16:25:15 +01:00
### client_togglemax
2007-11-20 09:28:50 +01:00
Set window fullscreen. Calling this function another time will reset the window to its previous state.
2007-11-21 16:25:15 +01:00
### client_togglehorizontalmax
2007-11-20 09:28:50 +01:00
Set window's horizontal size to display width. Calling this function another time will reset the window to its previous state.
2007-11-21 16:25:15 +01:00
### client_toggleverticalmax
2007-11-20 09:28:50 +01:00
Set window's vertical size to display height. Calling this function another time will reset the window to its previous state.
2007-11-21 16:25:15 +01:00
### client_togglefloating
Set window floating or tiled.
### client_zoom
2007-11-20 09:28:50 +01:00
Set window as master window.
2007-11-21 16:25:15 +01:00
### client_movetoscreen
Args: relative or absolute integer
2007-11-20 09:28:50 +01:00
2007-11-21 16:25:15 +01:00
Move focused window to the nth screen, or next (+1) or previous (-1). If no screen_number
is set, move to the next screen.
2007-11-20 09:28:50 +01:00
2007-11-21 16:25:15 +01:00
### client_tag
Args: tag number
2007-11-20 09:28:50 +01:00
2007-11-21 16:25:15 +01:00
Tag focused window with this tag.
2007-11-20 09:28:50 +01:00
2007-11-21 16:25:15 +01:00
### client_toggletag
Args: tag number
2007-11-20 09:28:50 +01:00
2007-11-21 16:25:15 +01:00
Add or remove tag to focused window.
2007-11-20 09:28:50 +01:00
2007-11-21 16:25:15 +01:00
### client_movemouse
2007-11-20 09:28:50 +01:00
2007-11-21 16:25:15 +01:00
Move client window with mouse.
2007-11-20 09:28:50 +01:00
2007-11-21 16:25:15 +01:00
### client_resizemouse
2007-11-20 09:28:50 +01:00
2007-11-21 16:25:15 +01:00
Resize client window with mouse.
2007-11-20 09:28:50 +01:00
2007-11-21 16:25:15 +01:00
## Tag
2007-11-20 09:28:50 +01:00
2007-11-21 16:25:15 +01:00
### tag_setlayout
Args: relative or absolute integer
2007-11-20 09:28:50 +01:00
2007-11-21 16:25:15 +01:00
Set layout number # or just switch to the next layout for current tag.
2007-11-20 09:28:50 +01:00
2007-11-21 16:25:15 +01:00
### tag_toggleview
Args: tag number
2007-11-20 09:28:50 +01:00
2007-11-21 16:25:15 +01:00
Add windows tagged with tag number to current display.
2007-11-20 09:28:50 +01:00
2007-11-21 16:25:15 +01:00
### tag_view
Args: tag number
2007-11-20 09:28:50 +01:00
2007-11-21 16:25:15 +01:00
View windows tagged with tag number.
2007-11-20 09:28:50 +01:00
2007-11-21 16:25:15 +01:00
### tag_viewnext
2007-11-20 09:28:50 +01:00
Show windows tagged with next tag in list.
2007-11-21 16:25:15 +01:00
### tag_viewprev
2007-11-20 09:28:50 +01:00
Show windows tagged with previous tag in list.
2007-11-21 16:25:15 +01:00
### tag\_viewprev\_selected
2007-11-20 09:28:50 +01:00
2007-11-21 16:25:15 +01:00
Switch back to the previously displayed set of tags.
2007-11-20 09:28:50 +01:00
2007-11-21 16:25:15 +01:00
### tag_setmwfact
Args: relative or absolute float
2007-11-20 09:28:50 +01:00
2007-11-21 16:25:15 +01:00
Set master width factor.
### tag_setncol
Args: relative or absolute integer
Set number of columns for non-master windows.
### tag_setnmaster
Args: relative or absolute integer
Set number of master windows.
## Screen
### screen_focusnext
Focus first window in the next screen and move mouse.
### screen_focusprev
Focus first window in the previous screen and move mouse.
2007-12-13 09:16:54 +01:00
### setborder
Args: relative or absolute integer
Set default border size in pixels for new clients.