This is a collection of dotfiles and scripts for my bspwm setup
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

19 lines
605 B

--makes mpv only stay on top while playing
--please note that this won't do anything if ontop is not enabled before pausing
local was_ontop = false
mp.observe_property("pause", "bool", function(name, value)
local ontop = mp.get_property_native("ontop")
if value == true then
if ontop == true then
mp.set_property_native("ontop", false)
was_ontop = true
end
elseif value == false then
if was_ontop and (ontop == false) then
mp.set_property_native("ontop", true)
end
was_ontop = false
end
end)