Add new window switcher on super+tab and smaller fixes
This commit is contained in:
14
awesome/src/tools/helpers/cpu_temp.lua
Normal file
14
awesome/src/tools/helpers/cpu_temp.lua
Normal file
@@ -0,0 +1,14 @@
|
||||
local awful = require("awful")
|
||||
local watch = awful.widget.watch
|
||||
|
||||
watch(
|
||||
[[ bash -c "sensors | grep 'Package id 0:' | awk '{print $4}'" ]],
|
||||
3,
|
||||
function(_, stdout)
|
||||
local temp = tonumber(stdout:match("%d+"))
|
||||
awesome.emit_signal(
|
||||
"update::cpu_temp",
|
||||
temp
|
||||
)
|
||||
end
|
||||
)
|
||||
Reference in New Issue
Block a user