public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Melleus <melleus@openmailbox.org>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Re: Strange Xmonad problem
Date: Fri, 29 Sep 2017 12:13:58 +0300	[thread overview]
Message-ID: <87r2upsw89.fsf@openmailbox.org> (raw)
In-Reply-To: 20170928182724.GA5200@anonymous

[-- Attachment #1: Type: text/plain, Size: 725 bytes --]

Simon Thelen <gentoo-user@c-14.de> writes:

> On 17-09-28 at 20:30, Melleus wrote:
> [..]
>> Might I ask another Xmonad question in this thread? I would like to have
>> the Firefox goes fullscreen on F11, but the stanza:
>> 
>> isFullscreen --> doFullFloat
>> 
>> in my config does not work, Xmobar remains visible. But some applications (like
>> Zathura) can go fullscreen and hide Xmobar even without that stanza. Did
>> I misconfigured something?
> You probably want fullscreenEventHook from [1] as shown in the Usage.
>
> [1] https://hackage.haskell.org/package/xmonad-contrib-0.13/docs/XMonad-Hooks-EwmhDesktops.html

I have tried. But it doesn't work for me. I might be missing something though.
My config is attached:

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: xmonad.hs --]
[-- Type: text/x-haskell, Size: 1460 bytes --]

import XMonad
import XMonad.Hooks.EwmhDesktops
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.ManageDocks
import XMonad.Hooks.ManageHelpers
-- import XMonad.Layout.NoBorders
import XMonad.Util.Run(spawnPipe)
import XMonad.Util.EZConfig(additionalKeys)
import System.IO

myManageHook = composeAll
 [ title =? "GnuCash" --> doFloat
   , isFullscreen --> doFullFloat
  ]

main = do
        xmproc <- spawnPipe "xmobar"
	xmonad $ ewmh defaultConfig
          {
		modMask = mod4Mask,
                terminal = "urxvt",
                manageHook = manageDocks <+> myManageHook <+> manageHook defaultConfig,
                layoutHook = avoidStruts $ layoutHook defaultConfig,
                logHook = dynamicLogWithPP xmobarPP
                        { ppOutput = hPutStrLn xmproc,
                          ppTitle = xmobarColor "green" "" . shorten 50
                        },
-- handleEventHook - makes space for xmobar, docksEventHook must be last
                handleEventHook = mconcat
                          [ docksEventHook
                          , handleEventHook defaultConfig ] <+> fullscreenEventHook
                ,startupHook = do
                        spawn "source ~/.xmonad/autostart"
		}
                  `additionalKeys`
                [ ((mod4Mask, xK_d), spawn "dmenu_run -b -nb black"),
                  ((0, xK_Print), spawn "~/.xmonad/screen2file.sh"),
                  ((mod4Mask, xK_b), sendMessage ToggleStruts) ]

  reply	other threads:[~2017-09-29  9:14 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-27 16:22 [gentoo-user] Strange Xmonad problem Melleus
2017-09-27 21:06 ` Simon Thelen
2017-09-27 23:40   ` R0b0t1
2017-09-28 17:56     ` [gentoo-user] " Melleus
2017-09-28 17:30   ` Melleus
2017-09-28 18:27     ` Simon Thelen
2017-09-29  9:13       ` Melleus [this message]
2017-09-29 14:13         ` Simon Thelen
2017-09-29 19:09           ` Melleus
2017-09-30  0:22             ` Simon Thelen
2017-10-01  9:38               ` Melleus
2017-10-01 20:45                 ` R0b0t1

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r2upsw89.fsf@openmailbox.org \
    --to=melleus@openmailbox.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox