void-packages icon indicating copy to clipboard operation
void-packages copied to clipboard

Can't customize XMonad

Open non-Jedi opened this issue 7 years ago • 20 comments

System

  • xuname: Void 4.19.12_1 x86_64 GenuineIntel uptodate rrrmFFFFFF
  • package: xmonad-0.15_1, xmonad-contrib-0.15_1

Expected behavior

When below is in ~/.xmonad/xmonad.hs, xmonad --recompile should give no output and successfully compile (https://hackage.haskell.org/package/xmonad-contrib-0.15/docs/XMonad-Doc-Configuring.html).

   import XMonad

   main = xmonad $ def
       { borderWidth        = 2
       , terminal           = "urxvt"
       , normalBorderColor  = "#cccccc"
       , focusedBorderColor = "#cd8b00" }

Additionally, the xmonad-contrib package should have more files in it than just the license.

Actual behavior

With haskell snippet above in ~/.xmonad/xmonad.hs:

$ xmonad --recompile
XMonad will use ghc to recompile, because "/home/adam/.xmonad/build" does not exist.
Error detected while loading xmonad configuration file: /home/adam/.xmonad/xmonad.hs

xmonad.hs:1:1: error:
    Could not find module ‘XMonad’
    Use -v to see a list of the files searched for.
  |
1 | import XMonad
  | ^^^^^^^^^^^^^

Please check the file for errors.

And the files in xmonad-contrib are:

$ xbps-query -Rf xmonad-contrib
/usr/share/licenses/xmonad-contrib/LICENSE

Any ideas @xaltsc?

Steps to reproduce the behavior

  1. Install xmonad.
  2. Create ~/.xmonad/xmonad.hs with config shown above.
  3. xmonad --recompile

non-Jedi avatar Dec 31 '18 22:12 non-Jedi

As a temporary fix you could install it from source (quick and easy) or use "cabal install xmonad && cabal install xmonad-contrib".

Dosprogs avatar Jan 01 '19 16:01 Dosprogs

This is still a problem. xmonad-contrib builds the files but doesn't install anything expect the license file as non-Jedi reported. xmonad uses the stackage version from the package template, but xmonad-contrib takes that info from it's own stack.yaml file. Don't know if that can be relevant to the issue.

obunden avatar Oct 13 '19 03:10 obunden

Xmonad isn't reading its configuration file from .xmonad/xmonad.hs help.

ghost avatar Oct 15 '20 04:10 ghost

I second this, facing the same issue, would like to switch back to XMonad and not have to deal with cabal for this (which still somehow doesn't actually seem to fix the issue at hand anyway, I tried)...

chilledfrogs avatar Nov 18 '20 01:11 chilledfrogs

For a temporary workaround until xmonad-contrib issue is fixed, I got it all to install via cabal with the following:

xbps-install -y xorg dmenu xmonad cabal-install libX11-devel libXinerama-devel libXext-devel libXrandr-devel libXScrnSaver-devel ncurses-libtinfo-devel pkg-config
cabal update
cabal install --lib xmonad xmonad-contrib X11
cabal install xmonad

jchook avatar Jan 15 '21 01:01 jchook

@xaltsc ?

ericonr avatar Feb 15 '21 14:02 ericonr

I propose that either someone adopts the package or that it (and xmonad-contrib) be removed. I used to think that it worked, but this was my first package I think, I didn't do proper testing and I never managed to get it working.

xaltsc avatar Mar 13 '21 16:03 xaltsc

The issue still remains ... I agree with @xaltsc and the package must be removed because it doesn't work properly ... What are the steps to do so ? Someone just needs to push a merge request with xmonad and xmonad-contrib templates removed ?

motorto avatar Oct 25 '21 07:10 motorto

And adding it to removed-packages, possibly. Is it that useless without the recompilation?

ericonr avatar Oct 25 '21 13:10 ericonr

Well it's like using a window manager without any type of personal configuration, don't know if you use any WM but yeah it kind defeats the point of a window manager if We can't configure.

On Mon, Oct 25 2021 at 06:22:37 -0700, Érico Nogueira Rolim @.***> wrote:

And adding it to removed-packages, possibly. Is it that useless without the recompilation?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/void-linux/void-packages/issues/6414#issuecomment-950924849, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMRTQPKATI234SHKJQBPZ4TUIVKZ3ANCNFSM4GMWYOCQ. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

motorto avatar Oct 25 '21 15:10 motorto

Yeah, I didn't know whether all configuration happened in the form of recompilation rather than a config file.

ericonr avatar Oct 25 '21 19:10 ericonr

@xaltsc should xmobar be added to that list as well ? I don't know if xmobar can be used on other WM ... If not I will added it to the commit

motorto avatar Oct 25 '21 20:10 motorto

The xmonad-contrib template seems to compile the package successfully, but it doesn't install the files.

Ideally it would be a simple fix for someone familiar with xbps-src.

jchook avatar Oct 25 '21 22:10 jchook

@xaltsc should xmobar be added to that list as well ? I don't know if xmobar can be used on other WM ... If not I will added it to the commit

I don't use xmobar anymore, but there's a chance that xmobar may work if the binary is successfully installed since xmobar can be used without a xmobar.hs

xaltsc avatar Oct 26 '21 04:10 xaltsc

The xmonad-contrib template seems to compile the package successfully, but it doesn't install the files.

Ideally it would be a simple fix for someone familiar with xbps-src.

IIRC, it's more complicated than that, xbps and stack/cabal/etc. don't go along very well.

xaltsc avatar Oct 26 '21 04:10 xaltsc

@xaltsc should xmobar be added to that list as well ? I don't know if xmobar can be used on other WM ... If not I will added it to the commit

I don't use xmobar anymore, but there's a chance that xmobar may work if the binary is successfully instance since xmobar can be used without a xmobar.hs.

xmobar is fine and works well.

woffs avatar Oct 26 '21 14:10 woffs

xmonad got removed. Introducing it again with issues resolved, possibly by getting away with recompilation by making it restricted and asking to rebuild with xbps-src is still an option.

Chocimier avatar Nov 08 '21 19:11 Chocimier

The xmonad-contrib template seems to compile the package successfully, but it doesn't install the files.

Ideally it would be a simple fix for someone familiar with xbps-src.

I'd appreciate it if you elaborate a bit further. AFAIK void-src is used for foreign packages, right? I already attempted more than twice, and it's frustrating it won't work even implementing both methods cabal and stack. Although I'd tried on Fedora and it's work great but in Void Linux, I see some missing files.

riseekrthakur avatar Feb 17 '22 14:02 riseekrthakur

@riseekrthakur ./xbps-src is used to build XBPS packages.

I successfully installed xmonad and xmonad-contrib in Void Linux via cabal. See https://github.com/void-linux/void-packages/issues/6414#issuecomment-760591521

jchook avatar Feb 17 '22 22:02 jchook

Installation is not a headache on my end either, the only problem I'm running into is that it won't create a build directory inside the ~/.config/xmonad and so on it complaining about "Could not find the module $NAMED" also a hard time in recompiling xmonad.

riseekrthakur avatar Feb 18 '22 13:02 riseekrthakur