Created
July 19, 2020 21:34
-
-
Save ony/ccca5d4b9c61b25f082afe6080b42eec to your computer and use it in GitHub Desktop.
Clean activity marker for all regions in notion WM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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