X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/b66251c1c0b6ce671d3e910e820607ecdff27c77..c7f1311f61c80b97a3bf397d5391094ea0d6eb65:/fs.md diff --git a/fs.md b/fs.md index 951f73b..7ee1f5c 100644 --- a/fs.md +++ b/fs.md @@ -1,3 +1,5 @@ +[<- widgets](https://github.com/copycat-killer/lain/wiki/Widgets) + Shows disk space usage for a set partition. Displays a notification when the partition is full or has low space. @@ -13,10 +15,10 @@ Variable | Meaning | Type | Default `header` | Text to show before value | string | " Hdd " `header_color` | Header color | string | `beautiful.fg_normal` or "#FFFFFF" `color` | Value color | string | `beautiful.fg_focus` or "#FFFFFF" -`footer` | Text to show after value | string | "%" +`footer` | Text to show after value | string | " " `shadow` | Hide the widget if `partition` < 90 | boolean | false -**Note**: `footer` color is `color`. +**Note**: `footer` can be markup text. `lain.widgets.fs` outputs the following table: @@ -25,7 +27,7 @@ Variable | Meaning | Type `widget` | The widget | `wibox.widget.textbox` `show` | The notification | function -You can display a notification of current disk space usage with a key binding like this: +You can display the notification with a key binding like this: awful.key({ altkey }, "h", function () mypartition.show(7) end),