Repository navigation
|
I have a statuscmd enabled bar and I want to show a rain radar gif centered and floating. Therefore I created a rule: The command launching mpv: The problem is that the window is called "mpv" for the first seconds. Is there a way to start a window centered and floating besides creating rules? |
Answered by
bakkeby
Dec 17, 2021
Replies: 1 comment 1 reply
|
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. |
1 reply
Answer selected by
mrwsl
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
and a command like this:
The title came through as "radar" when applyrules is called in my testing, so I think this should be fine.