rewrote a lot of stuff especially the bluetooth module. fixed some errors
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
local awful = require("awful")
|
||||
local watch = awful.widget.watch
|
||||
|
||||
local capi = {
|
||||
awesome = awesome,
|
||||
}
|
||||
|
||||
watch(
|
||||
[[ bash -c "nvidia-smi -q -d UTILIZATION | grep Gpu | awk '{print $3}'"]],
|
||||
3,
|
||||
function(_, stdout)
|
||||
stdout = stdout:match("%d+")
|
||||
awesome.emit_signal("update::gpu_usage", stdout)
|
||||
capi.awesome.emit_signal("update::gpu_usage", stdout)
|
||||
end
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user