简体   繁体   中英

Stop MPlayer from using float in Awesome WM

I understand that MPlayer calls a "configurerequest" and for that reason, completely ignores the rules of my Window Manager in Archlinux, AwesomeWM and instead of being tiled, it floats. Is there anyway to stop this from happening? Thanks!

You want to find the following code block, and change floating = false :

awful.rules.rules = {
    ...
    { rule = { class = "MPlayer" }, properties = { floating = false } },
    ...
}

The determine the class part, do the following in a terminal window:

% xprop | grep WM_CLASS

Then click on the window whose class name you are trying to determine. One of those wonderful UNIX things that you have to experience to believe.

也可以通过按ctrl + Mod + space来切换浮动(在我的情况下,我认为它是非常棒的默认设置,windowskey是Mod键)

I don't know anything about "configurerequest", and I think mplayer is just a normal window like any others. When reading /etc/xdg/awesome/rc.lua , I found MPlayer is specifically configured to be floating.

Removing that configuration in rc.lua might help.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM