fix: profile not showing correctly

This commit is contained in:
tux
2024-11-14 04:12:36 +05:30
parent da77edacbf
commit a6275f1552

View File

@ -3,7 +3,7 @@ local watch = require("awful.widget.watch")
local wibox = require("wibox")
local profile = wibox.widget.textbox("P: NA")
watch("bash -c \"asusctl profile -p | awk '{print $NF}'\"", 10, function(_, stdout)
watch("bash -c \"asusctl profile -p | awk 'END {print $NF}'\"", 10, function(_, stdout)
profile.text = "P:" .. " " .. stdout
end)