Logs: liberachat/#xmonad
| 2025-05-06 01:33:25 | × | OftenFaded38 quits (~OftenFade@user/tisktisk) (Quit: Client closed) |
| 2025-05-06 02:14:18 | × | td_ quits (~td@i5387090D.versanet.de) (Ping timeout: 244 seconds) |
| 2025-05-06 02:16:06 | → | td_ joins (~td@i53870907.versanet.de) |
| 2025-05-06 02:22:52 | × | td_ quits (~td@i53870907.versanet.de) (Ping timeout: 276 seconds) |
| 2025-05-06 02:24:21 | → | td_ joins (~td@i5387093E.versanet.de) |
| 2025-05-06 04:59:05 | → | werneta joins (~werneta@syn-071-083-160-242.res.spectrum.com) |
| 2025-05-06 06:50:08 | → | mc47 joins (~yecinem@p200300ee0f0937fc43fd4213d4832676.dip0.t-ipconnect.de) |
| 2025-05-06 07:18:19 | × | redgloboli quits (~redglobol@user/redgloboli) (Quit: ...enter the matrix...) |
| 2025-05-06 07:19:53 | → | redgloboli joins (~redglobol@user/redgloboli) |
| 2025-05-06 10:08:01 | → | ChubaDuba joins (~ChubaDuba@46.147.103.147) |
| 2025-05-06 10:32:00 | × | ChubaDuba quits (~ChubaDuba@46.147.103.147) (Quit: WeeChat 4.6.0) |
| 2025-05-06 11:33:22 | <L29Ah> | omg my xmonad is becoming slow |
| 2025-05-06 11:34:05 | <L29Ah> | win-q takes 37 seconds to rebuild(?) and restart it |
| 2025-05-06 13:14:27 | <deebo> | hmm how do i add dbus dep to my stack.yaml so it's pulled in |
| 2025-05-06 13:19:02 | <deebo> | ah was missing version so it assumed it was a local directory |
| 2025-05-06 13:48:11 | × | Solitary quits (~Solitary@user/solitary) (Ping timeout: 244 seconds) |
| 2025-05-06 13:55:00 | → | Solitary joins (~Solitary@user/solitary) |
| 2025-05-06 14:00:03 | <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 | <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 | <deebo> | yeah i just keep getting could not find module DBus |
| 2025-05-06 14:05:02 | <geekosaur> | https://github.com/geekosaur/xmonad.hs/blob/hilfy-2023/xmonad-bsa.cabal |
| 2025-05-06 14:08:32 | <L29Ah> | what's stack |
| 2025-05-06 14:08:49 | <L29Ah> | ‰ cat ~/.xmonad/build |
| 2025-05-06 14:08:49 | <L29Ah> | #!/bin/sh |
| 2025-05-06 14:08:49 | <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 | × | Solitary quits (~Solitary@user/solitary) (Ping timeout: 272 seconds) |
| 2025-05-06 15:32:12 | × | tv quits (~tv@user/tv) (Read error: Connection reset by peer) |
| 2025-05-06 15:36:04 | → | Solitary joins (~Solitary@user/solitary) |
| 2025-05-06 16:47:04 | × | werneta quits (~werneta@syn-071-083-160-242.res.spectrum.com) (Ping timeout: 252 seconds) |
| 2025-05-06 16:54:05 | × | mc47 quits (~yecinem@p200300ee0f0937fc43fd4213d4832676.dip0.t-ipconnect.de) (Ping timeout: 260 seconds) |
| 2025-05-06 17:23:44 | × | sajenim quits (~sajenim@user/sajenim) (Ping timeout: 252 seconds) |
| 2025-05-06 18:09:40 | <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 | <deebo> | does plain cabal just use OS ghc? |
| 2025-05-06 18:21:12 | <L29Ah> | yes if it satisfies the .cabal file requrement |
| 2025-05-06 18:21:25 | <L29Ah> | ghc --make uses whatever is present in the system regardless |
| 2025-05-06 18:35:12 | <deebo> | lets try with the stackage version from xmonad repo itself |
| 2025-05-06 18:49:41 | → | OftenFaded16 joins (~OftenFade@user/tisktisk) |
| 2025-05-06 18:59:59 | <haskellbridge> | <Solid> You can also force stack to use your system's GHC version if you want |
| 2025-05-06 19:08:35 | × | OftenFaded16 quits (~OftenFade@user/tisktisk) (Quit: Client closed) |
| 2025-05-06 19:11:45 | <deebo> | hmm, last weird problem i dont get |
| 2025-05-06 19:11:59 | → | OftenFaded3 joins (~OftenFade@user/tisktisk) |
| 2025-05-06 19:13:39 | <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 | <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 | <deebo> | is a [Char] compatible with String? |
| 2025-05-06 19:15:48 | <geekosaur> | yes, but sadly it doesn't use Strings |
| 2025-05-06 19:16:00 | × | OftenFaded3 quits (~OftenFade@user/tisktisk) (Client Quit) |
| 2025-05-06 19:16:06 | <geekosaur> | turn on the OverloadedStrings extension, it's pretty much the only way to use the dbus bindings |
| 2025-05-06 19:17:01 | → | OftenFaded55 joins (~OftenFade@user/tisktisk) |
| 2025-05-06 19:17:43 | <deebo> | ah that was the weird comment part in the examples |
| 2025-05-06 19:18:28 | <deebo> | but it finally works, after way too much time spent |
| 2025-05-06 19:23:30 | <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 | <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 | <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 | <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 | <deebo> | is `defaultPP` the documented "Default PP" instance? is there a more explicit way of referring to it? |
| 2025-05-06 19:49:11 | <geekosaur> | it's `def` now and all the explicit ways are being removed |
| 2025-05-06 19:49:23 | <geekosaur> | (which imo is a bad thing but the other maintainers went for it) |
| 2025-05-06 19:49:51 | <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 | → | tv joins (~tv@user/tv) |
| 2025-05-06 22:36:15 | × | OftenFaded55 quits (~OftenFade@user/tisktisk) (Quit: Client closed) |
| 2025-05-06 22:55:18 | → | Lears joins (~Leary@user/Leary/x-0910699) |
| 2025-05-06 22:58:28 | × | Leary quits (~Leary@user/Leary/x-0910699) (Read error: Connection reset by peer) |
| 2025-05-07 00:12:37 | → | sajenim joins (~sajenim@user/sajenim) |
| 2025-05-07 02:22:48 | × | td_ quits (~td@i5387093E.versanet.de) (Ping timeout: 268 seconds) |
| 2025-05-07 02:24:04 | → | td_ joins (~td@i5387091E.versanet.de) |
| 2025-05-07 04:43:12 | <deebo> | geekosaur: what is the applet actually supposed to show with the def config, i just see "n $windowtitle", no n+1 or other workspaces, just the active one |
| 2025-05-07 04:43:38 | <deebo> | do i need to name my workspaces or define them explicitly? i just have pretty much defaults for stuff like that |
| 2025-05-07 04:44:29 | <geekosaur> | if you copied mine then that's probably all you see; I use a highly customized config (workspace on each monitor + current workspace layout + current window title) |
| 2025-05-07 04:45:17 | <geekosaur> | if you use `def` without the stuff in the braces you should get all workspaces listed |
| 2025-05-07 04:47:38 | <geekosaur> | also it'll use brackets instead of markup to indicate the current and visible workspaces |
| 2025-05-07 04:48:53 | <geekosaur> | mine is probably only worth copying if you have multiple monitors and you assign specific workspaces to specific apps/activities such that you don't care about ppHiddenNoWindows etc. |
| 2025-05-07 04:58:36 | <deebo> | the actual config is from the applets example, mostly just wondering what's possible, if i even want to use this in the end :) |
| 2025-05-07 04:59:34 | <geekosaur> | most of the documentation should be in the PP module I linked |
| 2025-05-07 04:59:40 | <geekosaur> | it's fairly flexible |
| 2025-05-07 05:00:59 | <deebo> | it doesn't even show firefox's title until i e.g. create a new tab |
| 2025-05-07 05:01:07 | <geekosaur> | the one thing you sometimes need to watch out for is that most of the PP functions are pure, so if you want them to depend on something else you need to compute that before calling dynamicLogWithPP |
| 2025-05-07 05:02:19 | <geekosaur> | that sounds like a firefox problem, as the title should be obtained from firefox when you call dynamicLogWithPP |
| 2025-05-07 05:03:09 | <geekosaur> | firefox and to some extent chromium both have the problem that things like titles don't actually get set until all the JS has run |
| 2025-05-07 05:03:43 | <deebo> | yeah have to set it up on my work laptop to do more testing |
| 2025-05-07 05:23:20 | <haskellbridge> | <Solid> You can just write "def" and the type system will pick the right instance; not sure what you mean by "more explicit" |
| 2025-05-07 05:26:47 | × | deebo quits (~globe@stonebay32.com) (Ping timeout: 252 seconds) |
| 2025-05-07 05:26:55 | → | deebo joins (~globe@stonebay32.com) |
| 2025-05-07 05:42:26 | <deebo> | solid, as a "regular" programmer, 'def' is magic XMonad.Hooks.StatusBar.PP.Default would be "explicit" |
| 2025-05-07 05:43:02 | <haskellbridge> | <Solid> I guess you can do "(def :: PP)" |
| 2025-05-07 05:43:23 | <haskellbridge> | <Solid> ergh, maybe "Default PP" |
| 2025-05-07 05:46:18 | <deebo> | do browsers set information about their popups? outlook recently started doing this annoying popup login thing, wondering if there's some info in the popup that i could use to float it |
| 2025-05-07 05:58:38 | <haskellbridge> | <Solid> try to "xprop" it and see whether there's anything useful there |
| 2025-05-07 06:16:56 | <deebo> | problem is it vanishes as fast as it appears |
| 2025-05-07 06:17:07 | <deebo> | can i somehow hook xprop to be called for new windows and logged |
| 2025-05-07 06:17:52 | <deebo> | outlook used to log you out after session ended, now it just shows a status bar "session ended, [login]", pressing the button just opens a popup |
| 2025-05-07 06:44:55 | <haskellbridge> | <Solid> I guess you could really do an xprop call for _every_ new window and try to find the right one in the logs |
| 2025-05-07 07:16:41 | → | mc47 joins (~yecinem@host-212-114-138-22.customer.m-online.net) |
| 2025-05-07 07:26:18 | × | sajenim quits (~sajenim@user/sajenim) (Quit: WeeChat 4.4.3) |
| 2025-05-07 07:45:07 | → | darkstardevx joins (~darkstard@50.53.3.2) |
| 2025-05-07 07:45:25 | × | darkstardevx quits (~darkstard@50.53.3.2) (Remote host closed the connection) |
| 2025-05-07 08:06:01 | × | ft quits (~ft@p4fc2a6e6.dip0.t-ipconnect.de) (Quit: leaving) |
| 2025-05-07 08:20:03 | → | sajenim joins (~sajenim@user/sajenim) |
| 2025-05-07 09:42:54 | × | mc47 quits (~yecinem@host-212-114-138-22.customer.m-online.net) (Ping timeout: 272 seconds) |
| 2025-05-07 11:00:44 | → | mc47 joins (~yecinem@host-212-114-138-22.customer.m-online.net) |
| 2025-05-07 11:05:03 | → | rascasse joins (~rascasse@user/diep) |
All times are in UTC.