Home liberachat/#xmonad: Logs Calendar

Logs on 2022-06-07 (liberachat/#xmonad)

00:48:43 × stackdroid18 quits (14094@user/stackdroid) (Quit: hasta la vista... tchau!)
01:39:30 × abhixec quits (~abhixec@c-67-169-139-16.hsd1.ca.comcast.net) (Ping timeout: 240 seconds)
01:48:50 × steve_ quits (~steve@ool-182c2b80.dyn.optonline.net) (Ping timeout: 240 seconds)
02:03:12 × banc quits (banc@gateway/vpn/airvpn/banc) (Ping timeout: 276 seconds)
02:16:12 × jao quits (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) (Ping timeout: 276 seconds)
02:20:45 × td_ quits (~td@muedsl-82-207-238-164.citykom.de) (Ping timeout: 276 seconds)
02:22:06 td_ joins (~td@muedsl-82-207-238-064.citykom.de)
02:23:08 banc joins (banc@gateway/vpn/airvpn/banc)
03:45:12 ocelot_ joins (~ocelot@50-78-208-189-static.hfc.comcastbusiness.net)
04:13:50 banc- joins (banc@gateway/vpn/airvpn/banc)
04:14:06 × banc quits (banc@gateway/vpn/airvpn/banc) (Ping timeout: 246 seconds)
04:14:07 × defjam quits (~eb0t@33ba3cdf.skybroadband.com) (Ping timeout: 246 seconds)
04:16:09 defjam joins (~eb0t@33ba3cdf.skybroadband.com)
04:30:50 × rekahsoft quits (~rekahsoft@bras-base-wdston4533w-grc-02-142-113-160-8.dsl.bell.ca) (Ping timeout: 240 seconds)
05:28:59 × thunderrd quits (~thunderrd@183.182.114.81) (Remote host closed the connection)
05:41:26 chomwitt joins (~chomwitt@2a02:587:dc1f:5600:c2b2:8e31:c818:61b1)
05:49:41 steve_ joins (~steve@ool-182c2b80.dyn.optonline.net)
06:14:34 thunderrd joins (~thunderrd@183.182.114.81)
06:26:55 cfricke joins (~cfricke@user/cfricke)
07:46:44 mc47 joins (~mc47@xmonad/TheMC47)
07:49:27 <mesaoptimizer> hi, I was messing around with cabal on archlinux, and now `xmonad --recompile` doesn't work. Any help? https://www.irccloud.com/pastebin/AM0M7GvV/
08:11:39 alternateved joins (~alternate@82.180.151.243)
08:13:47 <mesaoptimizer> okay the answer was that I had to `rm -rf ~/.ghc`. Removing cabal and ghc and reinstalling them didn't do much
08:14:41 <mesaoptimizer> I'm surprised that the error does not actually tell you what the problem is
08:23:50 × alternateved quits (~alternate@82.180.151.243) (Remote host closed the connection)
08:24:13 alternateved joins (~alternate@82.180.151.243)
08:25:00 × alternateved quits (~alternate@82.180.151.243) (Remote host closed the connection)
08:32:26 alternateved joins (~alternate@82.180.151.243)
09:00:06 × reavertor[m] quits (~reavertor@2001:470:69fc:105::1:ffd7) (Quit: You have been kicked for being idle)
09:00:14 × Johann[m] quits (~wubhlueao@2001:470:69fc:105::1:f791) (Quit: You have been kicked for being idle)
10:32:28 <Yehoshua> a bit late, but do you have more then one ghc install?
10:32:28 <Yehoshua> for example, via the distribution of you repo, and ghcup?
10:32:28 <Yehoshua> because that's what it looks like.
10:34:30 <Yehoshua> and the problem is linking against xmonad-contrib's .so file,
10:34:30 <Yehoshua> which means in some way either something is corrupted, or your compile env does not have _anymore_ xmonad-contrib installed. (but some headers are still accessible)
11:07:01 <Solid[m]> it's just Arch doing Arch things wrt dynamic linking
12:00:40 <alternateved> Hello, I was wondering if this was something wrong with my setup, but are utf8 supported in titles of windows?
12:01:43 <alternateved> I could have polish characters everywhere else, e.g. in workspaces or in xmobar plugins, but window titles are the only one where those characters are not displayed
12:03:58 × alternateved quits (~alternate@82.180.151.243) (Remote host closed the connection)
12:04:17 alternateved joins (~alternate@82.180.151.243)
12:12:36 <geekosaur> window titles should work fine, provided xmobar is built with utf8 and the font supports it
12:13:04 <geekosaur> I use utf8 in my terminal window titles to indicate various things and they all display fine
12:13:10 <geekosaur> but I don't use xmobar
12:20:41 <alternateved> This is the weird part: xmobar is build with xft support and xmobar plugins seems to display those characters just fine, the only issue is with window titles
12:22:53 <liskin> We've had some double encoding issues in the past
12:24:17 <liskin> Those should mostly be solved in 0.17+ but there's some possibility your config still does weird stuff with pipes
12:24:26 <geekosaur> mesaoptimizer, removing ~/.ghc removes the package registry but leaves the libraries behind. you need to also remove part of ~/.cabal
12:24:49 <geekosaur> I'd copy out ~/.cabal/config, nuke ~/.cabal, then copy the config file back
12:25:44 <liskin> alternateved: how's your Haskell job going btw? I remember chatting with you over Discord a year ago or so... You're not going to ZuriHac by any chance?
12:26:11 <alternateved> Hmm. I would need to dig around that. For sure I use the latest version. And I do not use pipes - mostly latest api
12:27:06 jao joins (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net)
12:27:48 <alternateved> liskin, ah you were right
12:28:34 <alternateved> Those kind of jobs attract weird people
12:29:03 <alternateved> I did not feel comfortable working there, but that job enabled me to meet some other people and find another job
12:29:36 <liskin> :-D
12:29:39 <alternateved> Currently I work for company that does real things and try to help their customers, and tech stack is mostly functional
12:29:46 <liskin> Good for you then :-)
12:29:47 <alternateved> Haskell, PureScript
12:30:13 <alternateved> And the place is full of experienced developers, so I am in good hands.
12:31:20 <alternateved> I am kinda overwhelmed in this year, so I did not plan to go to ZuriHac. Fun thing; colleague from my job was asking me that today; if I would want to take part in at least the online section
12:33:13 <liskin> I attended online last year and was completely overwhelmed
12:34:22 <alternateved> Why so?
12:38:13 Solid is really excited for an actual in person event, online conferences are such a drag
12:41:50 <alternateved> Ah, yeah. Makes sense
12:42:00 <geekosaur> I don't do so well with the online stuff either. plus I miss the "hallway track"
12:46:23 <alternateved> Currently, I am a part-time performer/dancer, pretty overwhelmed with that also, so I take what I can to find some quiet time
12:48:01 <Solid> totally understandable, of course, and I've even heard of people who like online conferences!
12:48:15 <Solid> but for me they're really demotivating
12:49:39 <liskin> alternateved: the schedule was so packed I barely had time for lunch, not to mention any hacking at all
12:49:58 <liskin> By the end of it I had a queue of YouTube recordings to catch up with
12:50:20 <liskin> Haven't had a more stressful weekend... possibly ever
12:53:19 <liskin> This time I'll probably try to notify attende a single presentation. If the weather's good I'll do some hiking on Friday afternoon, and then I also have Monday evening and most of Tuesday to unwind and relax.
12:53:36 <liskin> s/notify attende/not attend/
12:54:48 × Solitary quits (~Solitary@user/solitary) (Ping timeout: 272 seconds)
12:56:41 <alternateved> Okay, that sounds like something I would want to postpone till at least next year
13:01:24 mestre joins (~mestre@191.177.181.194)
13:17:13 <liskin> :-)
13:41:32 moonsheep joins (~user@user/moonsheep)
13:43:56 <moonsheep> I'm looking to customize my status bar (I'd like to be able to manually draw stuff). I have used xmobar for a long time now and it has served me well. I have made a prop logger that sends some JSON data to the status bar.
13:44:08 <moonsheep> How should I go about interpreting this data from xmobar?
13:44:40 <moonsheep> I have been reading its source and it seems fairly complex (a lot of TVars are used to pipe data around threads) and I'm a bit lost
13:44:57 <moonsheep> Is xmobar a good choice to do this in the first place, or should I roll my own status bar?
13:45:08 <moonsheep> I also heard of dzen2, is it any good?
13:45:39 <geekosaur[m]> Dzen2 is very minimal
13:46:29 <geekosaur[m]> I don't know of any status bar that knows what to do with JSON
13:46:40 <moonsheep> How do you mean "minimal"? Ideally I would like to be able to customize it "from the inside" (as in, interpreting the data xmonad sends me and doing stuff with it)
13:47:17 <geekosaur[m]> All it does is display text
13:47:22 <alternateved> Did you check taffybar?
13:47:37 <moonsheep> geekosaur[m]: well I'm pretty sure xmobar can display a fair bit more than just text
13:47:43 <moonsheep> alternateved: nope
13:47:56 <moonsheep> Hmm, looks interesting
13:49:28 <moonsheep> Btw, in case it isn't clear I don't intend the status bar to interpret the JSON directly. I'm merely using it to be able to send haskell records through xmonadPropLog
13:49:45 <moonsheep> (which only works with strings)
14:24:45 × alternateved quits (~alternate@82.180.151.243) (Ping timeout: 260 seconds)
14:29:51 theliver[m] joins (~theliverm@2001:470:69fc:105::2:25e4)
14:49:19 Solitary joins (~Solitary@user/solitary)
15:18:19 jlhupz joins (~jlhupz@2001:4451:a9d:1400:6e1f:1990:6ae3:7a9c)
15:20:04 jlhupz parts (~jlhupz@2001:4451:a9d:1400:6e1f:1990:6ae3:7a9c) ()
15:21:36 jlhupz joins (~jlhupz@2001:4451:a9d:1400:6e1f:1990:6ae3:7a9c)
15:23:13 <moonsheep> So I'm back... what do I do if the hackage taffybar fails to build? (for using IO instead of the MonadIO class)
15:23:23 <moonsheep> Is there an easy way to patch it without having to upload a new package to hackage?
15:23:35 <moonsheep> Where does stack write the package sources?
15:27:11 <geekosaur> in a temporary directory, and removes them after. You probably want `stack unpack`
15:27:47 × jlhupz quits (~jlhupz@2001:4451:a9d:1400:6e1f:1990:6ae3:7a9c) (Quit: Client closed)
15:58:14 <mc47> moonsheep you can pull the version tag you want from git, do your changes, and instruct stack to build using your local directory
16:04:57 × twiclo quits (~twiclo@66.29.177.50.static.utbb.net) (Ping timeout: 276 seconds)
16:06:17 twiclo joins (~twiclo@2604:7b80:2000:1069:cde9:e3cf:754c:100d)
16:13:14 wonko joins (~wjc@2a0e:1c80:2::130)
16:15:34 × noex quits (~null@user/noex) (Quit: :q!)
16:17:51 <moonsheep> Should I include all the code in my repo?
16:20:15 noex joins (~null@user/noex)
16:26:05 × twiclo quits (~twiclo@2604:7b80:2000:1069:cde9:e3cf:754c:100d) (Ping timeout: 260 seconds)
16:26:55 twiclo joins (~twiclo@2604:7b80:2000:1069:52fc:cedd:fbeb:10c)
16:37:42 × moonsheep quits (~user@user/moonsheep) (Remote host closed the connection)
16:44:32 <mc47> @tell moonsheep no, you can use `extra-deps:` in your stack.yaml and specify a path
16:44:33 <lambdabot> Consider it noted.
16:46:40 × cfricke quits (~cfricke@user/cfricke) (Quit: WeeChat 3.5)
16:51:45 × wonko quits (~wjc@2a0e:1c80:2::130) (Ping timeout: 260 seconds)
17:04:15 wonko joins (~wjc@2a0e:1c80:11::50)
17:19:29 <mesaoptimizer> geekosaur: thanks! I did a `ghcup nuke` and deleted all traces of haskell, and then reinstalled things
17:27:05 telser_ is now known as telser
18:45:51 jmct_ joins (sid160793@id-160793.tinside.irccloud.com)
18:47:00 bsima- joins (~bsima@143.198.118.179)
18:47:01 pl_ joins (sid98063@id-98063.helmsley.irccloud.com)
18:47:05 PotatoGim_ joins (sid99505@id-99505.lymington.irccloud.com)
18:50:43 × jmct quits (sid160793@id-160793.tinside.irccloud.com) (Ping timeout: 248 seconds)
18:50:43 × pl quits (sid98063@id-98063.helmsley.irccloud.com) (Ping timeout: 248 seconds)
18:50:43 × PotatoGim quits (sid99505@id-99505.lymington.irccloud.com) (Ping timeout: 248 seconds)
18:50:43 × trillpoli[m]1 quits (~trillpoli@2001:470:69fc:105::da4e) (Ping timeout: 248 seconds)
18:50:44 × gymmy[m] quits (~gymmymatr@2001:470:69fc:105::2:19f7) (Ping timeout: 248 seconds)
18:50:44 × Ash[m] quits (~signal-wa@2001:470:69fc:105::1:2318) (Ping timeout: 248 seconds)
18:50:44 × Zach[m] quits (~zoglesby@user/zoglesby) (Ping timeout: 248 seconds)
18:50:44 jmct_ is now known as jmct
18:50:45 × bsima quits (~bsima@2604:a880:400:d0::19f1:7001) (Ping timeout: 248 seconds)
18:50:45 pl_ is now known as pl
18:50:45 PotatoGim_ is now known as PotatoGim
18:52:53 Zach[m] joins (~zoglesby@user/zoglesby)
18:52:56 Ash[m] joins (~signal-wa@2001:470:69fc:105::1:2318)
19:00:09 trillpoli[m]1 joins (~trillpoli@2001:470:69fc:105::da4e)
19:02:09 gymmy[m] joins (~gymmymatr@2001:470:69fc:105::2:19f7)
19:41:53 alternateved joins (~alternate@45.134.212.155)
19:43:34 × alternateved quits (~alternate@45.134.212.155) (Remote host closed the connection)
20:24:20 abiss27 joins (~abiss27@user/abiss)
20:31:24 stackdroid18 joins (14094@user/stackdroid)
21:17:51 × jao quits (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) (Read error: Connection reset by peer)
21:22:12 × abiss27 quits (~abiss27@user/abiss) (Quit: hasta la vista... tchau!)
21:28:20 × mc47 quits (~mc47@xmonad/TheMC47) (Remote host closed the connection)
22:09:31 jao joins (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net)
22:10:42 moonsheep joins (~user@user/moonsheep)
22:14:35 <moonsheep> How can I catch raw press/unpress events of my mod key? I tried the following event hook: https://paste.tomsmeding.com/1iwUP5Xo
22:14:52 <moonsheep> But for some reason it doesn't seem to catch any keycode other than 23 (tab)
22:19:11 × jao quits (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) (Remote host closed the connection)
22:20:52 jao joins (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net)
22:23:11 <geekosaur> xmonad doesn't listen for keypresses as such. (really, you do not want it waking up on every single keypress/keyrelease event)
22:23:57 <geekosaur> it sets "passive key grabs", where the server watches for specific key sequences (corresponding to the command keys you define) and wakes up xmonad when one of them matches
22:24:30 <geekosaur> so pretty much the only time you should see a key event is when using something like Prompt or a SubMap or etc.
22:24:33 <moonsheep> How can I set my modified key as one of these passive key grabs?
22:24:43 <moonsheep> *modifier
22:24:46 <geekosaur> define it in the keys list
22:25:05 <geekosaur> note that this can lead to unexpected behavior
22:25:14 <moonsheep> So if I'm using additionalKeys do I add it there with an action that does nothing?
22:25:20 <geekosaur> with old style keys it'd be something like (0,xK_Super)
22:25:36 <geekosaur> with additionalKeysP it'd be "<Super>"
22:25:40 × chomwitt quits (~chomwitt@2a02:587:dc1f:5600:c2b2:8e31:c818:61b1) (Ping timeout: 248 seconds)
22:26:04 <geekosaur> and yes, if you don't actually want an action then you use `return ()` as the action
22:26:37 <moonsheep> So then is there no idiomatic way to handle key up/down? (as opposed to running an action every time the key is "pressed" like with the xconfig keys)
22:26:57 <moonsheep> Adding an empty action to the keys and then handling it in an event hooks feels pretty hacky
22:29:17 <geekosaur> no, there isn't
22:29:57 <geekosaur> and I don't guarantee you'll get a keyup event with an empty action because the server grab might be released by then
22:30:25 <moonsheep> Well, hacky as it may be it seems to work!
22:30:29 <moonsheep> Thank you so much
22:30:45 <moonsheep> (btw I'm trying to show the status bar only while the super key is pressed)
22:31:08 <geekosaur> typically if you want to do this, you (a) don't share a key with xmonad (which implies doing it outside of xmonad; a minimalist window manager is not one you build everything else into) (b) set your own key grab
22:31:31 <geekosaur> and (c) really that belongs in the status bar. I think xmobar supports it natively, for example
22:32:11 <moonsheep> How do you mean "don't share a key with xmonad". How can I not share my super key with xmonad?
22:33:12 <geekosaur> you may get tired of the status bar popping every time you run an xmonad command…
22:34:32 <moonsheep> Oh rigght
22:34:45 <moonsheep> Well, I'll try this for a while I guess
22:35:16 <moonsheep> I used to have it shown 100% of the time, so I don't think having it pop up every time I'm going to run a command is that big of an issue
22:37:31 × moonsheep quits (~user@user/moonsheep) (Quit: ERC 5.4 (IRC client for GNU Emacs 28.1))
23:00:45 × stackdroid18 quits (14094@user/stackdroid) (Quit: hasta la vista... tchau!)
23:20:18 × mestre quits (~mestre@191.177.181.194) (Quit: Lost terminal)

All times are in UTC on 2022-06-07.