Discussion:
[xmonad] dual monitor
Lajos Bodnar
2017-02-01 17:36:03 UTC
Permalink
Hi all.
I'm new in the mail list, and sorry for my english ...

I tried to set up my wm for dual monitor with these keyboard settings:
-- mod-[1..9], Switch to workspace N
-- mod-shift-[1..9], Move client to workspace N
--
[((m .|. mod4Mask, k), windows $ f i)
| (i, k) <- zip (XMonad.workspaces conf) [xK_1 .. xK_9]
, (f, m) <- [(W.greedyView, 0), (W.shift, shiftMask)]]
++
--
-- mod-{w,e,r}, Switch to physical/Xinerama screens 1, 2, or 3
-- mod-shift-{w,e,r}, Move client to screen 1, 2, or 3
--
[((m .|. mod4Mask, key), screenWorkspace sc >>= flip whenJust (windows
. f))
| (key, sc) <- zip [xK_w, xK_e] [0..]
, (f, m) <- [(W.view, 0), (W.shift, shiftMask)]]

I exprerienced that when I switch workspace the opened windows moved the
new workspace from the inactive screen. If the inactive screen is empty in
the workspace where I have just moved then a window will fill it. I hope it
is understandable for you.
Any idea ?
What is wrong ? What causes it ?

Regards,
Lajos
Brandon Allbery
2017-02-01 21:16:34 UTC
Permalink
You don't need to add keybindings, they are default. I assume this means
you have been using the bad "example config" that overrides every possible
setting with the defaults from some particular version instead of
inheriting the defaults, and will need to be extremely careful about xmonad
upgrades because your config won't magically rewrite itself to be
compatible. (I think mod-shift-space is the one that will bite you in 0.13.)

I *think* you are talking about
https://wiki.haskell.org/Xmonad/Frequently_asked_questions#Replacing_greedyView_with_view
Post by Lajos Bodnar
Hi all.
I'm new in the mail list, and sorry for my english ...
-- mod-[1..9], Switch to workspace N
-- mod-shift-[1..9], Move client to workspace N
--
[((m .|. mod4Mask, k), windows $ f i)
| (i, k) <- zip (XMonad.workspaces conf) [xK_1 .. xK_9]
, (f, m) <- [(W.greedyView, 0), (W.shift, shiftMask)]]
++
--
-- mod-{w,e,r}, Switch to physical/Xinerama screens 1, 2, or 3
-- mod-shift-{w,e,r}, Move client to screen 1, 2, or 3
--
[((m .|. mod4Mask, key), screenWorkspace sc >>= flip whenJust (windows
. f))
| (key, sc) <- zip [xK_w, xK_e] [0..]
, (f, m) <- [(W.view, 0), (W.shift, shiftMask)]]
I exprerienced that when I switch workspace the opened windows moved the
new workspace from the inactive screen. If the inactive screen is empty in
the workspace where I have just moved then a window will fill it. I hope it
is understandable for you.
Any idea ?
What is wrong ? What causes it ?
Regards,
Lajos
_______________________________________________
xmonad mailing list
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
--
brandon s allbery kf8nh sine nomine associates
***@gmail.com ***@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
Lajos Bodnar
2017-02-01 21:27:20 UTC
Permalink
Thanks for the answers, I will check what Brandon mentioned.
Post by Brandon Allbery
You don't need to add keybindings, they are default. I assume this means
you have been using the bad "example config" that overrides every possible
setting with the defaults from some particular version instead of
inheriting the defaults, and will need to be extremely careful about xmonad
upgrades because your config won't magically rewrite itself to be
compatible. (I think mod-shift-space is the one that will bite you in 0.13.)
I *think* you are talking about https://wiki.haskell.
org/Xmonad/Frequently_asked_questions#Replacing_greedyView_with_view
Post by Lajos Bodnar
Hi all.
I'm new in the mail list, and sorry for my english ...
-- mod-[1..9], Switch to workspace N
-- mod-shift-[1..9], Move client to workspace N
--
[((m .|. mod4Mask, k), windows $ f i)
| (i, k) <- zip (XMonad.workspaces conf) [xK_1 .. xK_9]
, (f, m) <- [(W.greedyView, 0), (W.shift, shiftMask)]]
++
--
-- mod-{w,e,r}, Switch to physical/Xinerama screens 1, 2, or 3
-- mod-shift-{w,e,r}, Move client to screen 1, 2, or 3
--
[((m .|. mod4Mask, key), screenWorkspace sc >>= flip whenJust
(windows . f))
| (key, sc) <- zip [xK_w, xK_e] [0..]
, (f, m) <- [(W.view, 0), (W.shift, shiftMask)]]
I exprerienced that when I switch workspace the opened windows moved the
new workspace from the inactive screen. If the inactive screen is empty in
the workspace where I have just moved then a window will fill it. I hope it
is understandable for you.
Any idea ?
What is wrong ? What causes it ?
Regards,
Lajos
_______________________________________________
xmonad mailing list
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
--
brandon s allbery kf8nh sine nomine associates
unix, openafs, kerberos, infrastructure, xmonad
http://sinenomine.net
Lajos Bodnar
2017-02-02 05:57:44 UTC
Permalink
Hi!
Morning :)
I tried what Brandon mentioned before, but the result is same.
Did you send me a correct link about a correct xmonad.hs ?
Maybe can I make a configuration where the half of the workspaces resides
the screen 1 and the other ones resides screen 2 ?

Regards,
Lajos
Post by Lajos Bodnar
Thanks for the answers, I will check what Brandon mentioned.
Post by Brandon Allbery
You don't need to add keybindings, they are default. I assume this means
you have been using the bad "example config" that overrides every possible
setting with the defaults from some particular version instead of
inheriting the defaults, and will need to be extremely careful about xmonad
upgrades because your config won't magically rewrite itself to be
compatible. (I think mod-shift-space is the one that will bite you in 0.13.)
I *think* you are talking about https://wiki.haskell.org
/Xmonad/Frequently_asked_questions#Replacing_greedyView_with_view
Post by Lajos Bodnar
Hi all.
I'm new in the mail list, and sorry for my english ...
-- mod-[1..9], Switch to workspace N
-- mod-shift-[1..9], Move client to workspace N
--
[((m .|. mod4Mask, k), windows $ f i)
| (i, k) <- zip (XMonad.workspaces conf) [xK_1 .. xK_9]
, (f, m) <- [(W.greedyView, 0), (W.shift, shiftMask)]]
++
--
-- mod-{w,e,r}, Switch to physical/Xinerama screens 1, 2, or 3
-- mod-shift-{w,e,r}, Move client to screen 1, 2, or 3
--
[((m .|. mod4Mask, key), screenWorkspace sc >>= flip whenJust
(windows . f))
| (key, sc) <- zip [xK_w, xK_e] [0..]
, (f, m) <- [(W.view, 0), (W.shift, shiftMask)]]
I exprerienced that when I switch workspace the opened windows moved the
new workspace from the inactive screen. If the inactive screen is empty in
the workspace where I have just moved then a window will fill it. I hope it
is understandable for you.
Any idea ?
What is wrong ? What causes it ?
Regards,
Lajos
_______________________________________________
xmonad mailing list
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
--
brandon s allbery kf8nh sine nomine associates
unix, openafs, kerberos, infrastructure, xmonad
http://sinenomine.net
Daniel Wagner
2017-02-02 06:24:36 UTC
Permalink
Can you show the config you tried after following the greedyView FAQ? That
really should fix the behavior you're describing.

The second feature you describe can *also* be done, see:
http://hackage.haskell.org/package/xmonad-contrib-0.12/docs/XMonad-Layout-IndependentScreens.html

~d
Post by Lajos Bodnar
Hi!
Morning :)
I tried what Brandon mentioned before, but the result is same.
Did you send me a correct link about a correct xmonad.hs ?
Maybe can I make a configuration where the half of the workspaces resides
the screen 1 and the other ones resides screen 2 ?
Regards,
Lajos
Post by Lajos Bodnar
Thanks for the answers, I will check what Brandon mentioned.
Post by Brandon Allbery
You don't need to add keybindings, they are default. I assume this means
you have been using the bad "example config" that overrides every possible
setting with the defaults from some particular version instead of
inheriting the defaults, and will need to be extremely careful about xmonad
upgrades because your config won't magically rewrite itself to be
compatible. (I think mod-shift-space is the one that will bite you in 0.13.)
I *think* you are talking about https://wiki.haskell.org
/Xmonad/Frequently_asked_questions#Replacing_greedyView_with_view
Post by Lajos Bodnar
Hi all.
I'm new in the mail list, and sorry for my english ...
-- mod-[1..9], Switch to workspace N
-- mod-shift-[1..9], Move client to workspace N
--
[((m .|. mod4Mask, k), windows $ f i)
| (i, k) <- zip (XMonad.workspaces conf) [xK_1 .. xK_9]
, (f, m) <- [(W.greedyView, 0), (W.shift, shiftMask)]]
++
--
-- mod-{w,e,r}, Switch to physical/Xinerama screens 1, 2, or 3
-- mod-shift-{w,e,r}, Move client to screen 1, 2, or 3
--
[((m .|. mod4Mask, key), screenWorkspace sc >>= flip whenJust
(windows . f))
| (key, sc) <- zip [xK_w, xK_e] [0..]
, (f, m) <- [(W.view, 0), (W.shift, shiftMask)]]
I exprerienced that when I switch workspace the opened windows moved
the new workspace from the inactive screen. If the inactive screen is empty
in the workspace where I have just moved then a window will fill it. I hope
it is understandable for you.
Any idea ?
What is wrong ? What causes it ?
Regards,
Lajos
_______________________________________________
xmonad mailing list
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
--
brandon s allbery kf8nh sine nomine associates
unix, openafs, kerberos, infrastructure, xmonad
http://sinenomine.net
_______________________________________________
xmonad mailing list
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
Lajos Bodnar
2017-02-02 07:17:42 UTC
Permalink
Hi Daniel.
I'm in my workplace and I will look at it home.

thanks
Lajos
Post by Daniel Wagner
Can you show the config you tried after following the greedyView FAQ? That
really should fix the behavior you're describing.
http://hackage.haskell.org/package/xmonad-contrib-0.12/docs/XMonad-Layout-
IndependentScreens.html
~d
Post by Lajos Bodnar
Hi!
Morning :)
I tried what Brandon mentioned before, but the result is same.
Did you send me a correct link about a correct xmonad.hs ?
Maybe can I make a configuration where the half of the workspaces resides
the screen 1 and the other ones resides screen 2 ?
Regards,
Lajos
Post by Lajos Bodnar
Thanks for the answers, I will check what Brandon mentioned.
Post by Brandon Allbery
You don't need to add keybindings, they are default. I assume this
means you have been using the bad "example config" that overrides every
possible setting with the defaults from some particular version instead of
inheriting the defaults, and will need to be extremely careful about xmonad
upgrades because your config won't magically rewrite itself to be
compatible. (I think mod-shift-space is the one that will bite you in 0.13.)
I *think* you are talking about https://wiki.haskell.org
/Xmonad/Frequently_asked_questions#Replacing_greedyView_with_view
Post by Lajos Bodnar
Hi all.
I'm new in the mail list, and sorry for my english ...
-- mod-[1..9], Switch to workspace N
-- mod-shift-[1..9], Move client to workspace N
--
[((m .|. mod4Mask, k), windows $ f i)
| (i, k) <- zip (XMonad.workspaces conf) [xK_1 .. xK_9]
, (f, m) <- [(W.greedyView, 0), (W.shift, shiftMask)]]
++
--
-- mod-{w,e,r}, Switch to physical/Xinerama screens 1, 2, or 3
-- mod-shift-{w,e,r}, Move client to screen 1, 2, or 3
--
[((m .|. mod4Mask, key), screenWorkspace sc >>= flip whenJust
(windows . f))
| (key, sc) <- zip [xK_w, xK_e] [0..]
, (f, m) <- [(W.view, 0), (W.shift, shiftMask)]]
I exprerienced that when I switch workspace the opened windows moved
the new workspace from the inactive screen. If the inactive screen is empty
in the workspace where I have just moved then a window will fill it. I hope
it is understandable for you.
Any idea ?
What is wrong ? What causes it ?
Regards,
Lajos
_______________________________________________
xmonad mailing list
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
--
brandon s allbery kf8nh sine nomine associates
unix, openafs, kerberos, infrastructure, xmonad
http://sinenomine.net
_______________________________________________
xmonad mailing list
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
_______________________________________________
xmonad mailing list
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
Lajos Bodnar
2017-02-04 15:54:42 UTC
Permalink
Hi!
Daniel, I tried the "IndependentScreens" and it's working like a charm.
Thanks for all to all of you :)
Post by Lajos Bodnar
Hi Daniel.
I'm in my workplace and I will look at it home.
thanks
Lajos
Post by Daniel Wagner
Can you show the config you tried after following the greedyView FAQ?
That really should fix the behavior you're describing.
http://hackage.haskell.org/package/xmonad-contrib-0.12/docs/
XMonad-Layout-IndependentScreens.html
~d
Post by Lajos Bodnar
Hi!
Morning :)
I tried what Brandon mentioned before, but the result is same.
Did you send me a correct link about a correct xmonad.hs ?
Maybe can I make a configuration where the half of the workspaces
resides the screen 1 and the other ones resides screen 2 ?
Regards,
Lajos
Post by Lajos Bodnar
Thanks for the answers, I will check what Brandon mentioned.
Post by Brandon Allbery
You don't need to add keybindings, they are default. I assume this
means you have been using the bad "example config" that overrides every
possible setting with the defaults from some particular version instead of
inheriting the defaults, and will need to be extremely careful about xmonad
upgrades because your config won't magically rewrite itself to be
compatible. (I think mod-shift-space is the one that will bite you in 0.13.)
I *think* you are talking about https://wiki.haskell.org
/Xmonad/Frequently_asked_questions#Replacing_greedyView_with_view
Post by Lajos Bodnar
Hi all.
I'm new in the mail list, and sorry for my english ...
-- mod-[1..9], Switch to workspace N
-- mod-shift-[1..9], Move client to workspace N
--
[((m .|. mod4Mask, k), windows $ f i)
| (i, k) <- zip (XMonad.workspaces conf) [xK_1 .. xK_9]
, (f, m) <- [(W.greedyView, 0), (W.shift, shiftMask)]]
++
--
-- mod-{w,e,r}, Switch to physical/Xinerama screens 1, 2, or 3
-- mod-shift-{w,e,r}, Move client to screen 1, 2, or 3
--
[((m .|. mod4Mask, key), screenWorkspace sc >>= flip whenJust
(windows . f))
| (key, sc) <- zip [xK_w, xK_e] [0..]
, (f, m) <- [(W.view, 0), (W.shift, shiftMask)]]
I exprerienced that when I switch workspace the opened windows moved
the new workspace from the inactive screen. If the inactive screen is empty
in the workspace where I have just moved then a window will fill it. I hope
it is understandable for you.
Any idea ?
What is wrong ? What causes it ?
Regards,
Lajos
_______________________________________________
xmonad mailing list
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
--
brandon s allbery kf8nh sine nomine associates
unix, openafs, kerberos, infrastructure, xmonad
http://sinenomine.net
_______________________________________________
xmonad mailing list
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
_______________________________________________
xmonad mailing list
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
Loading...