Added a disable function to playerctl

The disable function kills all playerct follows started by the module
This commit is contained in:
Gokul Swami 2021-03-10 12:52:31 -08:00
parent 4094fb6745
commit 631c285a75
1 changed files with 9 additions and 1 deletions

View File

@ -117,4 +117,12 @@ local enable = function()
emit_player_info()
end
return {enable = enable}
local disable = function()
awful.spawn.with_shell("pkill --full --uid " .. os.getenv("USER") ..
" '^playerctl status -F'")
awful.spawn.with_shell("pkill --full --uid " .. os.getenv("USER") ..
" '^playerctl metadata --format'")
end
return {enable = enable, disable = disable}