aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorAdrian Kummerlaender2023-11-21 10:57:34 +0100
committerAdrian Kummerlaender2023-11-21 10:57:34 +0100
commitc63d15b72bafe9584ec4a2ba1256347491cce69b (patch)
tree9fe177c550b179e525eb044af3e3d48f2d8b82e9 /gui
parente432555146db6511e6bbeb3f44c362fbcccc08a7 (diff)
downloadnixos_home-c63d15b72bafe9584ec4a2ba1256347491cce69b.tar
nixos_home-c63d15b72bafe9584ec4a2ba1256347491cce69b.tar.gz
nixos_home-c63d15b72bafe9584ec4a2ba1256347491cce69b.tar.bz2
nixos_home-c63d15b72bafe9584ec4a2ba1256347491cce69b.tar.lz
nixos_home-c63d15b72bafe9584ec4a2ba1256347491cce69b.tar.xz
nixos_home-c63d15b72bafe9584ec4a2ba1256347491cce69b.tar.zst
nixos_home-c63d15b72bafe9584ec4a2ba1256347491cce69b.zip
Hide Teams's prominent screensharing float
Diffstat (limited to 'gui')
-rw-r--r--gui/conf/xmonad.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/gui/conf/xmonad.hs b/gui/conf/xmonad.hs
index d64cbd4..fa1b2d7 100644
--- a/gui/conf/xmonad.hs
+++ b/gui/conf/xmonad.hs
@@ -267,6 +267,7 @@ customEventHook = do
customManageHook host = manageMonitor (hudMonitor host) <+> composeOne
[ hasRole "GtkFileChooserDialog" -?> doRectFloat $ hideScreenBorder host dropDown
+ , isTeamsGarbage -?> doHideIgnore
, isParaviewDialog -?> doRectFloat $ hideScreenBorder host dropDown
, isTelegramMediaViewer -?> doFullFloat
, isDialog -?> doCenterFloat
@@ -275,6 +276,7 @@ customManageHook host = manageMonitor (hudMonitor host) <+> composeOne
, pure True -?> insertPosition Below Newer <+> namedScratchpadManageHook (scratchpads host) ]
where
hasRole x = stringProperty "WM_WINDOW_ROLE" =? x
+ isTeamsGarbage = (title =? "teams.microsoft.com is sharing your screen.")
isParaviewDialog = (className =? "ParaView") <&&> isDialog
isPrompter = (className =? "Gcr-prompter")
isTelegramMediaViewer = (className =? "TelegramDesktop") <&&> (title =? "Media viewer")