Home liberachat/#xmonad: Logs Calendar

Logs on 2022-05-30 (liberachat/#xmonad)

00:18:07 × tremon_ quits (~tremon@83-84-18-241.cable.dynamic.v4.ziggo.nl) (Quit: getting boxed in)
00:46:47 × stackdroid18 quits (14094@user/stackdroid) (Quit: Lost terminal)
00:58:54 × jao quits (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) (Ping timeout: 276 seconds)
00:59:58 jao joins (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net)
01:26:21 × steve__ quits (~steve@ool-182c2b80.dyn.optonline.net) (Ping timeout: 256 seconds)
01:41:54 Rotaerk joins (~Rotaerk@2601:989:200:6a0:bb79:7e65:6223:b5a6)
01:42:52 <Rotaerk> is there some way with xmonad to define or save the way a desktop looks so that you don't have to manually restore it later? by that I mean ... if I have run a certain set of programs and laid them out in a particular way
02:03:59 × banc quits (banc@gateway/vpn/airvpn/banc) (Ping timeout: 246 seconds)
02:26:09 banc joins (banc@gateway/vpn/airvpn/banc)
03:28:15 × Rotaerk quits (~Rotaerk@2601:989:200:6a0:bb79:7e65:6223:b5a6) (Quit: Client closed)
03:42:29 × jao quits (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) (Ping timeout: 255 seconds)
04:45:29 × mvk quits (~mvk@2607:fea8:5ce3:8500::ba9a) (Ping timeout: 255 seconds)
06:19:46 chomwitt joins (~chomwitt@2a02:587:dc10:4700:ae5d:2d37:a960:78b1)
07:12:07 cfricke joins (~cfricke@user/cfricke)
07:22:13 steve__ joins (~steve@ool-182c2b80.dyn.optonline.net)
07:35:21 <dminuoso> raghavgururajan: Take a look at XMonad.Hooks.PositionStoreHooks from xmonad-contrib
07:40:36 nev_yn joins (~k.dockz@c-68-43-234-118.hsd1.mi.comcast.net)
07:42:52 × nevyn quits (~k.dockz@c-68-43-234-118.hsd1.mi.comcast.net) (Ping timeout: 272 seconds)
08:50:19 dschrempf joins (~dominik@070-207.dynamic.dsl.fonira.net)
08:52:54 mc47 joins (~mc47@xmonad/TheMC47)
09:00:21 × liskin[m] quits (~liskinmat@2001:470:69fc:105::768) (Quit: You have been kicked for being idle)
09:03:04 × werneta quits (~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net) (Ping timeout: 258 seconds)
10:17:26 × redgloboli_ quits (~redglobol@user/redgloboli) (Ping timeout: 258 seconds)
10:17:36 redgloboli joins (~redglobol@user/redgloboli)
11:00:28 × chomwitt quits (~chomwitt@2a02:587:dc10:4700:ae5d:2d37:a960:78b1) (Quit: Leaving)
11:06:59 chomwitt joins (~chomwitt@2a02:587:dc10:4700:ae5d:2d37:a960:78b1)
12:54:13 × cfricke quits (~cfricke@user/cfricke) (Quit: WeeChat 3.5)
13:14:21 cfricke joins (~cfricke@user/cfricke)
13:31:30 × cfricke quits (~cfricke@user/cfricke) (Ping timeout: 250 seconds)
13:32:59 cfricke joins (~cfricke@user/cfricke)
13:48:27 × cfricke quits (~cfricke@user/cfricke) (Ping timeout: 240 seconds)
15:26:11 × steve__ quits (~steve@ool-182c2b80.dyn.optonline.net) (Ping timeout: 246 seconds)
15:56:27 × chomwitt quits (~chomwitt@2a02:587:dc10:4700:ae5d:2d37:a960:78b1) (Ping timeout: 260 seconds)
15:59:36 chomwitt joins (~chomwitt@athedsl-32480.home.otenet.gr)
17:26:50 × matijja` quits (~matijja@193.77.181.201) (Quit: ZNC 1.8.2 - https://znc.in)
17:27:11 matijja joins (~matijja@193.77.181.201)
17:29:06 × redgloboli quits (~redglobol@user/redgloboli) (Quit: ...enter the matrix...)
17:30:14 redgloboli joins (~redglobol@user/redgloboli)
18:05:15 × dschrempf quits (~dominik@070-207.dynamic.dsl.fonira.net) (Ping timeout: 276 seconds)
18:26:59 dschrempf joins (~dominik@070-207.dynamic.dsl.fonira.net)
18:43:53 werneta joins (~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net)
18:44:14 jao joins (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net)
18:56:36 × dschrempf quits (~dominik@070-207.dynamic.dsl.fonira.net) (Ping timeout: 276 seconds)
19:14:57 stackdroid18 joins (14094@user/stackdroid)
19:17:00 × redgloboli quits (~redglobol@user/redgloboli) (Quit: ...enter the matrix...)
19:17:48 redgloboli joins (~redglobol@user/redgloboli)
19:18:31 dschrempf joins (~dominik@070-207.dynamic.dsl.fonira.net)
19:18:38 × dschrempf quits (~dominik@070-207.dynamic.dsl.fonira.net) (Client Quit)
19:29:34 cfricke joins (~cfricke@user/cfricke)
20:18:21 × chomwitt quits (~chomwitt@athedsl-32480.home.otenet.gr) (Quit: Leaving)
20:18:42 chomwitt joins (~chomwitt@2a02:587:dc11:7d00:f083:eec9:d0b0:a50f)
20:44:12 × cfricke quits (~cfricke@user/cfricke) (Quit: WeeChat 3.5)
20:51:16 henninb joins (~henninb@97-116-138-116.mpls.qwest.net)
20:58:07 × werneta quits (~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net) (Ping timeout: 240 seconds)
21:00:16 werneta joins (~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net)
21:18:41 × nomadxx3 quits (~lanomadx@69.167.36.18) (Ping timeout: 258 seconds)
21:19:40 nomadxx3 joins (~lanomadx@69.167.42.149)
21:26:00 <henninb> Greetings, I want place a `spawn` call within the lambda function `+ zipM "M-" "Move to workspace" wsKeys [0..] (withNthWorkspace (\i -> W.greedyView i))` any thoughts on how I can do that?
21:26:12 liskin[m] joins (~liskinmat@2001:470:69fc:105::768)
21:39:33 <vrs> `(withNthWorkspace (\i -> W.greedyView i)) >> spawn foo`?
21:41:05 <vrs> give or take parens in the correct place, I don't know what wsKeys does
21:41:42 <henninb> vrs, let me give that a try. thank you for the tip.
21:43:50 <vrs> in general two things happening in the X monad (with type X () or something that can specialize to X (), such as the type of `spawn`) can be composed by >> to happen after one another
21:44:33 <henninb> vrs, that is really good advice. clearly I have a lot to learn :)
21:45:12 <vrs> also you may want to use safeSpawn but worry about that later https://hackage.haskell.org/package/xmonad-contrib-0.17.0/docs/XMonad-Util-Run.html#v:safeSpawn
21:45:53 <henninb> I will add this to my notes to go back and fix this.
21:45:59 <henninb> thank you for that.
21:46:53 <henninb> vrs, if I have another zipM line after this one I assume I need to add parenthesis or something to prevent a compiler error?
21:51:07 <vrs> presumably, but I don't know your config and am going to bed real soon
21:51:21 <henninb> https://github.com/henninb/dotfiles/blob/main/.xmonad/lib/Local/KeyBindings.hs#L197
21:51:30 <henninb> no problem, thanks for your help vrs.
21:55:51 <vrs> `withNthWorkspace (\i -> W.greedyView i)` takes an argument and `spawn "foo"` does not, those two won't compose
21:56:13 <vrs> try manually expanding that zipM for a specific instance you care about and test with that
21:59:12 <vrs> in my config I have bindings looking like this: , ("M-c", hookNext "centerfloat" True >> ql "calendar")
22:00:19 <vrs> (where ql is a wrapper for spawn and `hookNext "centerfloat" True` happens in X ())
22:01:06 <henninb> ok, that help. I will try to expand the zipM.
22:18:22 × mc47 quits (~mc47@xmonad/TheMC47) (Remote host closed the connection)
22:30:24 <geekosaur> henninb, looking at your config, I *think* you want `withNthWorkspace (\i -> ...) >> spawn "foo"`. Haven't tested it though
22:44:53 × chomwitt quits (~chomwitt@2a02:587:dc11:7d00:f083:eec9:d0b0:a50f) (Ping timeout: 244 seconds)
22:49:55 <henninb> i will give that a try geekosaur, thank you for the tip
22:53:05 <henninb> geekosaur, doesn't seem to work. I wonder If I have a data type issue. not sure if what I am attempting is possible.
23:02:30 <geekosaur> you have quite a lot more going on than usual in your key bindings, so hopefully it's a matter of figuring out how to fit it in
23:04:14 srk- joins (~sorki@user/srk)
23:06:11 × srk quits (~sorki@user/srk) (Ping timeout: 255 seconds)
23:06:56 srk- is now known as srk
23:09:57 srk- joins (~sorki@user/srk)
23:13:41 × srk quits (~sorki@user/srk) (Ping timeout: 258 seconds)
23:13:42 srk- is now known as srk
23:24:40 <henninb> geekosaur, agreed, I will keep working at it. Thanks for looking at it.
23:28:08 <geekosaur> I just looked up `withNthWorkspace`. Looks like you want `\wn -> withNthWorkspace (\i -> ...) wn >> spawn "foo"`
23:30:39 <henninb> trying that now.
23:36:11 × stackdroid18 quits (14094@user/stackdroid) (Quit: hasta la vista... tchau!)
23:41:36 <henninb> geekosaur, I just tried this and it is not working. `++ zipM "M-" "Move window to workspace" wsKeys [0..] (\wn -> withNthWorkspace W.greedyView $ wn >> spawn "foo")` It was compiling until I added `spawn "foo"`.
23:42:30 <geekosaur> `$` won't work there
23:42:45 <henninb> I will remove it.
23:42:45 <geekosaur> yes, it acts like parentheses, but they extend too far in this case
23:43:19 <henninb> it compiles!!! yeah
23:44:19 <henninb> thank you geekosaur
23:47:56 <geekosaur> np

All times are in UTC on 2022-05-30.