aboutsummaryrefslogtreecommitdiff
path: root/gui/conf/xmonad.hs
diff options
context:
space:
mode:
authorAdrian Kummerlaender2018-10-07 12:19:22 +0200
committerAdrian Kummerlaender2018-10-07 12:19:22 +0200
commit8ed58a60ffdd8b54a59cdab9c3eaa4465c8bdf47 (patch)
tree9b28b0f61fa0a7050bfaf9f0ca7fa32b1a18a4ad /gui/conf/xmonad.hs
parent6efdc2659c36187b7a832410e3b89ee5f1369394 (diff)
downloadnixos_home-8ed58a60ffdd8b54a59cdab9c3eaa4465c8bdf47.tar
nixos_home-8ed58a60ffdd8b54a59cdab9c3eaa4465c8bdf47.tar.gz
nixos_home-8ed58a60ffdd8b54a59cdab9c3eaa4465c8bdf47.tar.bz2
nixos_home-8ed58a60ffdd8b54a59cdab9c3eaa4465c8bdf47.tar.lz
nixos_home-8ed58a60ffdd8b54a59cdab9c3eaa4465c8bdf47.tar.xz
nixos_home-8ed58a60ffdd8b54a59cdab9c3eaa4465c8bdf47.tar.zst
nixos_home-8ed58a60ffdd8b54a59cdab9c3eaa4465c8bdf47.zip
Fix Telegram media viewer window placement
Diffstat (limited to 'gui/conf/xmonad.hs')
-rw-r--r--gui/conf/xmonad.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/gui/conf/xmonad.hs b/gui/conf/xmonad.hs
index bcdd98c..115af69 100644
--- a/gui/conf/xmonad.hs
+++ b/gui/conf/xmonad.hs
@@ -93,7 +93,7 @@ scratchpads host =
(customFloating $ hideScreenBorder host dropDownLarge)
, NS "documentation" "zeal" (className =? "Zeal")
(customFloating $ hideScreenBorder host dropDown)
- , NS "messaging" "telegram-desktop" (className =? "TelegramDesktop")
+ , NS "messaging" "telegram-desktop" ((className =? "TelegramDesktop") <&&> (title /=? "Media viewer"))
(customFloating $ hideScreenBorder host sideBarRight) ]
windowBringerDmenuConfig = def { menuCommand = "rofi"
@@ -181,11 +181,13 @@ customEventHook = do
customManageHook host = composeOne
[ hasRole "GtkFileChooserDialog" -?> doRectFloat dropDown
+ , isTelegramMediaViewer -?> doFullFloat
, isDialog -?> doCenterFloat
, transience
, pure True -?> insertPosition Below Newer <+> namedScratchpadManageHook (scratchpads host) ]
where
hasRole x = stringProperty "WM_WINDOW_ROLE" =? x
+ isTelegramMediaViewer = (className =? "TelegramDesktop") <&&> (title =? "Media viewer")
customLogHook = do
historyHook