Skip to content

Instantly share code, notes, and snippets.

@ony
Created July 19, 2020 21:34
Show Gist options
  • Save ony/ccca5d4b9c61b25f082afe6080b42eec to your computer and use it in GitHub Desktop.
Save ony/ccca5d4b9c61b25f082afe6080b42eec to your computer and use it in GitHub Desktop.
Clean activity marker for all regions in notion WM
-- Help for those who many windows marked as if there is "activity" happening at once
function clean_all_activity()
local act_regions = {}
ioncore.activity_i(function(reg)
table.insert(act_regions, reg)
return true
end)
-- changes to activity list outside of iterator
for _,reg in ipairs(act_regions) do
reg:set_activity('unset')
end
end
defmenu("mainmenu", {
append=true,
menuentry("Clean all activity", "clean_all_activity()"),
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment