Logs: liberachat/#xmonad
| 2022-03-06 05:49:54 | → | iqubic joins (~iqubic@c-67-171-37-233.hsd1.wa.comcast.net) |
| 2022-03-06 05:50:11 | <iqubic> | I currently have XMonad installed via these instructions: https://xmonad.org/INSTALL.html#build-using-cabal-install |
| 2022-03-06 05:50:46 | <iqubic> | Is there analogous set of instructions for installing XMobar, or can I just grab that from cabal via "cabal install xmobar"? |
| 2022-03-06 05:55:53 | → | bfrk joins (~Thunderbi@2001:9e8:340:300:af5a:d466:69c7:e8d4) |
| 2022-03-06 06:14:37 | <Solid> | iqubic: if you don't want to use xmobar as a library (i.e., if you don't want a Haskell-based xmobar config) then just install it however you want |
| 2022-03-06 06:15:00 | <iqubic> | I can have a haskell based xmobar config? How does that work? |
| 2022-03-06 06:15:34 | <iqubic> | I'm just an ignorant woman when it comes to xmonad and xmobar. |
| 2022-03-06 06:16:32 | <Solid> | basically like how having a Haskell-based xmonad config works :D (for example, https://codeberg.org/jao/xmobar-config or https://gitlab.com/slotThe/dotfiles/-/tree/master/xmobar/.config/xmobarrc ) |
| 2022-03-06 06:17:54 | <iqubic> | Is this better or worse than just using xmobarrc? |
| 2022-03-06 06:20:28 | <Solid> | that sort of depends on your point of view |
| 2022-03-06 06:20:59 | <iqubic> | How hard would it be to set up an xmobarrc.hs config file? |
| 2022-03-06 06:21:08 | <Solid> | it's _better_ because it's now turing complete and you can do more stuff; it's _worse_ because... you can now do more stuff, which is probably unecessary given the nature of xmobar |
| 2022-03-06 06:21:30 | <iqubic> | I like turing complete. |
| 2022-03-06 06:22:07 | <iqubic> | I want to make an xmobarrc.hs. Is there a good reference for how to set this up and get xmonad talking to it? |
| 2022-03-06 06:22:26 | <geekosaur> | ghc errormessages are a lotbetter than those of the parserxmobar uses for its config |
| 2022-03-06 06:23:06 | <Solid> | that is true |
| 2022-03-06 06:23:42 | <iqubic> | I want to make an xmobarrc.hs? How can I do that? |
| 2022-03-06 06:23:55 | <Solid> | iqubic: there is an example config here https://github.com/jaor/xmobar/blob/master/examples/xmobar.hs but I don't think there's a tutorial yet |
| 2022-03-06 06:25:04 | <iqubic> | Yeah, but how do I create a binary that runs with that config? |
| 2022-03-06 06:26:20 | <Solid> | you can either give it to xmobar like a config file (xmobar ~/.xmobarrc.hs) or you can create a stack project just like with xmonad and directly compile it with your config (you then only need to call `xmobar`) |
| 2022-03-06 06:27:40 | <iqubic> | I'd like to create a stack project. That seems easiest. |
| 2022-03-06 06:35:17 | <geekosaur> | btw iqubic, if you didn't know, you can go to github and type "xmobar.hs" into the search box at the top left and see the xmobar.hs of everyone who has one. neat way to look at other people's configs |
| 2022-03-06 06:35:30 | <iqubic> | That's really cool. |
| 2022-03-06 06:35:33 | <geekosaur> | (since lots of people use github to store their dotfiles and such) |
| 2022-03-06 06:35:53 | <iqubic> | First step is to make a stack project for xmonad/xmobar. |
| 2022-03-06 06:35:57 | <geekosaur> | can also be interesting because if you go the xmobar.hs route you can define your own plugins |
| 2022-03-06 06:36:08 | <iqubic> | I'd like that. |
| 2022-03-06 06:36:11 | <geekosaur> | I think the tutorial even includes a simple "hello world" plugin example |
| 2022-03-06 06:36:39 | <iqubic> | Yeah, but how do I run xmobar with a xmobarrc.hs file? |
| 2022-03-06 06:37:10 | <geekosaur> | if you build an xmobar.hs using stack you can just run it. otherwise you pass your xmobar.hs as a config file |
| 2022-03-06 06:37:17 | <geekosaur> | same as with an xmobarrc |
| 2022-03-06 06:38:07 | <iqubic> | I'd like to build an xmobar.hs with stack. Do you have an example stack.yaml I can use? |
| 2022-03-06 06:38:34 | <geekosaur> | I don't (I don't use xmobar), no |
| 2022-03-06 06:39:27 | <iqubic> | What status bar do you use? |
| 2022-03-06 06:40:16 | <geekosaur> | awww, I just did that search I mentioned and only got two hits, and neither uses stack :( |
| 2022-03-06 06:40:31 | <geekosaur> | I run xmonad under MATE so I use mate-panel. I need to use dbus to talk to it |
| 2022-03-06 06:40:41 | <iqubic> | That's sad. I did the same the thing and got the same results. |
| 2022-03-06 06:41:29 | <geekosaur> | that xmobar feature has been around for a few years but it's too undocumented so barely anyone knows about it much less uses it |
| 2022-03-06 06:42:22 | <geekosaur> | anyway my guess is you use a simple stack.yaml, have a cabal file that declares a dependency on xmobar, and just build it |
| 2022-03-06 06:42:31 | <geekosaur> | shouldn't be any hidden tricks |
| 2022-03-06 06:42:56 | <geekosaur> | you're just using xmobar as a library instead of as a program |
| 2022-03-06 06:45:07 | <Solid> | indeed |
| 2022-03-06 06:45:15 | <Solid> | also the two configs that I linked above are stack-based |
| 2022-03-06 06:49:22 | <iqubic> | Is it possible to do this with only cabal? |
| 2022-03-06 06:50:33 | <geekosaur> | anything you can do with stack you can also do with cabal. just need to put your constraints in the cabal file since you don't have a stack resolver constriaining things for you |
| 2022-03-06 06:50:47 | <iqubic> | Right. I see. |
| 2022-03-06 06:51:39 | <iqubic> | How do I create an executable from this cabal project? |
| 2022-03-06 06:52:18 | <geekosaur> | cabal build, then either cabal install or use cabal find-bin to locate and copy the executable |
| 2022-03-06 06:53:27 | <iqubic> | When I use spawnPipe in xmonad.hs, does that look executables on my user's $PATH? |
| 2022-03-06 06:55:43 | <geekosaur> | yes |
| 2022-03-06 06:56:23 | <geekosaur> | just be aware that that path won't usually have come from your shell dotfiles, because xmonad usually doesn;t get started via those |
| 2022-03-06 06:56:46 | <iqubic> | I see. |
| 2022-03-06 06:57:27 | <geekosaur> | (I use a simple wrapper script to start xmonad soit gets my full PATH: https://github.com/geekosaur/xmonad.hs/blob/skkukuk/start-xmonad) |
| 2022-03-06 10:31:43 | → | seschwar joins (~seschwar@user/seschwar) |
| 2022-03-06 14:49:42 | → | dartleader1 joins (~dartleade@64.42.151.189) |
| 2022-03-06 15:17:01 | → | mvk joins (~mvk@2607:fea8:5cc3:7e00::45ee) |
| 2022-03-06 15:18:27 | × | Czernobog quits (~Czernobog@user/czernobog) (Read error: Connection reset by peer) |
| 2022-03-06 15:20:56 | → | Czernobog joins (~Czernobog@user/czernobog) |
| 2022-03-06 15:35:45 | × | dartleader1 quits (~dartleade@64.42.151.189) (Read error: Connection reset by peer) |
| 2022-03-06 15:44:12 | → | dartleader1 joins (~dartleade@64.42.151.189) |
| 2022-03-06 15:55:31 | × | Czernobog quits (~Czernobog@user/czernobog) (Ping timeout: 256 seconds) |
| 2022-03-06 16:19:28 | → | Czernobog joins (~Czernobog@user/czernobog) |
| 2022-03-06 16:28:17 | → | marcello1 joins (~mp@p200300dfaf10fe015baf6eed7f4ef68f.dip0.t-ipconnect.de) |
| 2022-03-06 16:31:29 | <marcello1> | hey folks! I am running a distribution which is "installing system libraries with stack" and this seems to be 'a bad idea' according to the maintainers. Following the documentation there are references for distribution which offer proper implementation but apprently mine does not! Nevertheless, I do not want to switch my distri ;) I found a hint how to checkout the latest development branch. But am |
| 2022-03-06 16:31:30 | <marcello1> | I missing how to install it properly? the README.md at github refers to either download through distribution or the latest gitsnapshot |
| 2022-03-06 16:32:36 | <Solid> | marcello1: for example, INSTALL.md contains instructions for how to build with stack |
| 2022-03-06 16:32:50 | <Solid> | https://xmonad.org/INSTALL.html |
| 2022-03-06 16:32:56 | <marcello1> | is this the preferred way to install? |
| 2022-03-06 16:33:05 | <marcello1> | I see tarballs with tags |
| 2022-03-06 16:33:11 | <marcello1> | so many options :D |
| 2022-03-06 16:33:14 | <Solid> | Yes, especially when your distro doesn't package xmonad |
| 2022-03-06 16:33:29 | <Solid> | (it's more of a library than an application) |
| 2022-03-06 16:33:35 | <marcello1> | ok I am not an HS expert. Is stack something like pip for python? |
| 2022-03-06 16:33:42 | <Solid> | pretty much yes |
| 2022-03-06 16:33:45 | <marcello1> | I see |
| 2022-03-06 16:33:51 | <marcello1> | stack over tarbal? |
| 2022-03-06 16:33:57 | <Solid> | definitely |
| 2022-03-06 16:34:03 | <marcello1> | thanks Solid! |
| 2022-03-06 16:34:17 | <marcello1> | so downloading stack then the library then compiling it and just run it? |
| 2022-03-06 16:34:32 | <Solid> | the install page should have all the info you need |
| 2022-03-06 16:34:39 | <marcello1> | great! Thanks a lot |
| 2022-03-06 16:34:42 | <Solid> | if not feel free to ask here again :) |
| 2022-03-06 16:35:07 | <marcello1> | hehe yeah! I am already overdue I need to have my machine up and running by tomorrow morning it is already evening ;) |
| 2022-03-06 16:43:57 | <marcello1> | getting an error saying: No setup information found for ghc-8.10.7 on your platform. |
| 2022-03-06 16:43:58 | <marcello1> | This probably means a GHC bindist has not yet been added for OS key 'linux64-ncurses6'. |
| 2022-03-06 16:44:00 | <marcello1> | Supported versions: ghc-7.10.3, ghc-8.0.1, ghc-8.0.2, ghc-8.2.1, ghc-8.2.2 |
| 2022-03-06 16:44:25 | <Solid> | oh yeah you need to either use the system GHC or to symlink some ncurses library on Void |
| 2022-03-06 16:45:00 | <marcello1> | I just saw I haven't installed GHC at all |
| 2022-03-06 16:45:16 | <Solid> | stack will usually do this for you |
| 2022-03-06 16:45:39 | <marcello1> | smart app |
| 2022-03-06 16:46:33 | <marcello1> | the docu doesn't provide info to resolve what would you propose use system ghc or to symlinc the ncurses lib? |
| 2022-03-06 16:46:38 | <Solid> | https://github.com/void-linux/void-packages/issues/7403 |
| 2022-03-06 16:46:43 | <Solid> | I think that's the issue |
| 2022-03-06 16:46:51 | <Solid> | apparently it got fixed and you now only need to install a package |
| 2022-03-06 16:47:01 | <Solid> | at the very bottom |
| 2022-03-06 16:47:56 | <marcello1> | indeed |
| 2022-03-06 16:47:59 | <marcello1> | so 3 solutions |
| 2022-03-06 16:48:21 | <marcello1> | nevertheless installing xmonad from the packages worked without a problem |
| 2022-03-06 16:50:12 | <marcello1> | well I do not need to run the installer as root do I? |
| 2022-03-06 16:50:32 | <Solid> | you do not |
All times are in UTC.