Hi,
Currently, if a window goes into full screen mode (e.g., if I hit "f" while
watching a youtube video in Chrome), I would like it to take up the entire
screen and also remove the window border. I have tried doing this with the
code snippets I've included below (full xmonad.hs
<https://pastebin.com/uDqdETiF>). However this only works partially. The
window resizes to take up the entire screen, including toggling struts.
However, the border does not toggle off. Is there anything I can do
differently? Thank you.
-- Define a function which toggles borders and also does full float
doFullFloatNoBorders :: ManageHook
doFullFloatNoBorders = do
liftX $ withFocused toggleBorder
doFullFloat
myManageHook :: [ManageHook]
myManageHook =
[ isFullscreen --> doFullFloatNoBorders
-- more rules
]
where role = stringProperty "WM_WINDOW_ROLE"
unfloat = ask >>= doF . W.sink
myKeys conf@(XConfig {XMonad.modMask = modMask}) = M.fromList $
[ -- Toggle borders
((modMask .|. shiftMask, xK_b ), withFocused toggleBorder)
-- more key definitions
]
-- Main configuration
myConfig = ewmhFullscreen $ ewmh def
{ modMask = mod1Mask
, keys = myKeys
, manageHook = manageDocks <+> composeAll myManageHook
-- more configuration
}
-- Key binding to toggle the gap for the bar.
toggleStrutsKey XConfig {XMonad.modMask = modMask} = (modMask .|.
controlMask, xK_b)
main = xmonad =<< statusBar "xmonad" def toggleStrutsKey myConfig
--
*Eyal Erez <**oneself(a)gmail.com* <oneself(a)gmail.com>*>*
There are 10 types of people, those who know binary and those who don't.
Hi,
I've started encountering a weird problem: roughly one in three times,
something will crash when I try to log in, and bounce me back to the login
manager (slim in my case). When I look in .xsession-errors, I can see:
XIO: fatal IO error 4 (Interrupted system call) on X server ":0.0"
after 8690 requests (8690 known processed) with 0 events remaining.
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server
":0.0"
after 2823 requests (6 known processed) with 0 events remaining.
lxpolkit: Fatal IO error 11 (Resource temporarily unavailable) on X server
:0.0.
X connection to :0.0 broken (explicit kill or server shutdown).
X connection to :0.0 broken (explicit kill or server shutdown).
X connection to :0.0 broken (explicit kill or server shutdown).
But I'm not sure what this means or how to debug further. Here's the full
.xsession-errors
https://pastebin.com/t3AcV7dC
Any help would be appreciated.
--
There are 10 types of people, those who know binary and those who don't.