简体   繁体   English

Linux MS Teams 预览 + XMonad:可能有通知浮动?

[英]Linux MS Teams preview + XMonad: Possible to have notifiactions float?

When running Linux Teams (preview) in XMonad all notifications that should normally showup as a little floating windows are integrated into the tiling and reorder the layout.在 XMonad 中运行Linux Teams(预览版)时,所有通常应显示为小浮动 windows 的通知都集成到平铺中并重新排列布局。 This is a bit irritating and I wanted to ask weather there is a way to leave the Teams notifications floating.这有点让人恼火,我想问问有没有办法让 Teams 通知浮动。 I have some rules for applications to shopup as float:对于将 shopup 用作浮动的应用程序,我有一些规则:

myManageHookonly 
myManageHook = composeAll
     [                                                                                     
      resource  =? "desktop_window" --> doIgnore                                          
    , className =? "Galculator"     --> doFloat                                           
    , className =? "Steam"          --> doFloat                                           
    , className =? "Gimp"           --> doFloat                                           
    , resource  =? "gpicview"       --> doFloat                                           
    , className =? "MPlayer"        --> doFloat                                           
--  , className =? "VirtualBox"     --> doShift "6:vm"                                    
    , className =? "Xchat"          --> doShift "7:media"                                 
    , className =? "stalonetray"    --> doIgnore                                          
    , isFullscreen --> (doF W.focusDown <+> doFullFloat  )] 

But I think these definitions affect all windows of a prog however the Teams app itself should be tiled while only the notifications should remain floating.但我认为这些定义会影响 prog 的所有 windows 但是 Teams 应用程序本身应该平铺,而只有通知应该保持浮动。 Is that possible?那可能吗?

I got it working by adding this in the composeAll :我通过在composeAll中添加它来让它工作:

title =? "Microsoft Teams Notification" --> doSideFloat NE

This floats the notification in the top right, if you want it to appear somewhere else you can change NE to another direction.这会将通知浮动在右上角,如果您希望它出现在其他地方,您可以将NE更改为另一个方向。

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

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