Skip to content

Commit 4e290ce

Browse files
authored
Merge pull request #486 from streetturtle/improve-readmes
Improve readmes
2 parents 703a0dc + b98af9a commit 4e290ce

File tree

28 files changed

+140
-130
lines changed

28 files changed

+140
-130
lines changed

apt-widget/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
# APT widget
22

3-
Widget which shows a list of APT packages to be updated:
3+
This widget shows a list of APT packages to be updated:
44

55
![screenshot](./screenshots/screenshot.gif)
66

77
Features:
8-
- scrollable list !!! (thanks to this [post](https://www.reddit.com/r/awesomewm/comments/isx89x/scrolling_a_layout_fixed_flexed_layout_widget/) of reddit)
8+
- scrollable list (thanks to this [post](https://www.reddit.com/r/awesomewm/comments/isx89x/scrolling_a_layout_fixed_flexed_layout_widget/))
99
- update single package
1010
- update multiple packages
1111

12-
## Customizations
12+
## Customization
1313

14-
It is possible to customize widget by providing a table with the following config parameters:
14+
It is possible to customize widget by providing a table with all or some of the following config parameters:
1515

1616
| Name | Default | Description |
1717
|---|---|---|
@@ -20,7 +20,7 @@ It is possible to customize widget by providing a table with the following confi
2020

2121
## Installation
2222

23-
Clone the repo under ~/.config/awesome/ folder, then in rc.lua add the following:
23+
Clone/download repo and use widget in **rc.lua**:
2424

2525
```lua
2626
local apt_widget = require("awesome-wm-widgets.apt-widget.apt-widget")

battery-widget/README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ It is possible to customize widget by providing a table with all or some of the
2929
| `display_notification` | false | Display a notification on mouseover |
3030
| `notification_position` | `top_right` | The notification position |
3131
| `timeout` | 10 | How often in seconds the widget refreshes |
32-
| `warning_msg_title` | `Huston, we have a problem` | Title of the warning popup |
32+
| `warning_msg_title` | `Houston, we have a problem` | Title of the warning popup |
3333
| `warning_msg_text` | `Battery is dying` | Text of the warning popup |
3434
| `warning_msg_position` | `bottom_right` | Position of the warning popup |
3535
| `warning_msg_icon` | `~/.config/awesome/awesome-wm-widgets/battery-widget/spaceman.jpg` | Icon of the warning popup |
@@ -52,16 +52,18 @@ It is possible to customize widget by providing a table with all or some of the
5252

5353
## Installation
5454

55-
This widget reads the output of acpi tool.
55+
This widget reads the output of the `acpi` tool.
5656

57-
- install `acpi` and check the output:
57+
Install `acpi` and check the output:
5858

5959
```bash
60-
$ sudo apt-get install acpi
61-
$ acpi
60+
sudo apt-get install acpi
61+
acpi
6262
Battery 0: Discharging, 66%, 02:34:06 remaining
6363
```
6464

65+
Clone/download repo and use widget in **rc.lua**:
66+
6567
```lua
6668
local battery_widget = require("awesome-wm-widgets.battery-widget.battery")
6769

batteryarc-widget/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ It is possible to customize widget by providing a table with all or some of the
3333
| `low_level_color` | `#e53935` | Arc color when battery charge is less that 15% |
3434
| `medium_level_color` | `#c0ca33` | Arc color when battery charge is between 15% and 40% |
3535
| `charging_color` | `#43a047` | Color of the circle inside the arc when charging |
36-
| `warning_msg_title` | `Huston, we have a problem_` | Title of the warning popup |
36+
| `warning_msg_title` | `Houston, we have a problem` | Title of the warning popup |
3737
| `warning_msg_text` | `Battery is dying` | Text of the warning popup |
3838
| `warning_msg_position` | `bottom_right` | Position of the warning popup |
3939
| `warning_msg_icon` | `~/.config/awesome/awesome-wm-widgets/batteryarc-widget/spaceman.jpg` | Icon of the warning popup |
4040
| `enable_battery_warning` | true | Display low battery warning |
4141
| `show_notification_mode` | `on_hover` | How to trigger a notification with the battery status: `on_hover`, `on_click` or `off` |
42-
| `notification_position` | `top_left` | Where to show she notification when triggered. Values: `top_right`, `top_left`, `bottom_left`, `bottom_right`, `top_middle`, `bottom_middle`. (default `top_right`) |
42+
| `notification_position` | `top_left` | Where to show the notification when triggered. Values: `top_right`, `top_left`, `bottom_left`, `bottom_right`, `top_middle`, `bottom_middle` |
4343

4444
## Requirements
4545

@@ -48,7 +48,7 @@ power information.
4848

4949
## Installation
5050

51-
Clone repo, include widget and use it in **rc.lua**:
51+
Clone/download repo and use widget in **rc.lua**:
5252

5353
```lua
5454
local batteryarc_widget = require("awesome-wm-widgets.batteryarc-widget.batteryarc")

bitbucket-widget/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The widget shows the number of pull requests assigned to the user and when click
44

55
## How it works
66

7-
Widget uses cURL to query Bitbucket's [REST API](https://developer.atlassian.com/bitbucket/api/2/reference/). In order to be authenticated, widget uses a [netrc](https://ec.haxx.se/usingcurl/usingcurl-netrc) feature of the cURL, which is basically allows storing basic auth credentials in a **.netrc** file in home folder.
7+
Widget uses cURL to query Bitbucket's [REST API](https://developer.atlassian.com/bitbucket/api/2/reference/). In order to be authenticated, widget uses a [netrc](https://ec.haxx.se/usingcurl/usingcurl-netrc) feature of cURL, which allows storing basic auth credentials in a **.netrc** file in home folder.
88

99
Bitbucket allows using [App Passwords](https://confluence.atlassian.com/bitbucket/app-passwords-828781300.html) (available in the account settings) - simply generate one for the widget and use it as password in **.netrc** file.
1010

@@ -21,13 +21,13 @@ It is possible to customize widget by providing a table with all or some of the
2121
| `repo_slug` | Required | Repository slug |
2222
| `timeout` | 60 | How often in seconds the widget refreshes |
2323

24-
Note:
24+
**Note:**
2525
- host most likely should start with _api._
26-
- to get your UUID you may call `curl -s -n 'https://api.bitbucket.org/2.0/user'`
26+
- to get your UUID call `curl -s -n 'https://api.bitbucket.org/2.0/user'`
2727

2828
## Installation
2929

30-
Create a **.netrc** file in you home directory with following content:
30+
Create a **.netrc** file in your home directory with following content:
3131

3232
```bash
3333
machine api.bitbucket.org

brightness-widget/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ It is possible to customize widget by providing a table with all or some of the
2121
| `size` | 18 | Size of the widget (used only for `arc` type) |
2222
| `arc_thickness` | 2 | Thickness of the arc (used only for `arc` type) |
2323

24-
_Note:_ If brightness is controlled only by the widget (either by a mouse, or by a shortcut, then the `timeout` could be quite big, as there is no reason to synchronize the brightness level).
24+
**Note:** If brightness is controlled only by the widget (either by a mouse, or by a shortcut), then the `timeout` could be quite large, as there is no reason to synchronize the brightness level.
2525

2626
## Installation
2727

@@ -50,7 +50,7 @@ To choose the right `program` argument, first you need to check which of them wo
5050

5151
- using `brightnessctl`:
5252

53-
On Ubuntu it is available in the apt repository. Install and check the ouptut of the following command.
53+
On Ubuntu it is available in the apt repository. Install and check the output of the following command.
5454
```bash
5555
brightnessctl --list
5656
```

calendar-widget/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Calendar widget for Awesome WM - slightly improved version of the `wibox.widget.
1515
| start_sunday | false | Start the week on Sunday |
1616
| week_numbers | false | Show ISO week numbers (Mon = first) |
1717
| auto_hide | false | Auto hide the popup after timeout |
18-
| timeout | 2 | Auto hide timeout length |
18+
| timeout | 2 | Auto hide timeout length (in seconds) |
1919

2020
- themes:
2121

cmus-widget/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Cmus widget
22

3-
Cmus widget that shows the current playing track.
3+
This widget shows the currently playing track.
44

55
![widget](./screenshots/cmus-widget.png)
66

@@ -50,5 +50,5 @@ It is possible to customize the widget by providing a table with all or some of
5050
| `font` | `beautiful.font` | Font name and size, like `Play 12` |
5151
| `path_to_icons` | `/usr/share/icons/Arc/actions/symbolic/` | Alternative path for the icons |
5252
| `timeout`| 10 | Refresh cooldown |
53-
| `max_length` | 30 | Maximum lentgh of title. Text will be ellipsized if longer. |
53+
| `max_length` | 30 | Maximum length of title. Text will be ellipsized if longer. |
5454
| `space` | 3 | Space between icon and track title |

docker-widget/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![GitHub issues by-label](https://img.shields.io/github/issues-raw/streetturtle/awesome-wm-widgets/docker)](https://github.com/streetturtle/awesome-wm-widgets/labels/docker)
44
![Twitter URL](https://img.shields.io/twitter/url?url=https%3A%2F%2Fgithub.com%2Fstreetturtle%2Fawesome-wm-widgets%2Fedit%2Fmaster%2Fdocker-widget)
55

6-
The widget allows to manage docker and podman containers, namely start/stop/pause/unpause:
6+
This widget allows managing Docker and Podman containers, namely start/stop/pause/unpause:
77

88
<p align="center">
99
<img src="https://github.com/streetturtle/awesome-wm-widgets/raw/master/docker-widget/docker.gif"/>
@@ -20,7 +20,7 @@ It is possible to customize widget by providing a table with all or some of the
2020
| `executable_name` | `docker` | Name of the executable to use, defaults to `docker` |
2121
| `max_widget_width` | 270 | Maximum width of the widget before the text breaks |
2222

23-
The `executable_name` allows you to use `Podman` instead of docker. This works since `Podman` is compatible to `docker` in the sense that the syntax and command outputs are identical.
23+
The `executable_name` allows you to use Podman instead of Docker. This works since Podman is compatible with Docker in the sense that the syntax and command outputs are identical.
2424

2525
## Installation
2626

email-widget/README.md

Lines changed: 46 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,59 @@
11
# Email widget
22

3-
This widget consists of an icon with counter which shows number of unread emails: ![email icon](./em-wid-1.png)
4-
and a popup message which appears when mouse hovers over an icon: ![email popup](./em-wid-2.png)
3+
This widget consists of an icon with counter which shows the number of unread emails:
4+
5+
![email icon](./em-wid-1.png)
6+
7+
And a popup message which appears when mouse hovers over the icon:
8+
9+
![email popup](./em-wid-2.png)
510

611
## Installation
12+
713
1. Clone this repository to your awesome config folder:
814

9-
```bash
10-
git clone https://github.com/streetturtle/awesome-wm-widgets/email-widget ~/.config/awesome/email-widget
11-
```
12-
2. Make virtual environment and install dependencies:
15+
```bash
16+
git clone https://github.com/streetturtle/awesome-wm-widgets/email-widget ~/.config/awesome/email-widget
17+
```
1318

14-
```bash
15-
cd ~/.config/awesome/email-widget
16-
python3 -m venv venv
17-
source venv/bin/activate
18-
pip install -r requirements.txt
19-
```
20-
3. Fill .env file with your credentials:
19+
2. Create virtual environment and install dependencies:
2120

22-
```bash
23-
cp .env.example .env
24-
```
25-
4. Add widget to awesome:
26-
27-
```lua
28-
local email_widget = require("email-widget.email")
29-
...
30-
s.mytasklist, -- Middle widget
31-
{ -- Right widgets
32-
layout = wibox.layout.fixed.horizontal,
33-
...
34-
email_widget,
35-
...
36-
```
21+
```bash
22+
cd ~/.config/awesome/email-widget
23+
python3 -m venv venv
24+
source venv/bin/activate
25+
pip install -r requirements.txt
26+
```
3727

38-
If you want to reduce time of getting emails, you can change maximum number of emails to be fetched in .env file. Default is 10.
39-
If you want to configure width of popup window, you can change this line in email.lua file:
28+
3. Fill the .env file with your credentials:
29+
30+
```bash
31+
cp .env.example .env
32+
```
33+
34+
4. Add widget to **rc.lua**:
35+
36+
```lua
37+
local email_widget = require("email-widget.email")
38+
...
39+
s.mytasklist, -- Middle widget
40+
{ -- Right widgets
41+
layout = wibox.layout.fixed.horizontal,
42+
...
43+
email_widget,
44+
...
45+
```
46+
47+
If you want to reduce the time for fetching emails, you can change the maximum number of emails to be fetched in the .env file. Default is 10.
48+
49+
If you want to configure the width of the popup window, you can change this line in the email.lua file:
50+
51+
```lua
52+
width = 800,
53+
```
54+
55+
After this you can change the MAX_BODY_LENGTH variable in the .env file to change the number of characters to be displayed in the popup window. Default is 100.
4056
41-
```lua
42-
width = 800,
43-
```
44-
After this you can change MAX_BODY_LENGTH variable in .env file to change number of characters to be displayed in popup window. Default is 100.
4557
Next step is restarting awesome. You can do this by pressing Mod+Ctrl+r.
4658
4759
## How it works

fs-widget/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Filesystem Widget
22

3-
This widget shows file system disk space usage which is based on the `df` output. When clicked another widget appears with more detailed information. By default, it monitors the "/" mount. It can be configured with a list of mounts to monitor though only the first will show in the wibar. To have multiple mounts displayed on the wibar simply define multiple `fs_widgets` with different mounts as arguments.
3+
This widget shows filesystem disk space usage based on the `df` output. When clicked, another widget appears with more detailed information. By default, it monitors the "/" mount. It can be configured with a list of mounts to monitor, though only the first will show in the wibar. To have multiple mounts displayed on the wibar, simply define multiple `fs_widgets` with different mounts as arguments.
44

55
![](./screenshot.png)
66

7-
## Customizations
7+
## Customization
88

99
It is possible to customize widget by providing a table with all or some of the following config parameters:
1010

0 commit comments

Comments
 (0)