celluloid icon indicating copy to clipboard operation
celluloid copied to clipboard

Hide menu bar

Open frosty-sh opened this issue 5 years ago • 7 comments

It would be really nice if there was a way to remove the menu bar for people using tiling windows managers.

image

frosty-sh avatar Jun 25 '20 10:06 frosty-sh

You can do that now by enabling CSD and floating controls, then set the mpv option border=no. I'll implement a more direct way to do this later.

gnome-mpv avatar Jun 25 '20 12:06 gnome-mpv

@gnome-mpv / @celluloid-player
any news on this? I would like to switch to complete borderless (i.e. only video/audio content, no controls) picture-in-picture like view with a keybombo. I found absolutely no option to turn off menu bar in source code / properties. Can one be added?

image

By the way, why are there no properties to control the playlist gui and controls gui? I found only toggle, but no thing I could set "playlist_ui" = "no"..

TL;DR: Picture-in-Picture isn't possible with gnome-mpv/celluloid due this.

gsantner avatar Nov 22 '20 00:11 gsantner

@gsantner

I found absolutely no option to turn off menu bar in source code / properties. Can one be added?

Sure. I'll look into it.

By the way, why are there no properties to control the playlist gui and controls gui? I found only toggle, but no thing I could set "playlist_ui" = "no"..

mpv doesn't provide an API for libmpv clients to add their own properties. For things that mpv has properties for, like border, we can observe the properties and respond appropriately. For things that mpv doesn't have properties for, we have to use script messages instead.

For your use case, we can add set variants for the toggle commands. Do you think that would work?

gnome-mpv avatar Nov 22 '20 08:11 gnome-mpv

Hey thanks for fast response

doesn't provide an API for For things that mpv doesn't have properties > for, we have to use script messages instead. For your use case, we can add set variants for the toggle commands. Do you think that would work?

Yes, anything is fine that can be added to input.conf or/and lua. Is it also possible to get_ value?

By the way, I experimented yesterday with os.execute(gsettings set io.....playlist-thing true/fals) and the application doesnt react on the settings change there (for CSD I do understand that it's not possible to observe/adapt the application at runtime).
Let me know when you are interested in more details/info.

grafik

Thanks

gsantner avatar Nov 22 '20 08:11 gsantner

Is it also possible to get_ value?

I don't think so. There's no way for a command to return a value AFAIK.

By the way, I experimented yesterday with os.execute(gsettings set io.....playlist-thing true/fals) and the application doesnt react on the settings change there (for CSD I do understand that it's not possible to observe/adapt the application at runtime).

I'll see if I can make them work in real time. Those GSettings keys were only intended to be used to save window state across sessions, so they weren't set up to take effect immediately.

gnome-mpv avatar Nov 22 '20 09:11 gnome-mpv