Readability edits for docs (#197)

This commit is contained in:
Stardust-kyun 2023-01-28 09:27:21 -05:00 committed by GitHub
parent af90ae42a9
commit 57786e08f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 30 additions and 30 deletions

View File

@ -4,14 +4,14 @@
[AwesomeWM](https://awesomewm.org/) is literally what it stands for, an awesome window manager. [AwesomeWM](https://awesomewm.org/) is literally what it stands for, an awesome window manager.
Its unique selling point has always been the widget system, which allows for fancy buttons, sliders, bars, dashboards and anything you can imagine. But that feature can be a curse. Most modules focus on the widget side of things which leave the actual window managing part of AwesomeWM underdeveloped compared to, for example, [xmonad](https://xmonad.org/) even though it's probably just as powerful in that area. Its unique selling point has always been the widget system, which allows for fancy buttons, sliders, bars, dashboards, and anything you can imagine. But that feature can be a curse. Most modules focus on the widget side of things, which leaves the actual window managing part of AwesomeWM underdeveloped compared to, for example, [xmonad](https://xmonad.org/), even though it's probably just as powerful in that area.
This project focuses on that problem - adding new layouts and modules that make use of the widget system, but primarily focus on the new window managing features. This project aims to fix that problem, adding new layouts and modules that make use of the widget system but primarily focusing on window managing features.
## Installation ## Installation
- clone this repo into your `~/.config/awesome` folder - Clone this repo into your `~/.config/awesome` folder
- `git clone https://github.com/BlingCorp/bling.git ~/.config/awesome/bling` - `git clone https://github.com/BlingCorp/bling.git ~/.config/awesome/bling`
- require the module in your `rc.lua`, and make sure it's under the beautiful module initialization - Require the `bling` module in your `rc.lua`, making sure it's under the `beautiful` module initialization
```lua ```lua
-- other imports -- other imports

View File

@ -2,7 +2,7 @@
Choose layouts from the list below and add them to to your `awful.layouts` list in your `rc.lua`. Choose layouts from the list below and add them to to your `awful.layouts` list in your `rc.lua`.
Every one of them supports multiple master clients and master width factor making them easy to use. Each layout supports multiple master clients and master width factors, making them easy to use.
The mstab layout uses the tab theme from the tabbed module. The mstab layout uses the tab theme from the tabbed module.

View File

@ -1,6 +1,6 @@
## 🔦 Flash Focus <!-- {docsify-ignore} --> ## 🔦 Flash Focus <!-- {docsify-ignore} -->
Flash focus does an opacity animation effect on a client when it is focused. Flash focus creates an opacity flash animation when a client is focused.
### Usage ### Usage
@ -9,7 +9,7 @@ There are two ways in which you can use this module. You can enable it by callin
```lua ```lua
bling.module.flash_focus.enable() bling.module.flash_focus.enable()
``` ```
This connects to the focus signal of a client, which means that the flash focus will activate however you focus the client. This connects to the focus signal of a client, which means that the flash focus will activate with whatever method you use to focus the client.
The other way is to call the function itself like this: `bling.module.flash_focus.flashfocus(someclient)`. This allows you to activate on certain keybinds like so: The other way is to call the function itself like this: `bling.module.flash_focus.flashfocus(someclient)`. This allows you to activate on certain keybinds like so:
```lua ```lua

View File

@ -69,7 +69,7 @@ term_scratch:connect_signal("turn_on", function(c) naughty.notify({title = "Turn
The following signals are currently available. `turn_on`, `turn_off` and `inital_apply` pass the client on which they operated as an argument: The following signals are currently available. `turn_on`, `turn_off` and `inital_apply` pass the client on which they operated as an argument:
- `turn_on` fires when the scratchpad is turned on on a tag that it wasn't present on before - `turn_on` fires when the scratchpad is turned on on a tag that it wasn't present on before.
- `turn_off` fires when the scratchpad is turned off on a tag - `turn_off` fires when the scratchpad is turned off on a tag.
- `spawn` fires when the scratchpad is launched with the given command - `spawn` fires when the scratchpad is launched with the given command.
- `inital_apply` fires after `spawn`, when a corresponding client has been found and the properties have been applied - `inital_apply` fires after `spawn`, when a corresponding client has been found and the properties have been applied.

View File

@ -4,7 +4,7 @@ Can your window manager swallow? It probably can...
### Usage ### Usage
To activate and deactivate window swallowing here are the following functions. If you want to activate it, just call the `start` function once in your `rc.lua`. To activate and deactivate window swallowing use the following functions. If you only want to activate it, call the `start` function once in your `rc.lua`.
```lua ```lua
bling.module.window_swallowing.start() -- activates window swallowing bling.module.window_swallowing.start() -- activates window swallowing
bling.module.window_swallowing.stop() -- deactivates window swallowing bling.module.window_swallowing.stop() -- deactivates window swallowing

View File

@ -1,6 +1,6 @@
## 📑 Tabbed <!-- {docsify-ignore} --> ## 📑 Tabbed <!-- {docsify-ignore} -->
Tabbed implements a tab container. There are also different themes for the tabs. Tabbed implements a tab container. There are several different themes for the tabs as well.
### Usage ### Usage
@ -8,7 +8,7 @@ You should bind these functions to keys in order to use the tabbed module effect
```lua ```lua
bling.module.tabbed.pick() -- picks a client with your cursor to add to the tabbing group bling.module.tabbed.pick() -- picks a client with your cursor to add to the tabbing group
bling.module.tabbed.pop() -- removes the focused client from the tabbing group bling.module.tabbed.pop() -- removes the focused client from the tabbing group
bling.module.tabbed.iter() -- iterates through the currently focused tabbing group bling.module.tabbed.iter() -- iterates through the currently focused tabbing group
bling.module.tabbed.pick_with_dmenu() -- picks a client with a dmenu application (defaults to rofi, other options can be set with a string parameter like "dmenu") bling.module.tabbed.pick_with_dmenu() -- picks a client with a dmenu application (defaults to rofi, other options can be set with a string parameter like "dmenu")
bling.module.tabbed.pick_by_direction(dir) -- picks a client based on direction ("up", "down", "left" or "right") bling.module.tabbed.pick_by_direction(dir) -- picks a client based on direction ("up", "down", "left" or "right")
``` ```

View File

@ -2,7 +2,7 @@
### Usage ### Usage
The function to set an automatically created tiled wallpaper can be called the following way (you don't need to set every option in the table): The function to set a tiled wallpaper can be called by the following (not every option is necessary):
```lua ```lua
awful.screen.connect_for_each_screen(function(s) -- that way the wallpaper is applied to every screen awful.screen.connect_for_each_screen(function(s) -- that way the wallpaper is applied to every screen
bling.module.tiled_wallpaper("x", s, { -- call the actual function ("x" is the string that will be tiled) bling.module.tiled_wallpaper("x", s, { -- call the actual function ("x" is the string that will be tiled)

View File

@ -83,8 +83,8 @@ A wallpaper is one of the following elements:
* a list containing any of the elements above * a list containing any of the elements above
To set up for multiple screens, two possible methods are: To set up for multiple screens, two possible methods are:
* Call the `setup` function for each screen, passing the appropriate configuration and `screen` arg * Call the `setup` function for each screen, passing the appropriate configuration and `screen` arg.
* Call the `setup` function once, passing a table of screens as the `screen` arg. This applies the same configuration to all screens in the table * Call the `setup` function once, passing a table of screens as the `screen` arg. This applies the same configuration to all screens in the table.
_Note_: Multiple screen setup only works for the `simple` and `random` setters _Note_: Multiple screen setup only works for the `simple` and `random` setters
```lua ```lua
@ -105,8 +105,8 @@ bling.module.wallpaper.setup {
``` ```
The provided setters `simple` and `random` will use 2 internal functions that you can use to write your own setter: The provided setters `simple` and `random` will use 2 internal functions that you can use to write your own setter:
* `bling.module.wallpaper.prepare_list`: return a list of wallpapers directly usable by `apply` (for now, it just explores folders) * `bling.module.wallpaper.prepare_list`: return a list of wallpapers directly usable by `apply` (for now, it just explores folders).
* `bling.module.wallpaper.apply`: a wrapper for gears.wallpaper functions, using the args table of setup * `bling.module.wallpaper.apply`: a wrapper for gears.wallpaper functions, using the args table of setup.
Here are the defaults: Here are the defaults:

View File

@ -9,7 +9,7 @@ This is a signal module in which you can connect to certain bling signals to gra
- Song length - Song length
- If there are no players on - If there are no players on
This module relies on `playerctl` and `curl`. If you have this module disabled, you won't need those programs. With this module, you can create a widget like below without worrying about the backend. This module relies on `playerctl` and `curl`. If you have this module disabled, you won't need those programs. With this module, you can create a widget like the one below without worrying about the backend.
![](https://user-images.githubusercontent.com/33443763/107377569-fa807900-6a9f-11eb-93c1-174c58eb7bf1.png) ![](https://user-images.githubusercontent.com/33443763/107377569-fa807900-6a9f-11eb-93c1-174c58eb7bf1.png)
@ -157,7 +157,7 @@ end)
Thats all! You don't even have to worry about updating the widgets, the signals will handle that for you. Thats all! You don't even have to worry about updating the widgets, the signals will handle that for you.
Here's another example in which you get a notification with the album art, title, and artist whenever the song changes. Here's another example in which you get a notification with the album art, title, and artist whenever the song changes:
```lua ```lua
local naughty = require("naughty") local naughty = require("naughty")
@ -184,7 +184,7 @@ button:buttons(gears.table.join(
### Theme Variables and Configuration ### Theme Variables and Configuration
By default, this module will output signals from the most recently active player. If you wish to customize the behavior furthur, the following configuration options are available depending on the selected backend. Here is a summary of the two backends and which configuration options they support. By default, this module will output signals from the most recently active player. If you wish to customize the behavior furthur, the following configuration options are available depending on the selected backend. Here is a summary of the two backends and which configuration options they support:
| Option | playerctl_cli | playerctl_lib | | Option | playerctl_cli | playerctl_lib |
| ------------------- | ------------------ | ------------------ | | ------------------- | ------------------ | ------------------ |

View File

@ -14,7 +14,7 @@ To enable:
local app_launcher = bling.widget.app_launcher() local app_launcher = bling.widget.app_launcher()
``` ```
To run the app launcher, call `:toggle()` on the launcher. To run the app launcher, call `:toggle()` on the launcher:
```lua ```lua
app_launcher:toggle() app_launcher:toggle()

View File

@ -28,7 +28,7 @@ bling.widget.tabbed_misc.titlebar_indicator(client, {
}) })
``` ```
a widget_template option is also available: A `widget_template` option is also available:
```lua ```lua
bling.widget.tabbed_misc.titlebar_indicator(client, { bling.widget.tabbed_misc.titlebar_indicator(client, {
widget_template = { widget_template = {
@ -50,7 +50,7 @@ bling.widget.tabbed_misc.titlebar_indicator(client, {
### Example Implementation ### Example Implementation
You normally embed the widget in your titlebar... The widget is typically embedded in a titlebar:
```lua ```lua
awful.titlebar(c).widget = { awful.titlebar(c).widget = {
{ -- Left { -- Left
@ -75,7 +75,7 @@ awful.titlebar(c).widget = {
``` ```
## Tasklist ## Tasklist
The module exports a function that can be added to your tasklist as a `update_callback` This module exports a function that can be added to your tasklist as an `update_callback`.
### Usage ### Usage
```lua ```lua

View File

@ -49,7 +49,7 @@ By default, the widget is not visible. You must implement when it will update an
### Example Implementation ### Example Implementation
We can trigger the widget to show the specific tag when hovering over it in the taglist. The code shown below is the example taglist from the [AwesomeWM docs](https://awesomewm.org/doc/api/classes/awful.widget.taglist.html). Basically, we are going to update the widget and toggle it through the taglist's `create_callback`. (The bling addons are commented) We can trigger the widget to show the specific tag when hovering over it in the taglist. The code shown below is the example taglist from the [AwesomeWM docs](https://awesomewm.org/doc/api/classes/awful.widget.taglist.html). We are going to update the widget and toggle it through the taglist's `create_callback` (bling addons are commented).
```lua ```lua
s.mytaglist = awful.widget.taglist { s.mytaglist = awful.widget.taglist {
screen = s, screen = s,

View File

@ -1,6 +1,6 @@
## 🔍 Task Preview <!-- {docsify-ignore} --> ## 🔍 Task Preview <!-- {docsify-ignore} -->
This is a popup widget that will show a preview of the specified client. It is supposed to mimic the small popup that Windows has when hovering over the application icon. This is a popup widget that will show a preview of the specified client. It intends to mimic the small popup when hovering over an application icon on Windows.
![](https://user-images.githubusercontent.com/33443763/124705653-d7b98b80-deaa-11eb-8091-42bbe62365be.png) ![](https://user-images.githubusercontent.com/33443763/124705653-d7b98b80-deaa-11eb-8091-42bbe62365be.png)
@ -82,7 +82,7 @@ By default, the widget is not visible. You must implement when it will update an
### Example Implementation ### Example Implementation
We can trigger the widget to show the specific client when hovering over it in the tasklist. The code shown below is the example icon only tasklist from the [AwesomeWM docs](https://awesomewm.org/doc/api/classes/awful.widget.tasklist.html). Basically, we are going to toggle the widget through the tasklist's `create_callback`. (The bling addons are commented) We can trigger the widget to show the specific client when hovering over it in the tasklist. The code shown below is the example icon only tasklist from the [AwesomeWM docs](https://awesomewm.org/doc/api/classes/awful.widget.tasklist.html). We are going to toggle the widget through the tasklist's `create_callback` (bling addons are commented).
```lua ```lua
s.mytasklist = awful.widget.tasklist { s.mytasklist = awful.widget.tasklist {
screen = s, screen = s,

View File

@ -30,7 +30,7 @@ bling.widget.window_switcher.enable {
} }
``` ```
To run the window swicher you have to emit this signal from within your configuration (usually using a keybind). To run the window swicher, emit this signal (usually with a keybind):
```lua ```lua
awesome.emit_signal("bling::window_switcher::turn_on") awesome.emit_signal("bling::window_switcher::turn_on")