2025/05/06

2025-05-06 00:35:02 +0000sajenim(~sajenim@user/sajenim) sajenim
2025-05-06 01:33:25 +0000OftenFaded38(~OftenFade@user/tisktisk) (Quit: Client closed)
2025-05-06 02:14:18 +0000td_(~td@i5387090D.versanet.de) (Ping timeout: 244 seconds)
2025-05-06 02:16:06 +0000td_(~td@i53870907.versanet.de) td_
2025-05-06 02:22:52 +0000td_(~td@i53870907.versanet.de) (Ping timeout: 276 seconds)
2025-05-06 02:24:21 +0000td_(~td@i5387093E.versanet.de) td_
2025-05-06 04:59:05 +0000werneta(~werneta@syn-071-083-160-242.res.spectrum.com) werneta
2025-05-06 06:50:08 +0000mc47(~yecinem@p200300ee0f0937fc43fd4213d4832676.dip0.t-ipconnect.de)
2025-05-06 07:18:19 +0000redgloboli(~redglobol@user/redgloboli) (Quit: ...enter the matrix...)
2025-05-06 07:19:53 +0000redgloboli(~redglobol@user/redgloboli) redgloboli
2025-05-06 10:08:01 +0000ChubaDuba(~ChubaDuba@46.147.103.147) ChubaDuba
2025-05-06 10:32:00 +0000ChubaDuba(~ChubaDuba@46.147.103.147) (Quit: WeeChat 4.6.0)
2025-05-06 11:33:22 +0000 <L29Ah> omg my xmonad is becoming slow
2025-05-06 11:34:05 +0000 <L29Ah> win-q takes 37 seconds to rebuild(?) and restart it
2025-05-06 13:14:27 +0000 <deebo> hmm how do i add dbus dep to my stack.yaml so it's pulled in
2025-05-06 13:19:02 +0000 <deebo> ah was missing version so it assumed it was a local directory
2025-05-06 13:48:11 +0000Solitary(~Solitary@user/solitary) (Ping timeout: 244 seconds)
2025-05-06 13:55:00 +0000Solitary(~Solitary@user/solitary) Solitary
2025-05-06 14:00:03 +0000 <deebo> hmpf, what's the proper way to include dbus in my xmonad build via stack? should it be an os package, or a specific 'extra-deps' version?, can't get this to build for mate-log-applet usage
2025-05-06 14:02:25 +0000 <geekosaur> probably extra-deps. that said, I don't use stack. also, an OS package will only work with the OS's ghc
2025-05-06 14:03:29 +0000 <deebo> yeah i just keep getting could not find module DBus
2025-05-06 14:05:02 +0000 <geekosaur> https://github.com/geekosaur/xmonad.hs/blob/hilfy-2023/xmonad-bsa.cabal
2025-05-06 14:08:32 +0000 <L29Ah> what's stack
2025-05-06 14:08:49 +0000 <L29Ah> ‰ cat ~/.xmonad/build
2025-05-06 14:08:49 +0000 <L29Ah> #!/bin/sh
2025-05-06 14:08:49 +0000 <L29Ah> ghc -fno-warn-tabs --make xmonad.hs -i -ilib -fforce-recomp -main-is main -v0 -outputdir ~/.xmonad/build-x86_64-linux -o ~/.xmonad/xmonad-x86_64-linux
2025-05-06 15:21:32 +0000Solitary(~Solitary@user/solitary) (Ping timeout: 272 seconds)
2025-05-06 15:32:12 +0000tv(~tv@user/tv) (Read error: Connection reset by peer)
2025-05-06 15:36:04 +0000Solitary(~Solitary@user/solitary) Solitary
2025-05-06 16:47:04 +0000werneta(~werneta@syn-071-083-160-242.res.spectrum.com) (Ping timeout: 252 seconds)
2025-05-06 16:54:05 +0000mc47(~yecinem@p200300ee0f0937fc43fd4213d4832676.dip0.t-ipconnect.de) (Ping timeout: 260 seconds)
2025-05-06 17:23:44 +0000sajenim(~sajenim@user/sajenim) (Ping timeout: 252 seconds)
2025-05-06 18:09:40 +0000 <deebo> gah, finally figured it out but using stack pulling in a specific ghc creates a massive web of dependency issues when downgrading dbus to <1.3
2025-05-06 18:11:38 +0000 <deebo> does plain cabal just use OS ghc?
2025-05-06 18:21:12 +0000 <L29Ah> yes if it satisfies the .cabal file requrement
2025-05-06 18:21:25 +0000 <L29Ah> ghc --make uses whatever is present in the system regardless
2025-05-06 18:35:12 +0000 <deebo> lets try with the stackage version from xmonad repo itself
2025-05-06 18:49:41 +0000OftenFaded16(~OftenFade@user/tisktisk) OftenFaded
2025-05-06 18:59:59 +0000 <haskellbridge> <Solid> You can also force stack to use your system's GHC version if you want
2025-05-06 19:08:35 +0000OftenFaded16(~OftenFade@user/tisktisk) (Quit: Client closed)
2025-05-06 19:11:45 +0000 <deebo> hmm, last weird problem i dont get
2025-05-06 19:11:59 +0000OftenFaded3(~OftenFade@user/tisktisk) OftenFaded
2025-05-06 19:13:39 +0000 <deebo> let sig = (D.signal "/org/xmonad/Log" "org.xmonad.Log" "Update") gives me one error per parameter: Couldn't match type ‘[Char]’ with ‘D.MemberName’
2025-05-06 19:14:45 +0000 <deebo> docs for dbus say something about coercing strings to the correct type, but i know very little haskell in the end :)
2025-05-06 19:15:11 +0000 <deebo> is a [Char] compatible with String?
2025-05-06 19:15:48 +0000 <geekosaur> yes, but sadly it doesn't use Strings
2025-05-06 19:16:00 +0000OftenFaded3(~OftenFade@user/tisktisk) (Client Quit)
2025-05-06 19:16:06 +0000 <geekosaur> turn on the OverloadedStrings extension, it's pretty much the only way to use the dbus bindings
2025-05-06 19:17:01 +0000OftenFaded55(~OftenFade@user/tisktisk) OftenFaded
2025-05-06 19:17:43 +0000 <deebo> ah that was the weird comment part in the examples
2025-05-06 19:18:28 +0000 <deebo> but it finally works, after way too much time spent
2025-05-06 19:23:30 +0000 <geekosaur> I probably should have linked you my xmonad.hs yesterday, it uses dbus to talk to xmonad-log-applet https://github.com/geekosaur/xmonad.hs/blob/hilfy-2023/xmonad.hs
2025-05-06 19:34:54 +0000 <deebo> yeah that's what i looked at to finally get it to working, the xmonad-log-applet example uses some things that i couldn't find, like defaultPP and the typing of the printer is different
2025-05-06 19:41:09 +0000 <geekosaur> I think I still have to upgrade some things to the new regime where everything uses a pretty much untyped `def`
2025-05-06 19:41:37 +0000 <geekosaur> but the PP stuff is in https://hackage.haskell.org/package/xmonad-contrib-0.18.1/docs/XMonad-Hooks-StatusBar-PP.html
2025-05-06 19:43:18 +0000 <deebo> is `defaultPP` the documented "Default PP" instance? is there a more explicit way of referring to it?
2025-05-06 19:49:11 +0000 <geekosaur> it's `def` now and all the explicit ways are being removed
2025-05-06 19:49:23 +0000 <geekosaur> (which imo is a bad thing but the other maintainers went for it)
2025-05-06 19:49:51 +0000 <geekosaur> we've already had one bug due to use of `def` when it was inappropriate but assumed to work because it does everywhere else now
2025-05-06 20:29:05 +0000tv(~tv@user/tv) tv
2025-05-06 22:36:15 +0000OftenFaded55(~OftenFade@user/tisktisk) (Quit: Client closed)
2025-05-06 22:55:18 +0000Lears(~Leary@user/Leary/x-0910699) Leary
2025-05-06 22:58:28 +0000Leary(~Leary@user/Leary/x-0910699) (Read error: Connection reset by peer)