XMonad: Difference between revisions
imported>Jooooscha Add information on how to import external modules that are not in xmonad-contrib |
imported>Jooooscha Clean up rest of the entry, remove some nonsensical parts |
||
| Line 55: | Line 55: | ||
More information on how to configure Xmonad can be found in the [https://wiki.archlinux.org/title/Xmonad Arch Wiki], and a list of starter configs can be found in the [https://wiki.haskell.org/Xmonad/Config_archive Xmonad Config Archive]. | More information on how to configure Xmonad can be found in the [https://wiki.archlinux.org/title/Xmonad Arch Wiki], and a list of starter configs can be found in the [https://wiki.haskell.org/Xmonad/Config_archive Xmonad Config Archive]. | ||
== Power management == | == Power management == | ||
| Line 177: | Line 118: | ||
$ sleep 1s && xset s activate | $ sleep 1s && xset s activate | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=== Developer Environment for XMonad === | |||
When developing modules for XMonad, it can help to install the following packages | |||
<syntaxHighlight lang="nix"> | |||
windowManager = { | |||
xmonad = { | |||
enable = true; | |||
enableContribAndExtras = true; | |||
extraPackages = haskellPackages: [ | |||
haskellPackages.dbus | |||
haskellPackages.List | |||
haskellPackages.monad-logger | |||
]; | |||
}; | |||
}; | |||
</syntaxHighlight> | |||
More information can be found [https://discourse.nixos.org/t/haskell-language-server-support-for-xmonad/12348 here] and [https://www.srid.ca/xmonad-conf-ide here]. | |||
==== Create a project around <code>xmonad.hs</code> ==== | |||
<syntaxHighlight lang="bash"> | |||
echo "xmonad" >> $HIE_BIOS_OUTPUT | |||
</syntaxHighlight> | |||
{{file|~/.config/xmonad/hie.yaml|yaml|<nowiki> | |||
cradle: | |||
bios: | |||
program: "./hie-bios.sh" | |||
with-ghc: "/nix/store/waa0dlvlszwbplrz5c7j674ab6v1n5wi-ghc-8.8.4-with-packages/bin/ghc" | |||
</nowiki>}} | |||
The "with-ghc" should be ghc that's in the "ghc-with-packages" dependency of the "xmonad-with-packages". | |||
It can be easily found with "nix-tree", which shows dependencies between packages on the machine. | |||
[[Category:Window managers]] | [[Category:Window managers]] | ||
[[Category:Applications]] | [[Category:Applications]] | ||