Skip to content

Is there a command to launch a window floating? #204

Answered by bakkeby
mrwsl asked this question in Q&A
Discussion options

You must be logged in to vote

mpv is not particularly flexible when it comes to specifying the instance or class, but it does allow for the title to be set.

I would try with a rule like:

RULE(.class = "mpv", .title = "radar", .isfloating = 1, .iscentered = 1)

and a command like this:

setsid -f "$TERMINAL" -e mpv --title="radar" -loop=inf "$radar"

The title came through as "radar" when applyrules is called in my testing, so I think this should be fine.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mrwsl
Comment options

Answer selected by mrwsl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants