From d728dfcd708c282f44b86542d3f46a1154f46be7 Mon Sep 17 00:00:00 2001 From: Colin Date: Tue, 9 Apr 2024 10:14:40 +0000 Subject: [PATCH] mpv: uosc: tweak the maximize button to actually act as a fullscreen toggle --- hosts/common/programs/mpv/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hosts/common/programs/mpv/default.nix b/hosts/common/programs/mpv/default.nix index a7101bdbb..d4730f8e6 100644 --- a/hosts/common/programs/mpv/default.nix +++ b/hosts/common/programs/mpv/default.nix @@ -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: {