Logs: liberachat/#xmonad
| 2023-06-13 17:51:24 | <horzion> | myStatusBar is pretty much just a variable that stores what i want, which is then finally executed like i want it to |
| 2023-06-13 17:51:59 | × | Forkk quits (~forkk@li926-228.members.linode.com) (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.) |
| 2023-06-13 17:52:20 | → | Forkk joins (~forkk@li926-228.members.linode.com) |
| 2023-06-13 17:52:20 | <horzion> | above for the most part i define variables that are then finally placed in the main function for it to call |
| 2023-06-13 17:52:39 | <ke8cqc> | Yeah I kinda noticed that. |
| 2023-06-13 17:54:40 | <horzion> | does xmonad throw errors when you compile your current config? |
| 2023-06-13 17:55:30 | <horzion> | i usually compile it in the terminal, so i see directly when it happens |
| 2023-06-13 17:57:57 | × | ke8cqc quits (~ke8cqc@2600:1700:fb60:62d0:c5d:5492:ca40:6e8) (Remote host closed the connection) |
| 2023-06-13 17:59:38 | → | ke8cqc joins (~ke8cqc@2600:1700:fb60:62d0:c5d:5492:ca40:6e8) |
| 2023-06-13 18:01:38 | × | ke8cqc quits (~ke8cqc@2600:1700:fb60:62d0:c5d:5492:ca40:6e8) (Remote host closed the connection) |
| 2023-06-13 18:04:11 | → | ke8cqc joins (~ke8cqc@2600:1700:fb60:62d0:c5d:5492:ca40:6e8) |
| 2023-06-13 18:05:22 | <ke8cqc> | horizon - Is there a way to copy / paste a xmonad error or is it in a file I could pull it from? |
| 2023-06-13 18:06:05 | <horzion> | there should be file near the path where its compiled |
| 2023-06-13 18:06:24 | <horzion> | xmonad.errors |
| 2023-06-13 18:06:43 | <horzion> | i am guessing for you it should be ~/.config/xmonad/ |
| 2023-06-13 18:06:47 | <ke8cqc> | I'll do a locate for it. |
| 2023-06-13 18:07:32 | × | defjam quits (~defjam@2a02:c7c:5d4f:9400:b4a0:b8f5:c5ae:c4ef) (Ping timeout: 240 seconds) |
| 2023-06-13 18:08:46 | <geekosaur> | ~/.local/share/xmonad/xmonad.errors |
| 2023-06-13 18:09:07 | <horzion> | it depends where your xmonad is |
| 2023-06-13 18:09:20 | <horzion> | for me its in ~/.xmonad/ |
| 2023-06-13 18:09:31 | <geekosaur> | right be they're using ~/.config/xmonad |
| 2023-06-13 18:10:06 | → | defjam joins (~defjam@2a02:c7c:5d4f:9400:b4a0:b8f5:c5ae:c4ef) |
| 2023-06-13 18:10:06 | <horzion> | then it should be in ~/.config/xmonad/ , no? |
| 2023-06-13 18:10:19 | <geekosaur> | no |
| 2023-06-13 18:10:56 | <ke8cqc> | Here are the contents of xmonad.hs and xmonad.errors: https://dpaste.com/7FM665HPD |
| 2023-06-13 18:11:03 | <geekosaur> | in XDG mode we use proper XDG paths, so it's under ~/.local/share |
| 2023-06-13 18:11:14 | <horzion> | you dont have to copy mine |
| 2023-06-13 18:12:00 | <ke8cqc> | I know nothing about Haskell. |
| 2023-06-13 18:12:26 | <ke8cqc> | ... other than xmonad is written in it. |
| 2023-06-13 18:12:42 | <horzion> | i barely do either, all i do is read documentation and use my other programming knowledge |
| 2023-06-13 18:13:01 | <ke8cqc> | I have no other programming knowledge to fall back on. |
| 2023-06-13 18:13:23 | <geekosaur> | @where wikibook |
| 2023-06-13 18:13:23 | <lambdabot> | http://en.wikibooks.org/wiki/Haskell |
| 2023-06-13 18:13:31 | <horzion> | https://paste.ee/p/hHhgd#Rx9tJM4WK2o8J9ybou1g58zaxFFMlzcU |
| 2023-06-13 18:13:44 | <horzion> | this is how main and myStatusBar would look like for your case |
| 2023-06-13 18:15:18 | <horzion> | somebody remind me, did haskell require function definitions to be written above the function they are used in? |
| 2023-06-13 18:15:41 | <horzion> | cause c and python certainly do |
| 2023-06-13 18:16:04 | <geekosaur> | haskell's only ordering constraint comes with template haskell |
| 2023-06-13 18:16:12 | <geekosaur> | otherwise you can put anything anywhere |
| 2023-06-13 18:16:20 | <horzion> | :thumbsup: |
| 2023-06-13 18:16:29 | × | ke8cqc quits (~ke8cqc@2600:1700:fb60:62d0:c5d:5492:ca40:6e8) (Quit: Leaving) |
| 2023-06-13 18:17:29 | <horzion> | i speculate that they are either missing an import or another xmonad config is used than the one they are defining xmobar in |
| 2023-06-13 18:17:42 | <horzion> | actually |
| 2023-06-13 18:18:12 | <horzion> | nvm |
| 2023-06-13 18:18:50 | <ChaoticMist[m]> | Out of curiosity, why xmobar and not taffybar? |
| 2023-06-13 18:20:16 | <horzion> | flavour would be my guess |
| 2023-06-13 18:20:24 | <horzion> | also documentation |
| 2023-06-13 18:20:28 | <geekosaur> | there's a missing import for clickablePP, but the other error is because `myStatusBar` needs to be wrapped in `withSB` (or `withSB` inside it, compare to `withEasySB`) |
| 2023-06-13 18:20:41 | <horzion> | yeah, because they just copy pasted my stuff |
| 2023-06-13 18:21:39 | <geekosaur> | https://hackage.haskell.org/package/xmonad-contrib-0.17.1/docs/XMonad-Util-ClickableWorkspaces.html#v:clickablePP |
| 2023-06-13 18:21:45 | → | ke8cqc joins (~ke8cqc@2600:1700:fb60:62d0:c5d:5492:ca40:6e8) |
| 2023-06-13 18:22:07 | <ke8cqc> | horizon - Here is the error and xmonad.hs now: https://dpaste.com/63WK7QTM2 |
| 2023-06-13 18:22:30 | <horzion> | i made an error |
| 2023-06-13 18:22:42 | <ke8cqc> | I could have told you that. |
| 2023-06-13 18:22:46 | <geekosaur> | you didn't fix myStatusBar |
| 2023-06-13 18:22:49 | <horzion> | i did |
| 2023-06-13 18:22:56 | <horzion> | but i didnt fix something else |
| 2023-06-13 18:23:46 | <ke8cqc> | Could you give me the myStatusBar line along with my main once you fix the error. |
| 2023-06-13 18:24:07 | <ke8cqc> | ? |
| 2023-06-13 18:24:10 | <horzion> | i would like geekosaur to check mine for any obvious errors first |
| 2023-06-13 18:24:11 | <horzion> | https://paste.ee/p/L5rZg#6jgQlOXwiQbZyRD3HB4_1hVhb_g3vm05 |
| 2023-06-13 18:24:32 | <ke8cqc> | geekosaur: Do your stuff!!! |
| 2023-06-13 18:24:41 | <horzion> | calm down |
| 2023-06-13 18:24:56 | <ke8cqc> | I'm just being a dork. |
| 2023-06-13 18:26:03 | <geekosaur> | the problem there is you're expecting it to "unwrap" myStatusBar into withEasySB. Haskell doesn't work that way (Lisp does, at least with `,@`) |
| 2023-06-13 18:26:36 | <horzion> | idk, it have it the same without defToggleStrutKey |
| 2023-06-13 18:26:41 | <horzion> | no errors with that one |
| 2023-06-13 18:27:24 | <geekosaur> | defToggleStrutsKey is in the wrong place as a result; it needs to be inside the parens |
| 2023-06-13 18:28:35 | <horzion> | good to know |
| 2023-06-13 18:32:44 | <ke8cqc> | So do I put defToggleStrutKey in the parens alongside myStatusBar, in its own parens, or in the parens in main :: ID () ??? |
| 2023-06-13 18:34:15 | <geekosaur> | withEasySB (myStatusBar defToggleStrutsKey) |
| 2023-06-13 18:34:31 | <ke8cqc> | Ok I'll give that a go... |
| 2023-06-13 18:37:28 | × | ke8cqc quits (~ke8cqc@2600:1700:fb60:62d0:c5d:5492:ca40:6e8) (Quit: Leaving) |
| 2023-06-13 18:41:07 | → | ke8cqc joins (~ke8cqc@2600:1700:fb60:62d0:c5d:5492:ca40:6e8) |
| 2023-06-13 18:43:50 | <ke8cqc> | xmobar.hs and error: https://dpaste.com/GBJRBR7V2 |
| 2023-06-13 18:44:27 | <horzion> | quick tip: xmonad wont compile if there is an error in the config. so no need to restart. so check first if there are any errors in the xmonad.errors. |
| 2023-06-13 18:45:02 | <geekosaur> | no xmonad.hs there |
| 2023-06-13 18:45:30 | <geekosaur> | but you're calling sttausBar, doesn't that want to be myStatusBar? |
| 2023-06-13 18:46:03 | <horzion> | hard to tell without xmonad.hs |
| 2023-06-13 18:46:15 | <horzion> | but yeah, thats what i thought too |
| 2023-06-13 18:46:42 | <ke8cqc> | https://dpaste.com/869F99QGR |
| 2023-06-13 18:47:04 | <ke8cqc> | Sorry about that. |
| 2023-06-13 18:47:06 | <horzion> | yeah, that needs to be myStatusBar, not just statusBar |
| 2023-06-13 18:48:08 | <geekosaur> | hm, and it looks like I was wring before, defToggleStrutsKey goes to withEasySB not myStatusBar |
| 2023-06-13 18:48:30 | <ke8cqc> | Ok. so I just need do xmonad --recompile??? |
| 2023-06-13 18:48:49 | <horzion> | do it in your terminal, if it errors out, upload new xmonad.errors |
| 2023-06-13 18:53:40 | <ke8cqc> | https://dpaste.com/7MLR88NS5 |
| 2023-06-13 18:55:14 | <ke8cqc> | It's a lot more convenient because recompile puts the error in the stdout so I don't have to change directories. |
| 2023-06-13 18:55:21 | <horzion> | yup |
| 2023-06-13 18:55:31 | <geekosaur> | right, you missed what I said earlier whne I noted that moving defToggleStrutsKey was actually incorrect |
| 2023-06-13 18:55:46 | <geekosaur> | [13 18:48:08] <geekosaur> hm, and it looks like I was wring before, defToggleStrutsKey goes to withEasySB not myStatusBar |
| 2023-06-13 18:56:16 | <horzion> | well, you didnt particular state how exactly it should be done better. mind you, they seem to have zero programming knowledge and how to do it |
| 2023-06-13 18:56:40 | <geekosaur> | yeh, I meant to go back to the earlier one |
| 2023-06-13 18:56:44 | <ke8cqc> | Bubblegum and baling wire. |
| 2023-06-13 18:57:22 | <geekosaur> | but I'm kinda floundering myself since I'm not especially familiar with this stuff; I don't use xmobar or withSB/withEasySB, I feed xmonad-log-applet over dbus |
| 2023-06-13 18:57:49 | <horzion> | no worries, i made a mistake, you made one, everybody does. no big deal :D |
| 2023-06-13 18:58:13 | <ke8cqc> | geekosaur: I concur with horizon. |
| 2023-06-13 18:58:37 | <ke8cqc> | geekosaur: You're not floundering. I am. |
| 2023-06-13 19:00:35 | <horzion> | anyways what geekosaur meant: ". withEasySB myStatusBar defToggleStrutsKey" instead of ". withEasySB (myStatusBar defToggleStrutsKey)" if i understood that correctly |
| 2023-06-13 19:02:04 | <geekosaur> | yes |
All times are in UTC.