mpv: uosc: tweak the maximize button to actually act as a fullscreen toggle
This commit is contained in:
@@ -116,6 +116,12 @@ let
|
|||||||
--replace-fail \
|
--replace-fail \
|
||||||
"mp.commandv('cycle', 'mute')" \
|
"mp.commandv('cycle', 'mute')" \
|
||||||
"mp.set_property_bool('user-data/sane-sysvol/mute', not mp.get_property_bool('user-data/sane-sysvol/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: {
|
mpv-unwrapped = pkgs.mpv-unwrapped.overrideAttrs (upstream: {
|
||||||
|
Reference in New Issue
Block a user