awesome-switcherpopup/README.md

39 lines
796 B
Markdown
Raw Permalink Normal View History

2022-03-03 20:18:35 +11:00
# popupswitcher
2022-08-25 13:34:31 +10:00
Popup tasklist switcher for awesomewm. Requires [awesome-longpress](https://git.shadowkat.net/izaya/awesome-longpress)
2022-03-03 20:26:55 +11:00
## Usage
`require` the library:
```
2022-03-04 10:05:33 +11:00
local switcherpopup = require("awesome-switcherpopup")
2022-03-03 20:26:55 +11:00
```
Add one for each screen:
```
local tasklist = switcherpopup.new(s)
```
Add some buttons to show and hide it:
```
switcher_button:buttons(gears.table.join(
switcher_button:buttons(),
awful.button({}, 1, nil, function()
tasklist:toggle()
end)
))
```
## Configuration
```
switcherpopup.iconSize = 128,
switcherpopup.systraySize = 64,
switcherpopup.buttonSize = 96,
switcherpopup.spacing = 5,
switcherpopup.defaultLayout = awful.layout.suit.max,
switcherpopup.iconPath = gears.filesystem.get_configuration_dir() .. "/switcherpopup/"
```