Home liberachat/#xmonad: Logs Calendar

Logs on 2025-02-16 (liberachat/#xmonad)

01:42:45 × alp quits (~alp@2001:861:8ca0:4940:d06c:c4cf:d838:81ae) (Ping timeout: 248 seconds)
08:59:00 ash3en joins (~Thunderbi@2a03:7846:b6eb:101:93ac:a90a:da67:f207)
09:04:19 × ash3en quits (~Thunderbi@2a03:7846:b6eb:101:93ac:a90a:da67:f207) (Remote host closed the connection)
09:07:11 × Digit quits (~user@user/digit) (Read error: Connection reset by peer)
09:07:50 Digit joins (~user@user/digit)
09:42:43 alp joins (~alp@2001:861:8ca0:4940:c79:76f1:1692:8b70)
10:39:43 × alp quits (~alp@2001:861:8ca0:4940:c79:76f1:1692:8b70) (Ping timeout: 268 seconds)
10:48:17 × coldpress quits (~coldpress@72.136.212.35.bc.googleusercontent.com) (Ping timeout: 265 seconds)
10:51:57 coldpress joins (~coldpress@72.136.212.35.bc.googleusercontent.com)
10:59:12 jaava joins (~nick@syn-076-035-209-158.res.spectrum.com)
11:01:25 <jaava> Hello. I've been using xmonad for a little while and I like it. I'm trying to solve a problem that I have but I have no experience with Haskell and I'm having a really hard time despite trying to learn how to solve this problem for a week or so. I'm not asking anyone to write anything for me, but some pointers?
11:05:14 <jaava> So I have a keymap that takes Mod+F2 and does volume down and Mod+F3 as volume up. I want to remove the Mod so that I can just press up and down. The problem with that is that when I press the key, my volume change command gets called several times while I am holding the button. So my solution is to create a function that takes the spawn function as an instance and runs System.CPUTime.getCPUTime and checks
11:05:21 <jaava> if 15ms has passed since the last press. But coming from a procedural language background implementing this idea in haskell is confusing me
11:36:22 <Leary> jaava: This shouldn't be anything unique to xmonad; do you not have exactly the same issue with other keys in other programs? I suggest you configure autorepeat for your system, e.g. with `xset`. You can adjust the delay or turn it off for certain keys.
11:59:10 alp joins (~alp@2001:861:8ca0:4940:7b11:c632:5243:a849)
12:00:23 <jaava> It's not an issue with xmonad no. It's just that xmonad doesn't spawn my volume up script until I press Windows+F3, but if I press F3 alone then as long as I am holding that button the script gets called. This isn't an issue for any other applications. I just have autorepeat settings as default
12:01:34 × Miroboru quits (~myrvoll@178-164-114.82.3p.ntebredband.no) (Ping timeout: 244 seconds)
12:18:42 Miroboru joins (~myrvoll@178-164-114.82.3p.ntebredband.no)
12:37:04 × jaava quits (~nick@syn-076-035-209-158.res.spectrum.com) (Quit: Lost terminal)
16:58:21 × alp quits (~alp@2001:861:8ca0:4940:7b11:c632:5243:a849) (Ping timeout: 268 seconds)
19:14:55 alp joins (~alp@2001:861:8ca0:4940:272d:ade:2d7a:3548)
23:12:00 × alp quits (~alp@2001:861:8ca0:4940:272d:ade:2d7a:3548) (Ping timeout: 252 seconds)

All times are in UTC on 2025-02-16.