Search code examples
linuxmicrosoft-teamsxmonad

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. This is a bit irritating and I wanted to ask weather there is a way to leave the Teams notifications floating. I have some rules for applications to shopup as float:

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. Is that possible?


Solution

  • I got it working by adding this in the 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.