2021/12/28

2021-12-28 00:01:37 +0100dirtcastle(~dirtcastl@103.43.203.229) (Ping timeout: 240 seconds)
2021-12-28 00:25:56 +0100edun(~e@user/edun)
2021-12-28 00:37:28 +0100edun(~e@user/edun) (Quit: Leaving.)
2021-12-28 00:45:05 +0100dirtcastle(~dirtcastl@103.43.203.229)
2021-12-28 01:08:57 +0100dirtcastle(~dirtcastl@103.43.203.229) (Ping timeout: 240 seconds)
2021-12-28 01:32:04 +0100dirtcastle(~dirtcastl@103.43.203.229)
2021-12-28 03:05:51 +0100geekosaur(~geekosaur@xmonad/geekosaur) (Remote host closed the connection)
2021-12-28 03:08:16 +0100geekosaur(~geekosaur@xmonad/geekosaur)
2021-12-28 04:02:37 +0100banc(banc@gateway/vpn/airvpn/banc) (Ping timeout: 240 seconds)
2021-12-28 04:07:07 +0100steve__(~steve@ool-182c2b80.dyn.optonline.net) (Ping timeout: 268 seconds)
2021-12-28 04:22:47 +0100banc(banc@gateway/vpn/airvpn/banc)
2021-12-28 04:52:35 +0100terrorjack(~terrorjac@2a01:4f8:1c1e:509a::1) (Quit: The Lounge - https://thelounge.chat)
2021-12-28 04:55:02 +0100terrorjack(~terrorjac@2a01:4f8:1c1e:509a::1)
2021-12-28 04:57:21 +0100td_(~td@muedsl-82-207-238-094.citykom.de) (Ping timeout: 256 seconds)
2021-12-28 04:59:08 +0100td_(~td@muedsl-82-207-238-177.citykom.de)
2021-12-28 06:02:06 +0100rekahsoft(~rekahsoft@cpe0008a20f982f-cm64777d666260.cpe.net.cable.rogers.com) (Remote host closed the connection)
2021-12-28 06:06:22 +0100rekahsoft(~rekahsoft@cpe0008a20f982f-cm64777d666260.cpe.net.cable.rogers.com)
2021-12-28 06:22:37 +0100rekahsoft(~rekahsoft@cpe0008a20f982f-cm64777d666260.cpe.net.cable.rogers.com) (Ping timeout: 240 seconds)
2021-12-28 07:04:02 +0100mvk(~mvk@2607:fea8:5cdd:f000::917a)
2021-12-28 07:28:01 +0100x88x88x(~x88x88x@2001:19f0:5:39a8:5400:3ff:feb6:73cb) (Remote host closed the connection)
2021-12-28 07:28:50 +0100x88x88x(~x88x88x@2001:19f0:5:39a8:5400:3ff:feb6:73cb)
2021-12-28 08:09:43 +0100dirtcastle(~dirtcastl@103.43.203.229) (Remote host closed the connection)
2021-12-28 09:50:58 +0100edun(~e@user/edun)
2021-12-28 10:16:58 +0100geekosaur(~geekosaur@xmonad/geekosaur) (Read error: Connection reset by peer)
2021-12-28 10:17:41 +0100geekosaur(~geekosaur@xmonad/geekosaur)
2021-12-28 10:19:37 +0100mvk(~mvk@2607:fea8:5cdd:f000::917a) (Ping timeout: 240 seconds)
2021-12-28 11:09:47 +0100dirtcastle(~dirtcastl@103.43.203.229)
2021-12-28 15:26:56 +0100aplainze1akind(~johndoe@captainludd.powered.by.lunarbnc.net)
2021-12-28 15:27:03 +0100aplainzetakind(~johndoe@captainludd.powered.by.lunarbnc.net) (Read error: Connection reset by peer)
2021-12-28 15:35:40 +0100ebray187(~ebray187@2800:150:129:17c4:224:1dff:fed5:599e)
2021-12-28 16:50:57 +0100dirtcastle(~dirtcastl@103.43.203.229) (Ping timeout: 240 seconds)
2021-12-28 17:21:49 +0100dirtcastle(~dirtcastl@103.43.203.229)
2021-12-28 17:29:41 +0100 <dirtcastle> can u help me find the bug in my code. New to xmonad & Haskell. Can't find answers in Google/reddit https://dpaste.org/RNbS#
2021-12-28 17:30:32 +0100 <dirtcastle> Full config : https://dpaste.org/JYJ7
2021-12-28 17:30:36 +0100 <geekosaur> what were you expecting, and what happens instead?
2021-12-28 17:31:12 +0100 <geekosaur> also, were you trying to use this with spawnOnce or similar?
2021-12-28 17:31:49 +0100 <dirtcastle> I expected dorectfloat. Trying to use doShift along with it
2021-12-28 17:32:05 +0100 <dirtcastle> geekosaur: yes
2021-12-28 17:32:32 +0100 <dirtcastle> Oh. Should I make a new hook. ?
2021-12-28 17:33:35 +0100 <dirtcastle> Also I don't think the syntax is crct. Can't figure out by myself with docs,google and reddit
2021-12-28 17:33:37 +0100 <geekosaur> no. manageSpawn is a predefined function that recognizes when a managed window appears in the manageHook and applies the spawnOn or etc. manager to it
2021-12-28 17:34:36 +0100 <geekosaur> yes, the syntax is wrong. but the thought process seems to be wrong as well. I think you intended to use spawnAndDo, and you'd just use the predefined manageSpawn in the manageHook
2021-12-28 17:37:21 +0100 <geekosaur> spawnAndDo (doRectFloat W.RationalRect 0.25 0.25 0.5 0.5 <+> doShift 1) "emacs"
2021-12-28 17:39:00 +0100 <dirtcastle> Oh. I didn't think of using spawnAndDo. The doc said this " managespawn: provides a managhook to react on process spawned with spawnOn, spawnhere. So I thought I can configure in managespawn and it would be sufficient.
2021-12-28 17:40:02 +0100 <geekosaur> no, manageSpawn is self-contained
2021-12-28 17:40:29 +0100 <geekosaur> it gets its instructions as to what to do from the spawn function you use (spawnOn, spawnHere, spawnAndDo, etc.)
2021-12-28 17:41:29 +0100 <geekosaur> it also knows how to verify that the window that it applies to is the one you actually spawned, instead of some other window that happens to have the same className or etc,
2021-12-28 17:43:59 +0100 <dirtcastle> Ohh that's neat.
2021-12-28 17:44:14 +0100 <dirtcastle> I added spawnAndDo to startuphook
2021-12-28 17:54:54 +0100 <geekosaur> what you were doing originally (with the syntax error corrected) would be what you do if you wanted it to apply to all emacs windows (well, fixing the className error also), whereas spawnAndDo will apply it specifically to that spawned window
2021-12-28 17:56:42 +0100 <geekosaur> your syntax and other issues were: the `&` (I'm not sure where you got that from, doRectFloat takes an ordinary argument. oh, hm, I screwed up above, left off parentheses, as did you) and by convention a className starts with an uppercase letter and emacs obeys that convention so it would never have matched
2021-12-28 17:56:54 +0100 <geekosaur> spawnAndDo (doRectFloat (W.RationalRect 0.25 0.25 0.5 0.5) <+> doShift 1) "emacs"
2021-12-28 17:57:06 +0100 <geekosaur> sorry for that
2021-12-28 17:59:33 +0100 <dirtcastle> I assumed since I wrote it inside managespawn it will only affect windows spawmed using spawnOn. My bad
2021-12-28 18:00:11 +0100gdd(~gdd@129.199.146.230)
2021-12-28 18:00:41 +0100 <geekosaur> no, as you wrote it manageSpawwn was just an ordinary list that wouldn't be distinguished from any other
2021-12-28 18:03:09 +0100 <dirtcastle> Ohhhh. It just adds to the total list of instructions in myManageHooks.
2021-12-28 18:12:01 +0100 <geekosaur> right
2021-12-28 18:27:37 +0100allbery_b(~geekosaur@xmonad/geekosaur)
2021-12-28 18:27:37 +0100geekosaur(~geekosaur@xmonad/geekosaur) (Killed (NickServ (GHOST command used by allbery_b)))
2021-12-28 18:27:40 +0100allbery_bgeekosaur
2021-12-28 18:41:32 +0100gdd(~gdd@129.199.146.230) (Ping timeout: 240 seconds)
2021-12-28 18:44:59 +0100 <dirtcastle> No instance for (Num WorkspaceId) arising from the literal '1'
2021-12-28 18:44:59 +0100 <dirtcastle> In the first argument of 'doShift', Namely '1'
2021-12-28 18:44:59 +0100 <dirtcastle> In the second argument of 'spawnAndDo' , namely
2021-12-28 18:44:59 +0100 <dirtcastle> '(doRectFloat (W.RationalRect 0.25 0.25 0.5 0.5) <+> doShift 1) "Emacs"
2021-12-28 18:45:26 +0100 <dirtcastle> This is the error I got
2021-12-28 18:46:03 +0100 <dirtcastle> Tried with emacs and Emacs
2021-12-28 18:46:10 +0100 <geekosaur> oh, I missed the quotes
2021-12-28 18:46:17 +0100 <geekosaur> spawnAndDo (doRectFloat (W.RationalRect 0.25 0.25 0.5 0.5) <+> doShift "1") "emacs"
2021-12-28 18:46:24 +0100 <geekosaur> WorkspaceId is String
2021-12-28 18:46:44 +0100 <geekosaur> what I get for doing stuff before my first coffee :/
2021-12-28 18:50:23 +0100 <dirtcastle> Thank you so much for your time. I was able to implement all the features I wanted with xmonad.
2021-12-28 19:15:22 +0100dirtcastle(~dirtcastl@103.43.203.229) (Read error: Connection reset by peer)
2021-12-28 19:21:48 +0100dirtcastle(~dirtcastl@103.43.203.225)
2021-12-28 19:37:18 +0100dirtcastle(~dirtcastl@103.43.203.225) (Ping timeout: 260 seconds)
2021-12-28 20:48:51 +0100geekosaur(~geekosaur@xmonad/geekosaur) (Remote host closed the connection)
2021-12-28 20:50:37 +0100geekosaur(~geekosaur@xmonad/geekosaur)
2021-12-28 20:53:51 +0100steve__(~steve@ool-182c2b80.dyn.optonline.net)
2021-12-28 21:31:14 +0100electr0n(~electr0n@about/security/founder/electr0n)
2021-12-28 21:45:13 +0100mvk(~mvk@2607:fea8:5cdd:f000::917a)
2021-12-28 21:54:53 +0100ebray187(~ebray187@2800:150:129:17c4:224:1dff:fed5:599e) (Quit: Konversation terminated!)
2021-12-28 22:52:17 +0100mvk(~mvk@2607:fea8:5cdd:f000::917a) (Ping timeout: 240 seconds)
2021-12-28 23:17:49 +0100edun(~e@user/edun) (Ping timeout: 268 seconds)