-
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? |
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
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.