Added a disable function to playerctl
The disable function kills all playerct follows started by the module
This commit is contained in:
parent
4094fb6745
commit
631c285a75
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue