awesome-launch/README.md

66 lines
1.3 KiB
Markdown
Raw Normal View History

2019-03-28 15:39:13 +01:00
# awesome-launch
awesome-launch is a library for [Awesome](https://github.com/awesomeWM/awesome)
window manager that provides functions to spawn clients with single instance
IDs using [wm-launch](https://github.com/jcrd/wm-launch).
2019-07-04 01:29:58 +02:00
## Dependencies
* [uuid](https://luarocks.org/modules/tieske/uuid) rock
* [wm-launch](https://github.com/jcrd/wm-launch)
2019-07-04 23:46:05 +02:00
## Installation
```
$ git clone https://github.com/jcrd/awesome-launch.git
$ cd awesome-launch
$ luarocks make --local
```
2019-03-28 15:39:13 +01:00
## Usage
Require the library:
```lua
local launch = require("awesome-launch")
```
Now spawn a client:
```lua
launch.spawn("xterm", {id="xterm1"})
```
The new client will have these properties set:
* `single_instance_id` = `"xterm1"`
* `cmdline` = `"xterm"`
2019-04-11 05:12:54 +02:00
See the [API documentation](https://jcrd.github.io/awesome-launch/) for
descriptions of all functions.
2019-03-28 15:39:13 +01:00
2019-08-14 02:52:22 +02:00
## Widget
A `launchbar` widget is provided to visualize pending clients.
Customize the launchbar:
```lua
launch.widget.color = beautiful.fg_focus
```
Create a new launchbar for the given screen:
```lua
screen.connect_signal("request::desktop_decoration", function (s)
...
s.launchbar = launch.widget.launchbar {
screen = s,
}
s.mywibox:setup {
...
s.launchbar,
...
}
end)
```
2019-03-28 15:39:13 +01:00
## License
awesome-launch is licensed under the GNU General Public License v3.0 or later
(see [LICENSE](LICENSE)).