mirror of
https://github.com/elenapan/dotfiles.git
synced 2026-01-10 11:12:37 +08:00
evil daemon system, dependency list update, README improvements.
Former-commit-id: db310f8e49
Former-commit-id: 4f25f9200c3ac9f9385daca5a68378249ff0329e
Former-commit-id: 69fa3954e5738446a59b409b7e326233e7c3ef55
Former-commit-id: 673176f7857e39f3455f4ccb426eef2789c0e891
15 lines
412 B
Lua
15 lines
412 B
Lua
-- Provides:
|
|
-- evil::temperature
|
|
-- temperature (integer - in Celcius)
|
|
local awful = require("awful")
|
|
|
|
local update_interval = 15
|
|
local temp_script = [[
|
|
sh -c "
|
|
sensors | grep Package | awk '{print $4}' | cut -c 2-3
|
|
"]]
|
|
|
|
-- Periodically get temperature info
|
|
awful.widget.watch(temp_script, update_interval, function(widget, stdout)
|
|
awesome.emit_signal("evil::temperature", tonumber(stdout))
|
|
end)
|