[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.
This commit is contained in:
Marty Oehme 2020-05-13 09:12:59 +02:00
parent b439e7fabb
commit c7f4ea880d
No known key found for this signature in database
GPG key ID: 0CCB0526EFB9611A

View file

@ -90,7 +90,14 @@ else:
os.mkfifo(FIFO, 0o600) os.mkfifo(FIFO, 0o600)
opts = (os.getenv("MPV") or "mpv").split() 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) opts.extend(files)