From c7f4ea880d57072712d25ecf82f5a25a6292c580 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Wed, 13 May 2020 09:12:59 +0200 Subject: [PATCH] [mpv] Change unique mpv to floating instance Changed the way umpv starts up to always be a floating instance in the lower left screen corner. --- mpv/.local/bin/umpv | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/mpv/.local/bin/umpv b/mpv/.local/bin/umpv index 2053aa0..b837019 100755 --- a/mpv/.local/bin/umpv +++ b/mpv/.local/bin/umpv @@ -90,7 +90,14 @@ else: os.mkfifo(FIFO, 0o600) opts = (os.getenv("MPV") or "mpv").split() - opts.extend(["--no-terminal", "--force-window=immediate", "--input-file=" + FIFO, + opts.extend(["--no-terminal", + "--on-all-workspaces", + # position on lower left screen corner + # contains funky fix for slight resizings depending on video + # move it 10px more left than it wants; 5px more up + "--geometry=15%+-10-+5", + "--force-window=immediate", + "--input-file=" + FIFO, "--"]) opts.extend(files)