Merge pull request #204 from floli/fix-fswidget-readme
Fix fs-widget README.
This commit is contained in:
commit
ef9292d082
|
@ -1,20 +1,20 @@
|
||||||
# Storage Widget
|
# Filesystem Widget
|
||||||
|
|
||||||
This widget shows disk usage. When clicked another widget appears with more detailed information. By default it monitors the "/" mount. It can be configured with a
|
This widget shows disk usage. 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
|
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 `storage_widgets`
|
multiple mounts displayed on the wibar simply define multiple `fs_widgets`
|
||||||
with different mounts as arguments.
|
with different mounts as arguments.
|
||||||
|
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
local storage_widget = require("awesome-wm-widgets.storage-widget.storage-widget")
|
local fs_widget = require("awesome-wm-widgets.fs-widget.fs-widget")
|
||||||
...
|
...
|
||||||
s.mywibox:setup {
|
s.mywibox:setup {
|
||||||
s.mytasklist, -- Middle widget
|
s.mytasklist, -- Middle widget
|
||||||
{ -- Right widgets
|
{ -- Right widgets
|
||||||
storage_widget(), --default
|
fs_widget(), --default
|
||||||
wibox.widget.textbox(':'),
|
wibox.widget.textbox(':'),
|
||||||
storage_widget({ mounts = { '/', '/mnt/musicj' } }), -- multiple mounts
|
fs_widget({ mounts = { '/', '/mnt/musicj' } }), -- multiple mounts
|
||||||
...
|
...
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue