I am using Arch Linux (4.7.5-1-ARCH) with xmonad (xmonad 0.12) window manager. I am new to xmonad and I am still learning it. I have not done much modifications so my xmonad.hs is minimal.

 import XMonad  
 import XMonad.Layout.Spacing  
 import Graphics.X11.ExtraTypes.XF86  
 import XMonad.Util.EZConfig  
 import XMonad.Hooks.ManageHelpers

 manageHook = manageDocks <+> (isFullscreen --> doFullFloat) <+> manageHook defaultConfig   
 myLayout = tiled ||| Mirror tiled ||| Full  
      -- default tiling algorithm partitions the screen into two panes  
      tiled = spacing 3 $ Tall nmaster delta ratio  

      -- The default number of windows in the master pane  
      nmaster = 1  

      -- Default proportion of screen occupied by master pane  
      ratio = 1/2  

      -- Percent of screen to increment by when resizing panes  
      delta = 2/100  

 main = do  
 xmonad $ defaultConfig  
      {layoutHook = myLayout


The problem I am facing is that I am not able to make some applications go full screen. As of now, when I press F11, only mozilla firefox goes to fullscreen. The following applications (and many more) does not obey F11 at all. - gedit text editor - evince Document Viewer - emacs - leafpad

Nothing happens when I press F11. It doesn't respond even if I manually click on fullscreen-button ⇱⇲ (as you can see below).

enter image description here

Is there any way to make things go fullscreen on xmonad ?

  • The whole of that screenshot is occupied by a single window. What do you want differently, from "fullscreen"?
    – JigglyNaga
    Oct 3, 2016 at 16:44
  • @JigglyNaga something like this : i.stack.imgur.com/daHWI.png Oct 3, 2016 at 16:48
  • I got the solution from #xmonad IRC :) . He told me he would post an answer here too. Oct 3, 2016 at 16:51
  • @Severus Tux , of course is helpful write answer
    – mimi.vx
    Apr 19, 2017 at 13:11

1 Answer 1


Simply add XMonad.Hooks.EwmhDesktops.fullscreenEventHook to your handleEventHook definition. Here is an excerpt from my configuration

import XMonad.Hooks.EwmhDesktops

main = do
    xmonad $ docks $ ewmh def {
        handleEventHook    = handleEventHook def <+> XMonad.Hooks.EwmhDesktops.fullscreenEventHook,
        modMask            = mod4Mask,
        terminal           = "terminator",
        workspaces         = myWorkspaces,
        layoutHook         = myLayoutHook,
        manageHook         = manageSpawn <+> myManageHook <+> manageHook def,
        borderWidth        = 1,
        normalBorderColor  = black,
        focusedBorderColor = yellow,
        focusFollowsMouse  = False,
        logHook            = dynamicLogWithPP xmobarPP {
            ppOutput = hPutStrLn xmproc,
            ppTitle  = xmobarColor "green" "" . shorten 50}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.