Skip to content

Instantly share code, notes, and snippets.

@zaza42
zaza42 / boss-key.lua
Last active March 10, 2021 12:45 — forked from detuur/README.md
mpv script for "boss key" functionality i.e. it minimizes and pauses your window at the same time. (Windows and Xorg).
-- This script minimises and pauses the window when
-- the boss key (default 'b') is pressed.
-- Can be overwriten in input.conf as follows:
-- KEY script-binding boss-key
-- xdotool is required on Xorg(Linux)
local platform = nil --set to 'linux', 'windows' or 'macos' to override automatic assign
if not platform then
local o = {}
if mp.get_property_native('options/vo-mmcss-profile', o) ~= o then