[xmonad] How to use PhysicalScreens?

Robert Sawko robertsawko at gmail.com
Wed Aug 29 07:04:57 UTC 2018


Hi,

I just got myself a second screen which I daisy-chained with the first one, but
I am having issues with getting screens to be identified properly. I use xrandr
to configure display. The screens are identified as:

$ xrandr

DP-1-1-8 connected 2560x1440+0+0 (normal left inverted right x axis y axis) 597mm x 336mm
   2560x1440     59.95*+
   ...
DP-1-1-1-8 connected 2560x1440+2560+0 (normal left inverted right x axis y axis) 597mm x 336mm
   2560x1440     59.95*+
   ...
DP-1-1-1-1 disconnected (normal left inverted right x axis y axis)

And I set the screen with:

xrandr \
    --output DP-1-1-1-8 --mode 2560x1440 --right-of DP-1-1-8 \
    --output DP-1-1-8 --mode 2560x1440 \
    --output eDP-1-1 --off

I am reading in here that using Actions.Physical screens involves importing and
changing the mapping(?).

https://hackage.haskell.org/package/xmonad-contrib-0.14/docs/XMonad-Actions-PhysicalScreens.html

If I include only the import then nothing changes. The mappings don't compile
for me. I am attaching the error below. Not sure, if I am doing something wrong
or if the docs are incomplete. What is "W" meant to be?

Best wishes,
Robert


Error detected while loading xmonad configuration file: /home/rsa/.xmonad/xmonad.hs

xmonad.hs:171:49: error:
    Not in scope: ‘W.view’
    No module named ‘W’ is imported.
    |
171 |         , ((modMask, xK_a), onPrevNeighbour def W.view)
    |                                                 ^^^^^^

xmonad.hs:172:49: error:
    Not in scope: ‘W.view’
    No module named ‘W’ is imported.
    |
172 |         , ((modMask, xK_o), onNextNeighbour def W.view)
    |                                                 ^^^^^^

xmonad.hs:173:63: error:
    Not in scope: ‘W.shift’
    No module named ‘W’ is imported.
    |
173 |         , ((modMask .|. shiftMask, xK_a), onPrevNeighbour def W.shift)
    |                                                               ^^^^^^^

xmonad.hs:174:63: error:
    Not in scope: ‘W.shift’
    No module named ‘W’ is imported.
    |
174 |         , ((modMask .|. shiftMask, xK_o), onNextNeighbour def W.shift)
    |                                                               ^^^^^^^

-- 
Blood moon rising!
http://time.com/3479189/blood-moon/


More information about the xmonad mailing list