简体   繁体   English

全屏为vlc in Awesome wm

[英]fullscreen for vlc in Awesome wm

is there a way to let awesome set vlc in full screen without displaying the menu and progress-bar? 有没有办法让全屏设置vlc全屏而不显示菜单和进度条? I already tried to do this using dbus, but this won´t work for vlc. 我已经尝试使用dbus这样做,但这对vlc不起作用。

PS: the code I used for dbus is: PS:我用于dbus的代码是:

qdbus org.mpris.MediaPlayer2.banshee \
      /org/mpris/MediaPlayer2        \
      org.mpris.MediaPlayer2.Fullscreen True

But it seams to be a problem with mpris, I tested it with other players and it does not work. 但它与mpris有问题,我和其他玩家一起测试它并不起作用。 (CanSetFullscreen gives True) (CanSetFullscreen给出True)

1 . 1 Add a rule in your rc.lua file by adding to the awful.rules.rules table: 通过添加到awful.rules.rules表在rc.lua文件中添加规则:

awful.rules.rules = {
    { rule={ class='Vlc' }, properties={ fullscreen=true } },
    -- more rules ....
}

2 . 2 In VLC go to Tools > Preferences , check "Start in minimal view mode", and click "Save". 在VLC中,转到工具>首选项 ,选中“以最小视图模式启动”,然后单击“保存”。

3 . 3 Reload awesome 重新加载真棒

Now when you startup VLC, it will start in full screen with no interface showing. 现在,当您启动VLC时,它将以全屏启动,不显示任何界面。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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