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