Initial Commit
This commit is contained in:
12
widget/storage.lua
Normal file
12
widget/storage.lua
Normal file
@@ -0,0 +1,12 @@
|
||||
local wibox = require('wibox')
|
||||
local watch = require('awful.widget.watch')
|
||||
local beautiful = require('beautiful')
|
||||
|
||||
local storage = wibox.widget.textbox()
|
||||
storage.font = beautiful.font
|
||||
|
||||
watch('bash -c "df -h $HOME | awk \'/[0-9]/ {print $2-$3}\'"', 30, function(_, stdout)
|
||||
storage.text = stdout
|
||||
end)
|
||||
|
||||
return storage
|
||||
Reference in New Issue
Block a user