Discussion:
[xmonad] Can avoidStruts stop working?
Tuncer Ayaz
2016-03-02 12:49:04 UTC
Permalink
Does anybody else run XMonad on Arch Linux AMD64 (non-testing)? Since
about a week (and a half) ago something seems to have caused
avoidStruts to be ignored, because xmobar is covered by any window I
open. I've tried unsuccessfully with my full config and the recently
suggested new sample config here on the list[1]. Any idea what's
happening? It's possibly an operator issue, but I don't know how to
debug it.

[1] https://mail.haskell.org/pipermail/xmonad/2015-December/014977.html
Dave Macias
2016-03-02 14:25:39 UTC
Permalink
I have a similar issue but when i startup xmonad for the first time. All i
do is reset the layout on all visible workspaces (mod-shift-space). Havent
figured how to fix it. Using dzen as my status bars.
Post by Tuncer Ayaz
Does anybody else run XMonad on Arch Linux AMD64 (non-testing)? Since
about a week (and a half) ago something seems to have caused
avoidStruts to be ignored, because xmobar is covered by any window I
open. I've tried unsuccessfully with my full config and the recently
suggested new sample config here on the list[1]. Any idea what's
happening? It's possibly an operator issue, but I don't know how to
debug it.
[1] https://mail.haskell.org/pipermail/xmonad/2015-December/014977.html
_______________________________________________
xmonad mailing list
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
Jean-Philippe Braun
2016-03-02 15:05:14 UTC
Permalink
Same issue here. After I reset the layout it's working fine. I'm using
xmobar.
Post by Dave Macias
I have a similar issue but when i startup xmonad for the first time. All i
do is reset the layout on all visible workspaces (mod-shift-space). Havent
figured how to fix it. Using dzen as my status bars.
Post by Tuncer Ayaz
Does anybody else run XMonad on Arch Linux AMD64 (non-testing)? Since
about a week (and a half) ago something seems to have caused
avoidStruts to be ignored, because xmobar is covered by any window I
open. I've tried unsuccessfully with my full config and the recently
suggested new sample config here on the list[1]. Any idea what's
happening? It's possibly an operator issue, but I don't know how to
debug it.
[1] https://mail.haskell.org/pipermail/xmonad/2015-December/014977.html
_______________________________________________
xmonad mailing list
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
_______________________________________________
xmonad mailing list
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
Brandon Allbery
2016-03-02 15:17:12 UTC
Permalink
Post by Jean-Philippe Braun
Same issue here. After I reset the layout it's working fine. I'm using
xmobar.
Post by Dave Macias
I have a similar issue but when i startup xmonad for the first time. All
i
Post by Dave Macias
do is reset the layout on all visible workspaces (mod-shift-space).
Havent
Post by Dave Macias
figured how to fix it. Using dzen as my status bars.
Post by Tuncer Ayaz
Does anybody else run XMonad on Arch Linux AMD64 (non-testing)? Since
about a week (and a half) ago something seems to have caused
avoidStruts to be ignored, because xmobar is covered by any window I
open. I've tried unsuccessfully with my full config and the recently
suggested new sample config here on the list[1]. Any idea what's
happening? It's possibly an operator issue, but I don't know how to
debug it.
[1]
https://mail.haskell.org/pipermail/xmonad/2015-December/014977.html
If you're running xmonad 0.12, you might want to either downgrade to 0.11
or remove your current xmonad + xmonad-contrib and reinstall both from git
master. 0.12 introduced strut caching, but had a bug that caused it to
cache the nonexistence of struts at startup time and not notice them being
added later when the dock is (un)managed.
--
brandon s allbery kf8nh sine nomine associates
***@gmail.com ***@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
Tuncer Ayaz
2016-03-02 15:21:24 UTC
Permalink
Post by Brandon Allbery
If you're running xmonad 0.12, you might want to either downgrade to
0.11 or remove your current xmonad + xmonad-contrib and reinstall
both from git master. 0.12 introduced strut caching, but had a bug
that caused it to cache the nonexistence of struts at startup time
and not notice them being added later when the dock is (un)managed.
I was using xmonad and xmonad-contrib master with xmobar stable from
hackage.

I had rebuilt before, but I'll try again.

Where exactly is the caching store and can it be invalidated?
Ideally a cache shall not need manual management.
Dave Macias
2016-03-02 16:21:07 UTC
Permalink
I moved from haskage xmonad + contrib to git master.
Avoidstruts no longer works even if i refresh (mod-shift-space). Also
noticed that "completionKey" lline from Xmonad.Prompt no longer works(might
be default since it still works). Uncommented with no issues.
When i go back to haskel xmonad + contrib, avoidstruts works but after
refreshing the layout.

Using dzen. i can try haskell xmobar...
Post by Brandon Allbery
Post by Jean-Philippe Braun
Same issue here. After I reset the layout it's working fine. I'm using
xmobar.
Post by Dave Macias
I have a similar issue but when i startup xmonad for the first time.
All i
Post by Dave Macias
do is reset the layout on all visible workspaces (mod-shift-space).
Havent
Post by Dave Macias
figured how to fix it. Using dzen as my status bars.
Post by Tuncer Ayaz
Does anybody else run XMonad on Arch Linux AMD64 (non-testing)? Since
about a week (and a half) ago something seems to have caused
avoidStruts to be ignored, because xmobar is covered by any window I
open. I've tried unsuccessfully with my full config and the recently
suggested new sample config here on the list[1]. Any idea what's
happening? It's possibly an operator issue, but I don't know how to
debug it.
[1]
https://mail.haskell.org/pipermail/xmonad/2015-December/014977.html
If you're running xmonad 0.12, you might want to either downgrade to 0.11
or remove your current xmonad + xmonad-contrib and reinstall both from git
master. 0.12 introduced strut caching, but had a bug that caused it to
cache the nonexistence of struts at startup time and not notice them being
added later when the dock is (un)managed.
--
brandon s allbery kf8nh sine nomine associates
unix, openafs, kerberos, infrastructure, xmonad
http://sinenomine.net
Tuncer Ayaz
2016-03-02 16:42:41 UTC
Permalink
I moved from haskage xmonad + contrib to git master. Avoidstruts no
longer works even if i refresh (mod-shift-space). Also noticed that
"completionKey" lline from Xmonad.Prompt no longer works(might be
default since it still works). Uncommented with no issues. When i go
back to haskel xmonad + contrib, avoidstruts works but after
refreshing the layout.
Using dzen. i can try haskell xmobar...
dzen failed the same way as xmobar here, so I think it's a
general problem.
Bogdan Sinitsyn
2016-03-02 17:55:04 UTC
Permalink
Post by Dave Macias
Avoidstruts no longer works even if i refresh (mod-shift-space).
Now `docksEventHook`(for adding a dock to layout) and `docksStartupHook`(for
re-adding all docks when you restore layout) are required. Btw, restoring
layout breaks many layout modifiers, b.e. subj, X.L.Minimize, X.L.Fullscreen
and some others. The only solution I see is to add something like
`docksStartupHook`(btw, that is very bad name because it's not for
`startupHook` but for running after `setLayout =<< asks (layoutHook . config)`)
Post by Dave Macias
Also noticed that "completionKey" lline from Xmonad.Prompt no longer
works(might be default since it still works).
Now format is `(KeyMask, KeySym)`, see CHANGES.md
--
Bogdan Sinitsyn
Tuncer Ayaz
2016-03-02 18:59:58 UTC
Permalink
Post by Bogdan Sinitsyn
Post by Dave Macias
Avoidstruts no longer works even if i refresh (mod-shift-space).
Now `docksEventHook`(for adding a dock to layout) and
`docksStartupHook`(for re-adding all docks when you restore layout)
are required. Btw, restoring layout breaks many layout modifiers,
b.e. subj, X.L.Minimize, X.L.Fullscreen and some others. The only
solution I see is to add something like `docksStartupHook`(btw, that
is very bad name because it's not for `startupHook` but for running
after `setLayout =<< asks (layoutHook . config)`)
Thanks, Bogdan, that fixes it. I'll post an updated sample config.

It was sufficient to add just docksEventHook. Feel free to critique
the new sample config.
Dave Macias
2016-03-02 19:38:34 UTC
Permalink
Thanks for info.
I already have docksEventHook.
`setLayout =<< asks ....` works since im able to go back to my default
layout but it does not respect the dzen bar.
I did not quite understand how to try the `docksStartupHook` after
`setLayout =<<...`
config here:
https://raw.githubusercontent.com/davama/xmonad/master/xmonad.hs

Thanks
Post by Bogdan Sinitsyn
Post by Dave Macias
Avoidstruts no longer works even if i refresh (mod-shift-space).
Now `docksEventHook`(for adding a dock to layout) and
`docksStartupHook`(for
re-adding all docks when you restore layout) are required. Btw, restoring
layout breaks many layout modifiers, b.e. subj, X.L.Minimize,
X.L.Fullscreen
and some others. The only solution I see is to add something like
`docksStartupHook`(btw, that is very bad name because it's not for
`startupHook` but for running after `setLayout =<< asks (layoutHook . config)`)
Post by Dave Macias
Also noticed that "completionKey" lline from Xmonad.Prompt no longer
works(might be default since it still works).
Now format is `(KeyMask, KeySym)`, see CHANGES.md
--
Bogdan Sinitsyn
Bogdan Sinitsyn
2016-03-02 19:48:34 UTC
Permalink
Post by Dave Macias
I did not quite understand how to try the `docksStartupHook` after
`setLayout =<<...`
`(setLayout =<< asks (layoutHook . config)) >> docksStartupHook`
--
Bogdan Sinitsyn
Dave Macias
2016-03-03 13:36:10 UTC
Permalink
Thank you Bogdan for the reply. I did as suggested. I tried different
versions:

`setLayout $ XMonad.layoutHook conf` -- original code. works fine under
Haskell xmonad 0.12. with GIT xmonad docks are not longer respected.
`setLayout $ XMonad.layoutHook conf >> docksStartupHook` -- failed on
xmonad restart
`(setLayout $ XMonad.layoutHook conf) >> docksStartupHook` -- passes xmonad
restart but setLayout to default does not work, neither respect for docks
`(setLayout =<< asks (XMonad.layoutHook . config)) >> docksStartupHook` --
passes restart. setLayout works. but still no respect for docks.

I feel like im very close.
Could it be that my `manageDocks` or `docksEventHook e` are not properly
configured?

Thank you again for assistance. Hopefully my struggles will help someone
else who reads this.
-Dave
Post by Bogdan Sinitsyn
Post by Dave Macias
I did not quite understand how to try the `docksStartupHook` after
`setLayout =<<...`
`(setLayout =<< asks (layoutHook . config)) >> docksStartupHook`
--
Bogdan Sinitsyn
Bogdan Sinitsyn
2016-03-03 13:58:11 UTC
Permalink
Are you speaking about action on some hotkey instead of `setLayout =<< asks
(layoutHook . config)` or something else? If first then I dunno what's wrong,
can you give the whole config?
Post by Dave Macias
Thank you Bogdan for the reply. I did as suggested. I tried different
`setLayout $ XMonad.layoutHook conf` -- original code. works fine under
Haskell xmonad 0.12. with GIT xmonad docks are not longer respected.
`setLayout $ XMonad.layoutHook conf >> docksStartupHook` -- failed on
xmonad restart
`(setLayout $ XMonad.layoutHook conf) >> docksStartupHook` -- passes xmonad
restart but setLayout to default does not work, neither respect for docks
`(setLayout =<< asks (XMonad.layoutHook . config)) >> docksStartupHook` --
passes restart. setLayout works. but still no respect for docks.
I feel like im very close.
Could it be that my `manageDocks` or `docksEventHook e` are not properly
configured?
Thank you again for assistance. Hopefully my struggles will help someone
else who reads this.
-Dave
Post by Bogdan Sinitsyn
Post by Dave Macias
I did not quite understand how to try the `docksStartupHook` after
`setLayout =<<...`
`(setLayout =<< asks (layoutHook . config)) >> docksStartupHook`
--
Bogdan Sinitsyn
--
Bogdan Sinitsyn
Dave Macias
2016-03-03 14:29:38 UTC
Permalink
Yes, it's an action on a hotkey. (mod+shift+space) which resets layout on
workspace. See http://web.mit.edu/nelhage/Public/xmonad.hs
Under haskell xmonad, i had to (mod-shift-space) in order for the docks to
be respected, since it was never respected upon xmonad restart.
Under Git xmonad, docks are still not respected upon xmonad restart but my
previous solution (mod-shift-space) for displaying the dock, no longer
works.

Here is my code:
https://raw.githubusercontent.com/davama/xmonad/master/xmonad.hs
Post by Bogdan Sinitsyn
Are you speaking about action on some hotkey instead of `setLayout =<< asks
(layoutHook . config)` or something else? If first then I dunno what's wrong,
can you give the whole config?
Post by Dave Macias
Thank you Bogdan for the reply. I did as suggested. I tried different
`setLayout $ XMonad.layoutHook conf` -- original code. works fine under
Haskell xmonad 0.12. with GIT xmonad docks are not longer respected.
`setLayout $ XMonad.layoutHook conf >> docksStartupHook` -- failed on
xmonad restart
`(setLayout $ XMonad.layoutHook conf) >> docksStartupHook` -- passes
xmonad
Post by Dave Macias
restart but setLayout to default does not work, neither respect for docks
`(setLayout =<< asks (XMonad.layoutHook . config)) >> docksStartupHook`
--
Post by Dave Macias
passes restart. setLayout works. but still no respect for docks.
I feel like im very close.
Could it be that my `manageDocks` or `docksEventHook e` are not properly
configured?
Thank you again for assistance. Hopefully my struggles will help someone
else who reads this.
-Dave
On Wed, Mar 2, 2016 at 2:48 PM, Bogdan Sinitsyn <
Post by Bogdan Sinitsyn
Post by Dave Macias
I did not quite understand how to try the `docksStartupHook` after
`setLayout =<<...`
`(setLayout =<< asks (layoutHook . config)) >> docksStartupHook`
--
Bogdan Sinitsyn
--
Bogdan Sinitsyn
Bogdan Sinitsyn
2016-03-04 11:08:41 UTC
Permalink
Add `docksStartupHook` to both your action on mod-shift-space and your startup
hook(because you restore initial layout state before restart).
Post by Dave Macias
Yes, it's an action on a hotkey. (mod+shift+space) which resets layout on
workspace. See http://web.mit.edu/nelhage/Public/xmonad.hs
Under haskell xmonad, i had to (mod-shift-space) in order for the docks to
be respected, since it was never respected upon xmonad restart.
Under Git xmonad, docks are still not respected upon xmonad restart but my
previous solution (mod-shift-space) for displaying the dock, no longer
works.
https://raw.githubusercontent.com/davama/xmonad/master/xmonad.hs
Post by Bogdan Sinitsyn
Are you speaking about action on some hotkey instead of `setLayout =<< asks
(layoutHook . config)` or something else? If first then I dunno what's wrong,
can you give the whole config?
Post by Dave Macias
Thank you Bogdan for the reply. I did as suggested. I tried different
`setLayout $ XMonad.layoutHook conf` -- original code. works fine under
Haskell xmonad 0.12. with GIT xmonad docks are not longer respected.
`setLayout $ XMonad.layoutHook conf >> docksStartupHook` -- failed on
xmonad restart
`(setLayout $ XMonad.layoutHook conf) >> docksStartupHook` -- passes
xmonad
Post by Dave Macias
restart but setLayout to default does not work, neither respect for docks
`(setLayout =<< asks (XMonad.layoutHook . config)) >> docksStartupHook`
--
Post by Dave Macias
passes restart. setLayout works. but still no respect for docks.
I feel like im very close.
Could it be that my `manageDocks` or `docksEventHook e` are not properly
configured?
Thank you again for assistance. Hopefully my struggles will help someone
else who reads this.
-Dave
On Wed, Mar 2, 2016 at 2:48 PM, Bogdan Sinitsyn <
Post by Bogdan Sinitsyn
Post by Dave Macias
I did not quite understand how to try the `docksStartupHook` after
`setLayout =<<...`
`(setLayout =<< asks (layoutHook . config)) >> docksStartupHook`
--
Bogdan Sinitsyn
--
Bogdan Sinitsyn
--
Bogdan Sinitsyn
Dave Macias
2016-03-04 14:32:46 UTC
Permalink
I tried adding `dockStartupHook` to `myStartupHook` but no change. so i
moved it to `main` with still no change. So then i tried both location but
nothing different, avoidStruts not working.

how it currently looks in my xmonad.hs file:
[code]
(....... (setLayout =<< asks (XMonad.layoutHook . config)) >>
docksStartupHook)
.......
myStartupHook = do
docksStartupHook
......
.....
main = do
....
, startupHook = composeAll [
myStartupHook
, docksStartupHook
.....
[/code]

Just to reiterate, xmonad 0.12 from GIT allows me to reset the layout but
avoidstruts does not work.
Same xmonad.hs code but w/o docksStartupHook under xmonad 0.12 from
haskell, still allows me to reset the layout but also respects docs
(avoidstruts) if and only if I reset the layout (mod-shift-space) on all
"visible" workspaces after an xmonad start/restart. "Non-visible"
workspaces seem to work fine, avoidstruts works when spawning a window
client; as does reset layout.

My understanding is that GIT is now the "darcs" version of xmonad (aka
development version). That being the case, I can live for now under haskell
xmonad with the annoyance of (mod-shift-space) upon xmonad start/restart.
It's no biggy. I'll deal with it once GIT gets pushed to haskell (unless we
abandoning haskell).

Hope all this makes sense.

Thanks again for assistance,
-Dave
Post by Bogdan Sinitsyn
Add `docksStartupHook` to both your action on mod-shift-space and your startup
hook(because you restore initial layout state before restart).
Post by Dave Macias
Yes, it's an action on a hotkey. (mod+shift+space) which resets layout on
workspace. See http://web.mit.edu/nelhage/Public/xmonad.hs
Under haskell xmonad, i had to (mod-shift-space) in order for the docks
to
Post by Dave Macias
be respected, since it was never respected upon xmonad restart.
Under Git xmonad, docks are still not respected upon xmonad restart but
my
Post by Dave Macias
previous solution (mod-shift-space) for displaying the dock, no longer
works.
https://raw.githubusercontent.com/davama/xmonad/master/xmonad.hs
On Thu, Mar 3, 2016 at 8:58 AM, Bogdan Sinitsyn <
Post by Bogdan Sinitsyn
Are you speaking about action on some hotkey instead of `setLayout =<< asks
(layoutHook . config)` or something else? If first then I dunno what's wrong,
can you give the whole config?
Post by Dave Macias
Thank you Bogdan for the reply. I did as suggested. I tried
different
Post by Dave Macias
Post by Bogdan Sinitsyn
Post by Dave Macias
`setLayout $ XMonad.layoutHook conf` -- original code. works fine
under
Post by Dave Macias
Post by Bogdan Sinitsyn
Post by Dave Macias
Haskell xmonad 0.12. with GIT xmonad docks are not longer respected.
`setLayout $ XMonad.layoutHook conf >> docksStartupHook` -- failed on
xmonad restart
`(setLayout $ XMonad.layoutHook conf) >> docksStartupHook` -- passes
xmonad
Post by Dave Macias
restart but setLayout to default does not work, neither respect for docks
`(setLayout =<< asks (XMonad.layoutHook . config)) >>
docksStartupHook`
Post by Dave Macias
Post by Bogdan Sinitsyn
--
Post by Dave Macias
passes restart. setLayout works. but still no respect for docks.
I feel like im very close.
Could it be that my `manageDocks` or `docksEventHook e` are not
properly
Post by Dave Macias
Post by Bogdan Sinitsyn
Post by Dave Macias
configured?
Thank you again for assistance. Hopefully my struggles will help
someone
Post by Dave Macias
Post by Bogdan Sinitsyn
Post by Dave Macias
else who reads this.
-Dave
On Wed, Mar 2, 2016 at 2:48 PM, Bogdan Sinitsyn <
Post by Bogdan Sinitsyn
Post by Dave Macias
I did not quite understand how to try the `docksStartupHook`
after
Post by Dave Macias
Post by Bogdan Sinitsyn
Post by Dave Macias
Post by Bogdan Sinitsyn
Post by Dave Macias
`setLayout =<<...`
`(setLayout =<< asks (layoutHook . config)) >> docksStartupHook`
--
Bogdan Sinitsyn
--
Bogdan Sinitsyn
--
Bogdan Sinitsyn
Brandon Allbery
2016-03-04 14:34:12 UTC
Permalink
Post by Dave Macias
Just to reiterate, xmonad 0.12 from GIT allows me to reset the layout but
avoidstruts does not work.
Same xmonad.hs code but w/o docksStartupHook under xmonad 0.12 from
haskell, still allows me to reset the layout but also respects docs
(avoidstruts) if and only if I reset the layout (mod-shift-space) on all
"visible" workspaces after an xmonad start/restart. "Non-visible"
workspaces seem to work fine, avoidstruts works when spawning a window
client; as does reset layout.
You're going to have to supply more information if you want anyone to debug
this, because other people don't seem to be seeing it.
--
brandon s allbery kf8nh sine nomine associates
***@gmail.com ***@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
Bogdan Sinitsyn
2016-03-04 16:59:21 UTC
Permalink
It seems to be like X.L.PerWorkspace bug. It does not handle messages before
it is run first time. But I still dunno how to fix it. Any ideas?
Post by Dave Macias
I tried adding `dockStartupHook` to `myStartupHook` but no change. so i
moved it to `main` with still no change. So then i tried both location but
nothing different, avoidStruts not working.
[code]
(....... (setLayout =<< asks (XMonad.layoutHook . config)) >>
docksStartupHook)
.......
myStartupHook = do
docksStartupHook
......
.....
main = do
....
, startupHook = composeAll [
myStartupHook
, docksStartupHook
.....
[/code]
Just to reiterate, xmonad 0.12 from GIT allows me to reset the layout but
avoidstruts does not work.
Same xmonad.hs code but w/o docksStartupHook under xmonad 0.12 from
haskell, still allows me to reset the layout but also respects docs
(avoidstruts) if and only if I reset the layout (mod-shift-space) on all
"visible" workspaces after an xmonad start/restart. "Non-visible"
workspaces seem to work fine, avoidstruts works when spawning a window
client; as does reset layout.
My understanding is that GIT is now the "darcs" version of xmonad (aka
development version). That being the case, I can live for now under haskell
xmonad with the annoyance of (mod-shift-space) upon xmonad start/restart.
It's no biggy. I'll deal with it once GIT gets pushed to haskell (unless we
abandoning haskell).
Hope all this makes sense.
Thanks again for assistance,
-Dave
Post by Bogdan Sinitsyn
Add `docksStartupHook` to both your action on mod-shift-space and your startup
hook(because you restore initial layout state before restart).
Post by Dave Macias
Yes, it's an action on a hotkey. (mod+shift+space) which resets layout on
workspace. See http://web.mit.edu/nelhage/Public/xmonad.hs
Under haskell xmonad, i had to (mod-shift-space) in order for the docks
to
Post by Dave Macias
be respected, since it was never respected upon xmonad restart.
Under Git xmonad, docks are still not respected upon xmonad restart but
my
Post by Dave Macias
previous solution (mod-shift-space) for displaying the dock, no longer
works.
https://raw.githubusercontent.com/davama/xmonad/master/xmonad.hs
On Thu, Mar 3, 2016 at 8:58 AM, Bogdan Sinitsyn <
Post by Bogdan Sinitsyn
Are you speaking about action on some hotkey instead of `setLayout =<< asks
(layoutHook . config)` or something else? If first then I dunno what's wrong,
can you give the whole config?
Post by Dave Macias
Thank you Bogdan for the reply. I did as suggested. I tried
different
Post by Dave Macias
Post by Bogdan Sinitsyn
Post by Dave Macias
`setLayout $ XMonad.layoutHook conf` -- original code. works fine
under
Post by Dave Macias
Post by Bogdan Sinitsyn
Post by Dave Macias
Haskell xmonad 0.12. with GIT xmonad docks are not longer respected.
`setLayout $ XMonad.layoutHook conf >> docksStartupHook` -- failed on
xmonad restart
`(setLayout $ XMonad.layoutHook conf) >> docksStartupHook` -- passes
xmonad
Post by Dave Macias
restart but setLayout to default does not work, neither respect for docks
`(setLayout =<< asks (XMonad.layoutHook . config)) >>
docksStartupHook`
Post by Dave Macias
Post by Bogdan Sinitsyn
--
Post by Dave Macias
passes restart. setLayout works. but still no respect for docks.
I feel like im very close.
Could it be that my `manageDocks` or `docksEventHook e` are not
properly
Post by Dave Macias
Post by Bogdan Sinitsyn
Post by Dave Macias
configured?
Thank you again for assistance. Hopefully my struggles will help
someone
Post by Dave Macias
Post by Bogdan Sinitsyn
Post by Dave Macias
else who reads this.
-Dave
On Wed, Mar 2, 2016 at 2:48 PM, Bogdan Sinitsyn <
Post by Bogdan Sinitsyn
Post by Dave Macias
I did not quite understand how to try the `docksStartupHook`
after
Post by Dave Macias
Post by Bogdan Sinitsyn
Post by Dave Macias
Post by Bogdan Sinitsyn
Post by Dave Macias
`setLayout =<<...`
`(setLayout =<< asks (layoutHook . config)) >> docksStartupHook`
--
Bogdan Sinitsyn
--
Bogdan Sinitsyn
--
Bogdan Sinitsyn
--
Bogdan Sinitsyn
Dave Macias
2016-03-05 19:23:42 UTC
Permalink
Thank you for the pointer. Ill test without it and report soon.

As far as clearer explanation, this is the order of operations as they happen:
1. Login into computer or restart xmonad (mod-q)
2. Xmonad starts but docks is not respected on all visible workspaces
3. Use my current solution (mod+shift+space)
4. Docks begin to be respected.
5. Move on with life

Hope this is better.
Thank you for the continual support!
Really enjoy xmonad

Dave



Sent from my iPhone
Post by Bogdan Sinitsyn
It seems to be like X.L.PerWorkspace bug. It does not handle messages before
it is run first time. But I still dunno how to fix it. Any ideas?
Post by Dave Macias
I tried adding `dockStartupHook` to `myStartupHook` but no change. so i
moved it to `main` with still no change. So then i tried both location but
nothing different, avoidStruts not working.
[code]
(....... (setLayout =<< asks (XMonad.layoutHook . config)) >>
docksStartupHook)
.......
myStartupHook = do
docksStartupHook
......
.....
main = do
....
, startupHook = composeAll [
myStartupHook
, docksStartupHook
.....
[/code]
Just to reiterate, xmonad 0.12 from GIT allows me to reset the layout but
avoidstruts does not work.
Same xmonad.hs code but w/o docksStartupHook under xmonad 0.12 from
haskell, still allows me to reset the layout but also respects docs
(avoidstruts) if and only if I reset the layout (mod-shift-space) on all
"visible" workspaces after an xmonad start/restart. "Non-visible"
workspaces seem to work fine, avoidstruts works when spawning a window
client; as does reset layout.
My understanding is that GIT is now the "darcs" version of xmonad (aka
development version). That being the case, I can live for now under haskell
xmonad with the annoyance of (mod-shift-space) upon xmonad start/restart.
It's no biggy. I'll deal with it once GIT gets pushed to haskell (unless we
abandoning haskell).
Hope all this makes sense.
Thanks again for assistance,
-Dave
Post by Bogdan Sinitsyn
Add `docksStartupHook` to both your action on mod-shift-space and your startup
hook(because you restore initial layout state before restart).
Post by Dave Macias
Yes, it's an action on a hotkey. (mod+shift+space) which resets layout on
workspace. See http://web.mit.edu/nelhage/Public/xmonad.hs
Under haskell xmonad, i had to (mod-shift-space) in order for the docks
to
Post by Dave Macias
be respected, since it was never respected upon xmonad restart.
Under Git xmonad, docks are still not respected upon xmonad restart but
my
Post by Dave Macias
previous solution (mod-shift-space) for displaying the dock, no longer
works.
https://raw.githubusercontent.com/davama/xmonad/master/xmonad.hs
On Thu, Mar 3, 2016 at 8:58 AM, Bogdan Sinitsyn <
Post by Bogdan Sinitsyn
Are you speaking about action on some hotkey instead of `setLayout =<< asks
(layoutHook . config)` or something else? If first then I dunno what's wrong,
can you give the whole config?
Post by Dave Macias
Thank you Bogdan for the reply. I did as suggested. I tried
different
Post by Dave Macias
Post by Bogdan Sinitsyn
Post by Dave Macias
`setLayout $ XMonad.layoutHook conf` -- original code. works fine
under
Post by Dave Macias
Post by Bogdan Sinitsyn
Post by Dave Macias
Haskell xmonad 0.12. with GIT xmonad docks are not longer respected.
`setLayout $ XMonad.layoutHook conf >> docksStartupHook` -- failed on
xmonad restart
`(setLayout $ XMonad.layoutHook conf) >> docksStartupHook` -- passes
xmonad
Post by Dave Macias
restart but setLayout to default does not work, neither respect for docks
`(setLayout =<< asks (XMonad.layoutHook . config)) >>
docksStartupHook`
Post by Dave Macias
Post by Bogdan Sinitsyn
--
Post by Dave Macias
passes restart. setLayout works. but still no respect for docks.
I feel like im very close.
Could it be that my `manageDocks` or `docksEventHook e` are not
properly
Post by Dave Macias
Post by Bogdan Sinitsyn
Post by Dave Macias
configured?
Thank you again for assistance. Hopefully my struggles will help
someone
Post by Dave Macias
Post by Bogdan Sinitsyn
Post by Dave Macias
else who reads this.
-Dave
On Wed, Mar 2, 2016 at 2:48 PM, Bogdan Sinitsyn <
Post by Bogdan Sinitsyn
Post by Dave Macias
I did not quite understand how to try the `docksStartupHook`
after
Post by Dave Macias
Post by Bogdan Sinitsyn
Post by Dave Macias
Post by Bogdan Sinitsyn
Post by Dave Macias
`setLayout =<<...`
`(setLayout =<< asks (layoutHook . config)) >> docksStartupHook`
--
Bogdan Sinitsyn
--
Bogdan Sinitsyn
--
Bogdan Sinitsyn
--
Bogdan Sinitsyn
Dave Macias
2016-03-09 13:30:51 UTC
Permalink
Bogdan
I tested your theory about X.L.PerWorkspace bug. I completely commented
that module out and used one layout for all my WS. Here is the lines of
code i changed:
https://gist.githubusercontent.com/davama/c380cb816a0b578f94ae/raw/da796fef72bd382bdea3b9f117ecb42728cf4052/xmonad.hs-without-perworkpace-module

The above change was tested with haskel xmonad 0.12 and with GIT xmonad.
Interestingly with GIT xmonad, my avoidstruts breaks entirely for all WS.

Here is a screenshot of how the window clients look on my two visible
workspaces upon login (using haskell xmonad):
Loading Image...

This screen shot is taken after i do mod-shift-space per each visible WS:
Loading Image...

Please let me know if i can test something else.

Thanks
Post by Dave Macias
Thank you for the pointer. Ill test without it and report soon.
1. Login into computer or restart xmonad (mod-q)
2. Xmonad starts but docks is not respected on all visible workspaces
3. Use my current solution (mod+shift+space)
4. Docks begin to be respected.
5. Move on with life
Hope this is better.
Thank you for the continual support!
Really enjoy xmonad
Dave
Sent from my iPhone
Post by Bogdan Sinitsyn
It seems to be like X.L.PerWorkspace bug. It does not handle messages
before
Post by Bogdan Sinitsyn
it is run first time. But I still dunno how to fix it. Any ideas?
Post by Dave Macias
I tried adding `dockStartupHook` to `myStartupHook` but no change. so i
moved it to `main` with still no change. So then i tried both location
but
Post by Bogdan Sinitsyn
Post by Dave Macias
nothing different, avoidStruts not working.
[code]
(....... (setLayout =<< asks (XMonad.layoutHook . config)) >>
docksStartupHook)
.......
myStartupHook = do
docksStartupHook
......
.....
main = do
....
, startupHook = composeAll [
myStartupHook
, docksStartupHook
.....
[/code]
Just to reiterate, xmonad 0.12 from GIT allows me to reset the layout
but
Post by Bogdan Sinitsyn
Post by Dave Macias
avoidstruts does not work.
Same xmonad.hs code but w/o docksStartupHook under xmonad 0.12 from
haskell, still allows me to reset the layout but also respects docs
(avoidstruts) if and only if I reset the layout (mod-shift-space) on all
"visible" workspaces after an xmonad start/restart. "Non-visible"
workspaces seem to work fine, avoidstruts works when spawning a window
client; as does reset layout.
My understanding is that GIT is now the "darcs" version of xmonad (aka
development version). That being the case, I can live for now under
haskell
Post by Bogdan Sinitsyn
Post by Dave Macias
xmonad with the annoyance of (mod-shift-space) upon xmonad
start/restart.
Post by Bogdan Sinitsyn
Post by Dave Macias
It's no biggy. I'll deal with it once GIT gets pushed to haskell
(unless we
Post by Bogdan Sinitsyn
Post by Dave Macias
abandoning haskell).
Hope all this makes sense.
Thanks again for assistance,
-Dave
On Fri, Mar 4, 2016 at 6:08 AM, Bogdan Sinitsyn <
Post by Bogdan Sinitsyn
Add `docksStartupHook` to both your action on mod-shift-space and your startup
hook(because you restore initial layout state before restart).
Post by Dave Macias
Yes, it's an action on a hotkey. (mod+shift+space) which resets layout on
workspace. See http://web.mit.edu/nelhage/Public/xmonad.hs
Under haskell xmonad, i had to (mod-shift-space) in order for the
docks
Post by Bogdan Sinitsyn
Post by Dave Macias
Post by Bogdan Sinitsyn
to
Post by Dave Macias
be respected, since it was never respected upon xmonad restart.
Under Git xmonad, docks are still not respected upon xmonad restart
but
Post by Bogdan Sinitsyn
Post by Dave Macias
Post by Bogdan Sinitsyn
my
Post by Dave Macias
previous solution (mod-shift-space) for displaying the dock, no longer
works.
https://raw.githubusercontent.com/davama/xmonad/master/xmonad.hs
On Thu, Mar 3, 2016 at 8:58 AM, Bogdan Sinitsyn <
Post by Bogdan Sinitsyn
Are you speaking about action on some hotkey instead of `setLayout
=<<
Post by Bogdan Sinitsyn
Post by Dave Macias
Post by Bogdan Sinitsyn
Post by Dave Macias
Post by Bogdan Sinitsyn
asks
(layoutHook . config)` or something else? If first then I dunno
what's
Post by Bogdan Sinitsyn
Post by Dave Macias
Post by Bogdan Sinitsyn
Post by Dave Macias
Post by Bogdan Sinitsyn
wrong,
can you give the whole config?
Post by Dave Macias
Thank you Bogdan for the reply. I did as suggested. I tried
different
Post by Dave Macias
Post by Bogdan Sinitsyn
Post by Dave Macias
`setLayout $ XMonad.layoutHook conf` -- original code. works fine
under
Post by Dave Macias
Post by Bogdan Sinitsyn
Post by Dave Macias
Haskell xmonad 0.12. with GIT xmonad docks are not longer respected.
`setLayout $ XMonad.layoutHook conf >> docksStartupHook` -- failed on
xmonad restart
`(setLayout $ XMonad.layoutHook conf) >> docksStartupHook` -- passes
xmonad
Post by Dave Macias
restart but setLayout to default does not work, neither respect for docks
`(setLayout =<< asks (XMonad.layoutHook . config)) >>
docksStartupHook`
Post by Dave Macias
Post by Bogdan Sinitsyn
--
Post by Dave Macias
passes restart. setLayout works. but still no respect for docks.
I feel like im very close.
Could it be that my `manageDocks` or `docksEventHook e` are not
properly
Post by Dave Macias
Post by Bogdan Sinitsyn
Post by Dave Macias
configured?
Thank you again for assistance. Hopefully my struggles will help
someone
Post by Dave Macias
Post by Bogdan Sinitsyn
Post by Dave Macias
else who reads this.
-Dave
On Wed, Mar 2, 2016 at 2:48 PM, Bogdan Sinitsyn <
Post by Bogdan Sinitsyn
Post by Dave Macias
I did not quite understand how to try the `docksStartupHook`
after
Post by Dave Macias
Post by Bogdan Sinitsyn
Post by Dave Macias
Post by Bogdan Sinitsyn
Post by Dave Macias
`setLayout =<<...`
`(setLayout =<< asks (layoutHook . config)) >> docksStartupHook`
--
Bogdan Sinitsyn
--
Bogdan Sinitsyn
--
Bogdan Sinitsyn
--
Bogdan Sinitsyn
Bogdan Sinitsyn
2016-03-09 13:43:07 UTC
Permalink
Thanks for testing and reminding. Now I'm a bit more sure that it's
X.L.PerWorkspace bug. But I don't know how to fix existing code except some
ugly workarounds. I'll think about it when I have more time.
Post by Bogdan Sinitsyn
Bogdan
I tested your theory about X.L.PerWorkspace bug. I completely commented
that module out and used one layout for all my WS. Here is the lines of
https://gist.githubusercontent.com/davama/c380cb816a0b578f94ae/raw/da796fef7
2bd382bdea3b9f117ecb42728cf4052/xmonad.hs-without-perworkpace-module
The above change was tested with haskel xmonad 0.12 and with GIT xmonad.
Interestingly with GIT xmonad, my avoidstruts breaks entirely for all WS.
Here is a screenshot of how the window clients look on my two visible
http://i.imgur.com/g8HW35g.png
http://i.imgur.com/wBOO4qT.png
Please let me know if i can test something else.
Thanks
Post by Dave Macias
Thank you for the pointer. Ill test without it and report soon.
1. Login into computer or restart xmonad (mod-q)
2. Xmonad starts but docks is not respected on all visible workspaces
3. Use my current solution (mod+shift+space)
4. Docks begin to be respected.
5. Move on with life
Hope this is better.
Thank you for the continual support!
Really enjoy xmonad
Dave
Sent from my iPhone
Post by Bogdan Sinitsyn
It seems to be like X.L.PerWorkspace bug. It does not handle messages
before
Post by Bogdan Sinitsyn
it is run first time. But I still dunno how to fix it. Any ideas?
Post by Dave Macias
I tried adding `dockStartupHook` to `myStartupHook` but no change. so i
moved it to `main` with still no change. So then i tried both location
but
Post by Bogdan Sinitsyn
Post by Dave Macias
nothing different, avoidStruts not working.
[code]
(....... (setLayout =<< asks (XMonad.layoutHook . config)) >>
docksStartupHook)
.......
myStartupHook = do
docksStartupHook
......
.....
main = do
....
, startupHook = composeAll [
myStartupHook
, docksStartupHook
.....
[/code]
Just to reiterate, xmonad 0.12 from GIT allows me to reset the layout
but
Post by Bogdan Sinitsyn
Post by Dave Macias
avoidstruts does not work.
Same xmonad.hs code but w/o docksStartupHook under xmonad 0.12 from
haskell, still allows me to reset the layout but also respects docs
(avoidstruts) if and only if I reset the layout (mod-shift-space) on all
"visible" workspaces after an xmonad start/restart. "Non-visible"
workspaces seem to work fine, avoidstruts works when spawning a window
client; as does reset layout.
My understanding is that GIT is now the "darcs" version of xmonad (aka
development version). That being the case, I can live for now under
haskell
Post by Bogdan Sinitsyn
Post by Dave Macias
xmonad with the annoyance of (mod-shift-space) upon xmonad
start/restart.
Post by Bogdan Sinitsyn
Post by Dave Macias
It's no biggy. I'll deal with it once GIT gets pushed to haskell
(unless we
Post by Bogdan Sinitsyn
Post by Dave Macias
abandoning haskell).
Hope all this makes sense.
Thanks again for assistance,
-Dave
On Fri, Mar 4, 2016 at 6:08 AM, Bogdan Sinitsyn <
Post by Bogdan Sinitsyn
Add `docksStartupHook` to both your action on mod-shift-space and your startup
hook(because you restore initial layout state before restart).
Post by Dave Macias
Yes, it's an action on a hotkey. (mod+shift+space) which resets
layout
on
workspace. See http://web.mit.edu/nelhage/Public/xmonad.hs
Under haskell xmonad, i had to (mod-shift-space) in order for the
docks
Post by Bogdan Sinitsyn
Post by Dave Macias
Post by Bogdan Sinitsyn
to
Post by Dave Macias
be respected, since it was never respected upon xmonad restart.
Under Git xmonad, docks are still not respected upon xmonad restart
but
Post by Bogdan Sinitsyn
Post by Dave Macias
Post by Bogdan Sinitsyn
my
Post by Dave Macias
previous solution (mod-shift-space) for displaying the dock, no longer
works.
https://raw.githubusercontent.com/davama/xmonad/master/xmonad.hs
On Thu, Mar 3, 2016 at 8:58 AM, Bogdan Sinitsyn <
Post by Bogdan Sinitsyn
Are you speaking about action on some hotkey instead of `setLayout
=<<
Post by Bogdan Sinitsyn
Post by Dave Macias
Post by Bogdan Sinitsyn
Post by Dave Macias
Post by Bogdan Sinitsyn
asks
(layoutHook . config)` or something else? If first then I dunno
what's
Post by Bogdan Sinitsyn
Post by Dave Macias
Post by Bogdan Sinitsyn
Post by Dave Macias
Post by Bogdan Sinitsyn
wrong,
can you give the whole config?
Post by Dave Macias
Thank you Bogdan for the reply. I did as suggested. I tried
different
Post by Dave Macias
Post by Bogdan Sinitsyn
Post by Dave Macias
`setLayout $ XMonad.layoutHook conf` -- original code. works fine
under
Post by Dave Macias
Post by Bogdan Sinitsyn
Post by Dave Macias
Haskell xmonad 0.12. with GIT xmonad docks are not longer respected.
`setLayout $ XMonad.layoutHook conf >> docksStartupHook` -- failed on
xmonad restart
`(setLayout $ XMonad.layoutHook conf) >> docksStartupHook` -- passes
xmonad
Post by Dave Macias
restart but setLayout to default does not work, neither respect for docks
`(setLayout =<< asks (XMonad.layoutHook . config)) >>
docksStartupHook`
Post by Dave Macias
Post by Bogdan Sinitsyn
--
Post by Dave Macias
passes restart. setLayout works. but still no respect for docks.
I feel like im very close.
Could it be that my `manageDocks` or `docksEventHook e` are not
properly
Post by Dave Macias
Post by Bogdan Sinitsyn
Post by Dave Macias
configured?
Thank you again for assistance. Hopefully my struggles will help
someone
Post by Dave Macias
Post by Bogdan Sinitsyn
Post by Dave Macias
else who reads this.
-Dave
On Wed, Mar 2, 2016 at 2:48 PM, Bogdan Sinitsyn <
Post by Bogdan Sinitsyn
Post by Dave Macias
I did not quite understand how to try the `docksStartupHook`
after
Post by Dave Macias
Post by Bogdan Sinitsyn
Post by Dave Macias
Post by Bogdan Sinitsyn
Post by Dave Macias
`setLayout =<<...`
`(setLayout =<< asks (layoutHook . config)) >> docksStartupHook`
--
Bogdan Sinitsyn
--
Bogdan Sinitsyn
--
Bogdan Sinitsyn
--
Bogdan Sinitsyn
--
Bogdan Sinitsyn
Tuncer Ayaz
2016-03-02 15:17:52 UTC
Permalink
Post by Jean-Philippe Braun
Same issue here. After I reset the layout it's working fine. I'm
using xmobar.
And you're both running Arch Linux, correct?
Post by Jean-Philippe Braun
Post by Dave Macias
I have a similar issue but when i startup xmonad for the first
time. All i do is reset the layout on all visible workspaces
(mod-shift-space). Havent figured how to fix it. Using dzen as my
status bars.
Post by Tuncer Ayaz
Does anybody else run XMonad on Arch Linux AMD64 (non-testing)?
Since about a week (and a half) ago something seems to have
caused avoidStruts to be ignored, because xmobar is covered by
any window I open. I've tried unsuccessfully with my full config
and the recently suggested new sample config here on the
list[1]. Any idea what's happening? It's possibly an operator
issue, but I don't know how to debug it.
Igor Sosa Mayor
2016-03-02 15:23:46 UTC
Permalink
Post by Tuncer Ayaz
Post by Jean-Philippe Braun
Same issue here. After I reset the layout it's working fine. I'm
using xmobar.
And you're both running Arch Linux, correct?
I'm using archlinux and I don't have this problem (dzen2)...
--
:: Igor Sosa Mayor :: ***@gmail.com ::
:: GnuPG: 0x1C1E2890 :: http://www.gnupg.org/ ::
:: jabberid: rogorido :: ::
Dave Macias
2016-03-02 15:30:47 UTC
Permalink
Running arch. xmonad 0.12 and contrib from haskell. using dzen. Will try
xmonad & contrib from git repo
Thanks
Post by Igor Sosa Mayor
Post by Tuncer Ayaz
Post by Jean-Philippe Braun
Same issue here. After I reset the layout it's working fine. I'm
using xmobar.
And you're both running Arch Linux, correct?
I'm using archlinux and I don't have this problem (dzen2)...
--
_______________________________________________
xmonad mailing list
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
Tuncer Ayaz
2016-03-02 15:54:07 UTC
Permalink
Post by Igor Sosa Mayor
I'm using archlinux and I don't have this problem (dzen2)...
Rebuilt xmonad and xmonad-contrib, and I still have this problem
with xmobar latest from hackage.

I'll try dzen2 or maybe xmobar git master first.
Tuncer Ayaz
2016-03-02 15:17:24 UTC
Permalink
Post by Dave Macias
I have a similar issue but when i startup xmonad for the first time.
All i do is reset the layout on all visible workspaces
(mod-shift-space). Havent figured how to fix it. Using dzen as my
status bars.
Does dzen exhibit the same issue?
Post by Dave Macias
Post by Tuncer Ayaz
Does anybody else run XMonad on Arch Linux AMD64 (non-testing)?
Since about a week (and a half) ago something seems to have caused
avoidStruts to be ignored, because xmobar is covered by any window
I open. I've tried unsuccessfully with my full config and the
recently suggested new sample config here on the list[1]. Any idea
what's happening? It's possibly an operator issue, but I don't
know how to debug it.
Loading...