Package windowmanager does not exist11/24/2023 It only displays a single gnome-terminal with no border and gray meshed background. My problem is that after logging in, no window-manager is started. Xmonad -recompile generates instead of xmonad in your startup.I have setup my Ubuntu server so that I can connect and login to XRDP from Windows remote desktop. That too annoying, then you can use the xmonad-ARCH executable that (because the build script could contain arbitrary code, so a simpleĬheck whether the xmonad.hs file changed is not enough). Don’t Recompile on Every Startupīy default, xmonad always recompiles itself when a build script is used It can be difficult to keep track of when you want to replicate yourĬonfiguration on another system. You must use a cabal file and often a cabal.project to specify them Ĭabal install -lib above generally isn’t enough, and when it is Special dependencies for your xmonad.hs, especially with cabal as Some example build scripts for stack and cabal are provided in the #!/bin/sh exec stack ghc - \ -make xmonad.hs \ -i \ -ilib \ -fforce-recomp \ -main-is main \ -v0 \ -o " $1 "ĭon’t forget to mark the file as +x: chmod +x build! Without a build file, with the exception that we are invoking stack (which is ~/.config/xmonad for us) that tells xmonad how it should build itsĪ good starting point (this is essentially what xmonad would do Is quite literally just a shell script called build in your xmonad directory Separate Haskell package, you need to create a so-called build file. M-q by default), perhaps because your xmonad configuration is a whole If you need to customize what happens during xmonad -recompile (bound to FAQ: How can I use xmonad with a display manager? (xdm, kdm, gdm). Meant to just copy that to ~/.xinitrc andĭisplay managers like lightdm have their own Xsession script which invokes etc/X11/xinit/xinitrc runs twm, xclock and 3 xterms users are Newer display managers require an entry in /usr/share/xsessions, which isĪvailable in the xorg-x11-xinit-session package. Instead, which additionally redirects output to ~/.xsession-errors and also lightdm) usually invoke /etc/X11/xinit/Xsession Like in Debian, this canīe overridden by having a completely custom ~/.xinitrc or passing arguments Xmonad there (don’t forget the shebang and chmod). etc/X11/xinit/xinitrc runs ~/.Xclients, so you probably want to put exec To use your custom ~/.xsession, put these lines to Some newer display managers require an entry in /usr/share/xsessions. Or invoke startx/ xinit with an explicit path. If you want a completely manual X session, use ~/.xinitrc You probably want to put exec xmonad there (don’t forget the shebang and chmod).īy using ~/.xsession, the distro takes care of stuff like dbus, ssh-agent, X etc/X11/xinit/xinitrc runs /etc/X11/Xsession which runs ~/.xsession, so This step varies depending on your distribution and X display manager (if This will create a GHC environment in ~/.config/xmonad so that the librariesĪre available for recompilation of the config file, and also install the $ cabal install -package-env = $HOME/.config/xmonad xmonad $ cabal install -package-env = $HOME/.config/xmonad -lib base xmonad xmonad-contrib GHCup is widely available and is considered less error prone than other installation options. Probably one of the best ways to get cabal-install is to use GHCup, which is the main Haskell installer according to language’s official website and community survey. Build using cabal-install Install cabal-install If you’re getting build failures while building the X11 package it mayīe that you don’t have the required C libraries installed. Installed via your package manager and uninstall it. In case it does not, check if you still have xmonad Make sure to add thatĭirectory to your $PATH! The command which xmonad should now return Packages ( stack build) and then copy the relevant executables Install the correct version of GHC, as well as build all of the required Installing things is as easy as typing stack install. Use xmonad -recompile, symlink your real stack.yaml into the xmonadĬonfiguration directory, or use a custom build script. If you want to keep xmonad sources and the stack project elsewhere, but still Stack ghc instead of just ghc when (re)compiling its configuration. With stack.yaml alongside xmonad.hs, xmonad now knows that it needs to use Resolver : url : packages : - xmonad - xmonad-contrib
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |