mpv: uosc: tweak the maximize button to actually act as a fullscreen toggle

This commit is contained in:
2024-04-09 10:14:40 +00:00
parent 19fcd0318c
commit d728dfcd70

View File

@@ -116,6 +116,12 @@ let
--replace-fail \
"mp.commandv('cycle', 'mute')" \
"mp.set_property_bool('user-data/sane-sysvol/mute', not mp.get_property_bool('user-data/sane-sysvol/mute'))"
# tweak the top-bar "maximize" button to actually act as a "fullscreen" button.
substituteInPlace src/uosc/elements/TopBar.lua \
--replace-fail \
'get_maximized_command,' \
'"cycle fullscreen",'
'';
});
mpv-unwrapped = pkgs.mpv-unwrapped.overrideAttrs (upstream: {