2025/05/06

2025-05-06 02:35:02 +0200sajenim(~sajenim@user/sajenim) sajenim
2025-05-06 03:33:25 +0200OftenFaded38(~OftenFade@user/tisktisk) (Quit: Client closed)
2025-05-06 04:14:18 +0200td_(~td@i5387090D.versanet.de) (Ping timeout: 244 seconds)
2025-05-06 04:16:06 +0200td_(~td@i53870907.versanet.de) td_
2025-05-06 04:22:52 +0200td_(~td@i53870907.versanet.de) (Ping timeout: 276 seconds)
2025-05-06 04:24:21 +0200td_(~td@i5387093E.versanet.de) td_
2025-05-06 06:59:05 +0200werneta(~werneta@syn-071-083-160-242.res.spectrum.com) werneta
2025-05-06 08:50:08 +0200mc47(~yecinem@p200300ee0f0937fc43fd4213d4832676.dip0.t-ipconnect.de)
2025-05-06 09:18:19 +0200redgloboli(~redglobol@user/redgloboli) (Quit: ...enter the matrix...)
2025-05-06 09:19:53 +0200redgloboli(~redglobol@user/redgloboli) redgloboli
2025-05-06 12:08:01 +0200ChubaDuba(~ChubaDuba@46.147.103.147) ChubaDuba
2025-05-06 12:32:00 +0200ChubaDuba(~ChubaDuba@46.147.103.147) (Quit: WeeChat 4.6.0)
2025-05-06 13:33:22 +0200 <L29Ah> omg my xmonad is becoming slow
2025-05-06 13:34:05 +0200 <L29Ah> win-q takes 37 seconds to rebuild(?) and restart it
2025-05-06 15:14:27 +0200 <deebo> hmm how do i add dbus dep to my stack.yaml so it's pulled in
2025-05-06 15:19:02 +0200 <deebo> ah was missing version so it assumed it was a local directory
2025-05-06 15:48:11 +0200Solitary(~Solitary@user/solitary) (Ping timeout: 244 seconds)
2025-05-06 15:55:00 +0200Solitary(~Solitary@user/solitary) Solitary
2025-05-06 16:00:03 +0200 <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 16:02:25 +0200 <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 16:03:29 +0200 <deebo> yeah i just keep getting could not find module DBus
2025-05-06 16:05:02 +0200 <geekosaur> https://github.com/geekosaur/xmonad.hs/blob/hilfy-2023/xmonad-bsa.cabal
2025-05-06 16:08:32 +0200 <L29Ah> what's stack
2025-05-06 16:08:49 +0200 <L29Ah> ‰ cat ~/.xmonad/build
2025-05-06 16:08:49 +0200 <L29Ah> #!/bin/sh
2025-05-06 16:08:49 +0200 <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 17:21:32 +0200Solitary(~Solitary@user/solitary) (Ping timeout: 272 seconds)
2025-05-06 17:32:12 +0200tv(~tv@user/tv) (Read error: Connection reset by peer)
2025-05-06 17:36:04 +0200Solitary(~Solitary@user/solitary) Solitary
2025-05-06 18:47:04 +0200werneta(~werneta@syn-071-083-160-242.res.spectrum.com) (Ping timeout: 252 seconds)
2025-05-06 18:54:05 +0200mc47(~yecinem@p200300ee0f0937fc43fd4213d4832676.dip0.t-ipconnect.de) (Ping timeout: 260 seconds)
2025-05-06 19:23:44 +0200sajenim(~sajenim@user/sajenim) (Ping timeout: 252 seconds)
2025-05-06 20:09:40 +0200 <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 20:11:38 +0200 <deebo> does plain cabal just use OS ghc?
2025-05-06 20:21:12 +0200 <L29Ah> yes if it satisfies the .cabal file requrement
2025-05-06 20:21:25 +0200 <L29Ah> ghc --make uses whatever is present in the system regardless
2025-05-06 20:35:12 +0200 <deebo> lets try with the stackage version from xmonad repo itself
2025-05-06 20:49:41 +0200OftenFaded16(~OftenFade@user/tisktisk) OftenFaded
2025-05-06 20:59:59 +0200 <haskellbridge> <Solid> You can also force stack to use your system's GHC version if you want
2025-05-06 21:08:35 +0200OftenFaded16(~OftenFade@user/tisktisk) (Quit: Client closed)
2025-05-06 21:11:45 +0200 <deebo> hmm, last weird problem i dont get
2025-05-06 21:11:59 +0200OftenFaded3(~OftenFade@user/tisktisk) OftenFaded
2025-05-06 21:13:39 +0200 <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 21:14:45 +0200 <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 21:15:11 +0200 <deebo> is a [Char] compatible with String?
2025-05-06 21:15:48 +0200 <geekosaur> yes, but sadly it doesn't use Strings
2025-05-06 21:16:00 +0200OftenFaded3(~OftenFade@user/tisktisk) (Client Quit)
2025-05-06 21:16:06 +0200 <geekosaur> turn on the OverloadedStrings extension, it's pretty much the only way to use the dbus bindings
2025-05-06 21:17:01 +0200OftenFaded55(~OftenFade@user/tisktisk) OftenFaded
2025-05-06 21:17:43 +0200 <deebo> ah that was the weird comment part in the examples
2025-05-06 21:18:28 +0200 <deebo> but it finally works, after way too much time spent
2025-05-06 21:23:30 +0200 <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 21:34:54 +0200 <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 21:41:09 +0200 <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 21:41:37 +0200 <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 21:43:18 +0200 <deebo> is `defaultPP` the documented "Default PP" instance? is there a more explicit way of referring to it?
2025-05-06 21:49:11 +0200 <geekosaur> it's `def` now and all the explicit ways are being removed
2025-05-06 21:49:23 +0200 <geekosaur> (which imo is a bad thing but the other maintainers went for it)
2025-05-06 21:49:51 +0200 <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 22:29:05 +0200tv(~tv@user/tv) tv