2022/07/09

2022-07-09 01:57:33 +0000Shadorain(~Shadorain@pool-108-53-7-39.nwrknj.fios.verizon.net)
2022-07-09 02:03:43 +0000banc(banc@gateway/vpn/airvpn/banc) (Ping timeout: 256 seconds)
2022-07-09 02:05:43 +0000 <Shadorain> hey! so I recently compiled and found that there was a few breaking changes in my config. Main one being EwmhDesktops. I have a slightly custom setup that worked great until this and i dont exactly know how to fix it
2022-07-09 02:06:08 +0000 <Shadorain> i have 3 mons and separate workspaces per each, and I want my loghook to only display one monitors worth. This was all setup
2022-07-09 02:06:46 +0000telser(~quassel@user/telser)
2022-07-09 02:08:29 +0000 <Shadorain> ```myLogHook = do
2022-07-09 02:08:29 +0000 <Shadorain>     ewmhDesktopsEventHookCustom (unmarshallWindowSpace . Main.workspacesOn 0 . namedScratchpadFilterOutWorkspace)
2022-07-09 02:08:30 +0000 <Shadorain>     logger``` is what i used to have but both the named scratchpad and ewmh functions were deprecated
2022-07-09 02:09:06 +0000 <Shadorain> i was able to figure out how to add the namedScratchpad filter but cant for my other two pieces in that
2022-07-09 02:09:22 +0000 <Shadorain> oops that had a `map` before the unmarshallWindowSpace btw
2022-07-09 02:22:40 +0000banc(banc@gateway/vpn/airvpn/banc)
2022-07-09 02:28:03 +0000jao(~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) (Ping timeout: 276 seconds)
2022-07-09 02:32:36 +0000td_(~td@94.134.91.254) (Ping timeout: 276 seconds)
2022-07-09 02:34:04 +0000td_(~td@muedsl-82-207-238-037.citykom.de)
2022-07-09 02:43:17 +0000 <Shadorain> sorry i got that wrong, it originally was `ewmhDesktopsLogHookCustom (map unmarshallWindowSpace . Main.workspacesOn 0 . namedScratchpadFilterOutWorkspace)` slightly different than above
2022-07-09 03:15:02 +0000Shadorain(~Shadorain@pool-108-53-7-39.nwrknj.fios.verizon.net) (Quit: Client closed)
2022-07-09 03:17:27 +0000Shadorain(~Shadorain@pool-108-53-7-39.nwrknj.fios.verizon.net)
2022-07-09 03:18:38 +0000Shadorain(~Shadorain@pool-108-53-7-39.nwrknj.fios.verizon.net) (Client Quit)
2022-07-09 04:40:06 +0000doppo(~doppo@2604:180::e0fc:a07f) (Read error: Connection reset by peer)
2022-07-09 04:40:40 +0000doppo(~doppo@2604:180::e0fc:a07f)
2022-07-09 04:57:04 +0000 <scotabroad[m]> Chromium-based apps and Electron-based apps don't seem to work. Both app types take a while to open, and even then, I can't interact with them (like searching or typing). I am on Fedora 36 with Xmonad 0.17.0 (and yes, I have ewmhFullscreen and ewmh in that order in my xmonad.hs)
2022-07-09 05:12:03 +0000 <scotabroad[m]> Nevermind, disabling hardware acceleration fixed the issue for the Chromium apps (and probably will be needed for others too), though this required logging into GNOME to disable the option
2022-07-09 06:03:40 +0000sagax(~sagax_nb@user/sagax) (Remote host closed the connection)
2022-07-09 06:10:49 +0000Kaladin(~Kaladin@157-131-200-16.fiber.dynamic.sonic.net)
2022-07-09 06:13:08 +0000 <Kaladin> hello #xmonad, I recently updated to 0,17 from 0.15 and had to make changes related to ewmh and now I am having all of my apps flickering, especially noticable at the border which changes color for focus, I seem to be able to use them fine but can anyone help me stop the flickering?
2022-07-09 06:13:22 +0000 <Kaladin> I lwill post the specific change that started it...
2022-07-09 06:15:29 +0000 <Kaladin> myConfig xmproc = ewmh ( docks def ) {...} ... became ... myConfig xmproc = ewmhFullscreen $ ewmh $ docks def {...}
2022-07-09 06:15:43 +0000 <Kaladin> so basically jsut trying to add back in ewmhFullscreen
2022-07-09 06:15:49 +0000 <Kaladin> did I do it wrong?
2022-07-09 06:16:39 +0000sagax(~sagax_nb@user/sagax)
2022-07-09 06:17:10 +0000 <Kaladin> in 0.15 the fullscreenEventHook was used elsewhere .. "myEventHook =..."
2022-07-09 06:26:09 +0000Kaladin(~Kaladin@157-131-200-16.fiber.dynamic.sonic.net) (Quit: Leaving)
2022-07-09 06:28:36 +0000Kaladin(~Kaladin@157-131-200-16.fiber.dynamic.sonic.net)
2022-07-09 06:48:00 +0000 <Kaladin> reverted and flickering gone again but of course now apps don't fullscreen
2022-07-09 07:25:49 +0000Kaladin(~Kaladin@157-131-200-16.fiber.dynamic.sonic.net) (Quit: Leaving)
2022-07-09 08:19:54 +0000chomwitt(~chomwitt@2a02:587:dc0d:4a00:c5c0:a118:2df4:ea86)
2022-07-09 09:02:51 +0000alternateved(~alternate@5.253.206.94)
2022-07-09 09:53:50 +0000Zedgamer9128[m](~zedgamer9@2001:470:69fc:105::2:3ee4)
2022-07-09 09:57:14 +0000 <Zedgamer9128[m]> Hello i want to run a picom with different config when more than one windows are open and different when only one window is open
2022-07-09 09:59:19 +0000 <Zedgamer9128[m]> like how spacingRaw does
2022-07-09 09:59:34 +0000 <Zedgamer9128[m]> it adds gaps when more than two windows are open
2022-07-09 10:42:06 +0000mvk(~mvk@2607:fea8:5ce3:8500::909a)
2022-07-09 11:24:43 +0000jao(~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net)
2022-07-09 12:33:59 +0000 <geekosaur> that's doable with a custom layout modifier, but it would be really distracting
2022-07-09 12:59:37 +0000Shadorain(~Shadorain@pool-108-53-7-39.nwrknj.fios.verizon.net)
2022-07-09 13:00:44 +0000Shadorain(~Shadorain@pool-108-53-7-39.nwrknj.fios.verizon.net) (Client Quit)
2022-07-09 13:09:16 +0000alternateved(~alternate@5.253.206.94) (Ping timeout: 244 seconds)
2022-07-09 13:11:47 +0000 <Zedgamer9128[m]> can xmonad layout be exported to fish shell
2022-07-09 13:12:18 +0000 <Zedgamer9128[m]> like run a spawn command `fish -c set -U layout $win`
2022-07-09 13:12:46 +0000 <Zedgamer9128[m]> where $win is a variable for xmonad layout and it update upon layout change
2022-07-09 13:13:16 +0000 <Zedgamer9128[m]> <Zedgamer9128[m]> "Hello i want to run a picom with..." <- i kind of done this fish shell here is the code
2022-07-09 13:13:28 +0000 <Zedgamer9128[m]> ```
2022-07-09 13:14:29 +0000 <Zedgamer9128[m]> * ```... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/6a9d3fa69cc40660f5350060d8cff4a2bd03…)
2022-07-09 13:14:48 +0000 <Zedgamer9128[m]> * done this from fish shell
2022-07-09 13:15:56 +0000 <Zedgamer9128[m]> but it doesnt change when the layout changes to Full because the apps are still open but only one window is shown
2022-07-09 13:16:04 +0000 <Zedgamer9128[m]> thats why i want to export the layout
2022-07-09 13:21:38 +0000 <geekosaur> you would do that in the logHook, probably with a custom dynamicLogString call. note that it's highly unlikely that fish variables are shared in such a way that a spawn could update them for a running shell
2022-07-09 13:22:24 +0000 <Zedgamer9128[m]> geekosaur: universal variable -U works
2022-07-09 13:23:17 +0000 <Zedgamer9128[m]> any example to do that
2022-07-09 13:23:32 +0000 <Zedgamer9128[m]> i dont really know haskell or xmonad enough
2022-07-09 13:28:33 +0000 <geekosaur> dynamicLogString def {ppOrder = \(_:l:_) -> [l]; ppOutput = spawn "…"}
2022-07-09 13:30:35 +0000 <Zedgamer9128[m]> geekosaur: and where would i put that
2022-07-09 13:30:53 +0000 <Zedgamer9128[m]> in myXmobarPP
2022-07-09 13:30:57 +0000 <Zedgamer9128[m]> * in myXmobarPP ?
2022-07-09 13:32:09 +0000 <geekosaur> hm, that wasn't quite right. but it goes in the logHook
2022-07-09 13:33:30 +0000 <geekosaur> void (dynamicLogString def {ppLayout = show; ppOrder = \(_:l:_) -> [l]; ppOutput = \s -> spawn $ "fish -c set -U " ++ s ++ " $win"})
2022-07-09 13:33:48 +0000 <geekosaur> if I understand your earlier example correctly, which I probably don't because I don't know fish
2022-07-09 13:39:17 +0000 <geekosaur> in particular I am almost certain that needs some extra quotes to work. did you test that command with fish -c to verify it works?
2022-07-09 13:42:25 +0000 <Zedgamer9128[m]> this error is happening
2022-07-09 13:42:25 +0000 <Zedgamer9128[m]> ```
2022-07-09 13:42:25 +0000 <Zedgamer9128[m]> xmonad.hs:37:44: error: parse error on input ‘;’
2022-07-09 13:42:58 +0000 <geekosaur> that doesn't surprise me, I never remember whether that is , or ;
2022-07-09 13:43:17 +0000 <geekosaur> void (dynamicLogString def {ppLayout = show, ppOrder = \(_:l:_) -> [l], ppOutput = \s -> spawn $ "fish -c set -U " ++ s ++ " $win"})
2022-07-09 13:43:27 +0000 <geekosaur> I still think the spawn will be wrong
2022-07-09 13:44:28 +0000 <Zedgamer9128[m]> the full fish command is "fish -c 'set -U layout Full'"
2022-07-09 13:44:49 +0000 <geekosaur> okay, that is doable
2022-07-09 13:45:10 +0000 <Zedgamer9128[m]> but will ++ work since you will have to close the quotes
2022-07-09 13:45:27 +0000 <geekosaur> void (dynamicLogString def {ppLayout = show, ppOrder = \(_:l:_) -> [l], ppOutput = \s -> spawn $ "fish -c 'set -U layout " ++ s ++ "'"})
2022-07-09 13:45:40 +0000 <geekosaur> ++ doesn't care if the string includes quotes
2022-07-09 13:46:03 +0000 <geekosaur> and haskell is not a shell, it doesn't track different kinds of quotes like that
2022-07-09 13:46:48 +0000 <geekosaur> also note that the layout name is quoted by the `ppLayout` so you shouldn't need to worry about that either
2022-07-09 13:47:29 +0000 <Zedgamer9128[m]> xmonad.hs:38:1: error:... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/7e9758857c95f93c2b01ea3ae25551f63d2b…)
2022-07-09 13:47:32 +0000 <Zedgamer9128[m]> new error
2022-07-09 13:48:02 +0000 <geekosaur> once again: this goes in the logHook
2022-07-09 13:48:06 +0000 <geekosaur> not at the top level
2022-07-09 13:48:27 +0000 <geekosaur> https://github.com/geekosaur/xmonad.hs/blob/skkukuk/xmonad.hs#L127
2022-07-09 13:51:31 +0000 <Zedgamer9128[m]> xmonad.hs:47:17: error:
2022-07-09 13:51:31 +0000 <Zedgamer9128[m]> Variable not in scope: void :: X String -> X ()
2022-07-09 13:52:32 +0000 <Zedgamer9128[m]> ```
2022-07-09 13:52:44 +0000 <Zedgamer9128[m]> is this right
2022-07-09 13:52:44 +0000 <Zedgamer9128[m]> * ```... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/329e422866ce2f19e45f210418eaa8fea7e3…)
2022-07-09 14:03:12 +0000 <geekosaur> it's right but I forgot void isn't in the Prelude
2022-07-09 14:03:16 +0000 <geekosaur> @index void
2022-07-09 14:03:17 +0000 <lambdabot> Foreign.Marshal.Error, Foreign.Marshal, Foreign, Foreign.Safe, Foreign.Marshal.Safe, Data.Functor, Control.Monad
2022-07-09 14:03:41 +0000 <geekosaur> import Data.Functor at the top, where you should already have an `import XMonad`
2022-07-09 14:07:14 +0000 <Zedgamer9128[m]> no errors but the variable is not shown
2022-07-09 14:07:42 +0000 <geekosaur> actually I think that should have been dynamicLog without the void, but oh well
2022-07-09 14:07:51 +0000 <geekosaur> I don't know how fish works
2022-07-09 14:12:00 +0000 <geekosaur> can you check for errors in ~/.xsession-errors? (unless you're on fedora and then you have to do something with journalctl)
2022-07-09 14:12:35 +0000 <Zedgamer9128[m]> there is no .xsession-errors arch
2022-07-09 14:12:58 +0000 <geekosaur> did you use startx instead of a display manager?
2022-07-09 14:13:12 +0000 <Zedgamer9128[m]> yeah .xinitrc
2022-07-09 14:13:40 +0000 <geekosaur> then it'll be on the original virtual terminal. probably ctrl+alt+f1
2022-07-09 14:14:41 +0000 <Zedgamer9128[m]> geekosaur: sorry it is started by sddm
2022-07-09 14:15:05 +0000 <Zedgamer9128[m]> by a package i think called xinit-xsession
2022-07-09 14:15:20 +0000 <Zedgamer9128[m]> that turn xinit to desktop to launch from sddm
2022-07-09 14:15:40 +0000 <geekosaur> hm. normally that would put the error log in .xsession-errors
2022-07-09 14:18:15 +0000 <geekosaur> okay, looks like sddm uses ~/.local/sddb/xorg-session.log
2022-07-09 14:18:19 +0000 <geekosaur> er
2022-07-09 14:18:28 +0000 <geekosaur> ~/.local/sddm/xorg-session.log
2022-07-09 14:22:13 +0000 <Zedgamer9128[m]> i made .xsession-errors by editing xinitrc to `exec xmonad 2> ~/.xsession-errors
2022-07-09 14:22:23 +0000 <Zedgamer9128[m]> the only errors i see are gtk and chrome
2022-07-09 14:23:01 +0000qther(~qther@138.75.66.60)
2022-07-09 14:23:07 +0000 <geekosaur> I don't know if fish sends errors to stderr,m it differs from standard shells in so many other ways…
2022-07-09 14:27:24 +0000 <geekosaur> the other thing to check is ~/.config/fish/fish_variables
2022-07-09 14:31:31 +0000 <Zedgamer9128[m]> geekosaur: no layout variable
2022-07-09 14:31:57 +0000 <Zedgamer9128[m]> i dont think the fish command is running probably because of ++
2022-07-09 14:32:08 +0000 <geekosaur> why do you suspect the ++?
2022-07-09 14:32:12 +0000 <Zedgamer9128[m]> sorry not that
2022-07-09 14:32:33 +0000 <Zedgamer9128[m]> i changed the command to killall yakuake to see if it will kill and it didnt
2022-07-09 14:32:58 +0000 <Zedgamer9128[m]> so the fish script is not at all running
2022-07-09 14:33:02 +0000 <geekosaur> ppOutput not running at all, hm, suppose that's possible/ hold on
2022-07-09 14:33:23 +0000 <geekosaur> dynamicLog def {ppLayout = show, ppOrder = \(_:l:_) -> [l], ppOutput = \s -> spawn $ "fish -c 'set -U layout " ++ s ++ "'"}
2022-07-09 14:33:50 +0000 <Zedgamer9128[m]> put it in logHook?
2022-07-09 14:33:56 +0000 <geekosaur> (remove the void wrapping the whole thing and change dynamicLogString to dynamicLog, I think ppOutput is not used with dynamicLogString)
2022-07-09 14:33:59 +0000 <geekosaur> yes, same place
2022-07-09 14:35:08 +0000 <geekosaur> > (\s -> id $ "fish -c 'set -U layout " ++ show s ++ "'") "Full"
2022-07-09 14:35:10 +0000 <lambdabot> "fish -c 'set -U layout \"Full\"'"
2022-07-09 14:35:22 +0000 <geekosaur> > text $ (\s -> id $ "fish -c 'set -U layout " ++ show s ++ "'") "Full"
2022-07-09 14:35:24 +0000 <lambdabot> fish -c 'set -U layout "Full"'
2022-07-09 14:35:51 +0000Zedgamer9128[m]sent a code block: https://libera.ems.host/_matrix/media/r0/download/libera.chat/2dee442a204474a6f7f12381ac1645add6ec…
2022-07-09 14:36:47 +0000 <geekosaur> oh, it's dynamicLogWithPP
2022-07-09 14:37:00 +0000 <geekosaur> the old API is a bit of a mess, but the new API doesn't expose this stuff
2022-07-09 14:37:38 +0000 <Zedgamer9128[m]> whoa it worked thank you so much
2022-07-09 14:38:12 +0000 <geekosaur> might have a problem if you switch layouts (or workspaces if you use PerWorkspace) too quickly, since spawn is asynchronous
2022-07-09 14:40:10 +0000 <Zedgamer9128[m]> well only the killall command worked
2022-07-09 14:42:28 +0000 <geekosaur> if killall worked but the fish command didn't, you'll have to find someone who knows fish better, I think
2022-07-09 14:42:44 +0000 <geekosaur> I verified the command that it's sending above
2022-07-09 14:42:52 +0000 <geekosaur> and it looks like what you told me
2022-07-09 14:43:19 +0000 <geekosaur> > text $ ((\s -> id $ "fish -c 'set -U layout " ++ s ++ "'") . show) "Full"
2022-07-09 14:43:21 +0000 <lambdabot> fish -c 'set -U layout "Full"'
2022-07-09 14:43:36 +0000qbt(~qbt@user/edun)
2022-07-09 14:44:50 +0000 <Zedgamer9128[m]> yeah the above cmd is right
2022-07-09 14:48:57 +0000 <Zedgamer9128[m]> i tried running a echo cmd
2022-07-09 14:49:09 +0000 <Zedgamer9128[m]> spawn $ "fish -c 'echo " ++ s ++ " > ~/fi'"
2022-07-09 14:49:15 +0000 <Zedgamer9128[m]> still didnt work
2022-07-09 14:49:25 +0000 <Zedgamer9128[m]> so i think ++ maybe?
2022-07-09 14:49:43 +0000 <geekosaur> this is where you check the session log
2022-07-09 14:49:51 +0000 <geekosaur> ~/.local/sddm/xorg-session.log
2022-07-09 14:51:59 +0000 <Zedgamer9128[m]> sighs
2022-07-09 14:52:08 +0000 <Zedgamer9128[m]> just because of one space
2022-07-09 14:52:54 +0000 <Zedgamer9128[m]> as i said i redirected all error to .xsession-errors
2022-07-09 14:53:24 +0000 <Zedgamer9128[m]> and when i opened that
2022-07-09 14:53:43 +0000Zedgamer9128[m]sent a code block: https://libera.ems.host/_matrix/media/r0/download/libera.chat/e7c278985245e2970676089a6bdfc4096767…
2022-07-09 14:54:19 +0000 <Zedgamer9128[m]> so because there was no space between layout and spacing it didnt work
2022-07-09 14:54:38 +0000 <Zedgamer9128[m]> well thanks for help and also for xsession errors idea
2022-07-09 15:08:03 +0000qther(~qther@138.75.66.60) (Quit: Client closed)
2022-07-09 15:59:31 +0000 <Zedgamer9128[m]> okay one last thing is trayer
2022-07-09 16:01:50 +0000 <Zedgamer9128[m]> okay so trayer has and --distancefrom where a direction can be chose but only one but i want to distancefrom top and right to make it fit in xmobar like how tray has wifi after date time texts that is the thing i want to do but looks like it is not possible in trayer or is it?
2022-07-09 16:02:26 +0000 <Zedgamer9128[m]> * okay so trayer has a --distancefrom cmd where a direction can be chose but only one but i want to distancefrom top and right to make it fit in xmobar like how tray has wifi after date time texts that is the thing i want to do but looks like it is not possible in trayer or is it?
2022-07-09 16:02:39 +0000 <Zedgamer9128[m]> so should i see other sys tray
2022-07-09 16:05:40 +0000 <geekosaur> I think you can repeat it? --distancefrom top ... --distancefrom right ...
2022-07-09 16:06:04 +0000 <Zedgamer9128[m]> geekosaur: i tried but only the last one works
2022-07-09 16:08:31 +0000 <geekosaur> oh, looks like you need the trayer-srg fork for that
2022-07-09 16:08:38 +0000 <geekosaur> also gets you multimonitor support
2022-07-09 16:09:27 +0000 <Zedgamer9128[m]> geekosaur: i have trayer-srg installed
2022-07-09 16:09:55 +0000 <geekosaur> trayer-srg, at least as on github, claims to support double --distancefrom parameters
2022-07-09 16:10:54 +0000 <Zedgamer9128[m]> where
2022-07-09 16:10:57 +0000 <geekosaur> https://github.com/sargon/trayer-srg/commit/4506241b4e60fe12e7c119a21347a158b93e13d6
2022-07-09 16:11:56 +0000 <Zedgamer9128[m]> ill try installing the -git version from aur
2022-07-09 16:12:19 +0000 <Zedgamer9128[m]> maybe it is updated from the arch repo
2022-07-09 16:14:05 +0000 <Zedgamer9128[m]> oops looks like i have to use comma
2022-07-09 16:17:53 +0000 <Zedgamer9128[m]> okay had to installed the trayer-srg-git from aur and now its working thanks
2022-07-09 16:26:38 +0000mvk(~mvk@2607:fea8:5ce3:8500::909a) (Ping timeout: 244 seconds)
2022-07-09 16:46:15 +0000qbt(~qbt@user/edun) (Quit: WeeChat 3.5)
2022-07-09 17:28:10 +0000tjmciver_(~tjmciver@cpe-172-101-39-156.maine.res.rr.com)
2022-07-09 17:30:30 +0000tjmciver(~tjmciver@cpe-172-101-39-156.maine.res.rr.com) (Ping timeout: 240 seconds)
2022-07-09 18:01:24 +0000tjmciver_(~tjmciver@cpe-172-101-39-156.maine.res.rr.com) (Ping timeout: 272 seconds)
2022-07-09 18:24:43 +0000tjmciver(~tjmciver@cpe-172-101-32-70.maine.res.rr.com)
2022-07-09 19:53:00 +0000mvk(~mvk@2607:fea8:5ce3:8500::909a)
2022-07-09 19:55:51 +0000jludwig(~justin@li657-110.members.linode.com) (Quit: ZNC - https://znc.in)
2022-07-09 19:56:47 +0000jludwig(~justin@li657-110.members.linode.com)
2022-07-09 20:10:33 +0000jludwig(~justin@li657-110.members.linode.com) (Read error: Connection reset by peer)
2022-07-09 20:13:30 +0000jludwig(~justin@li657-110.members.linode.com)
2022-07-09 20:16:19 +0000tjmciver(~tjmciver@cpe-172-101-32-70.maine.res.rr.com) (Remote host closed the connection)
2022-07-09 20:16:42 +0000tjmciver(~tjmciver@cpe-172-101-32-70.maine.res.rr.com)
2022-07-09 20:20:43 +0000jludwig(~justin@li657-110.members.linode.com) (Quit: ZNC - https://znc.in)
2022-07-09 20:21:41 +0000jludwig(~justin@li657-110.members.linode.com)
2022-07-09 20:22:39 +0000tjmciver_(~tjmciver@cpe-172-101-32-70.maine.res.rr.com)
2022-07-09 20:25:20 +0000tjmciver(~tjmciver@cpe-172-101-32-70.maine.res.rr.com) (Ping timeout: 244 seconds)
2022-07-09 20:28:25 +0000tjmciver_tjmciver
2022-07-09 20:30:20 +0000tjmciver(~tjmciver@cpe-172-101-32-70.maine.res.rr.com) (Read error: Connection reset by peer)
2022-07-09 20:30:37 +0000tjmciver(~tjmciver@cpe-172-101-32-70.maine.res.rr.com)
2022-07-09 21:07:11 +0000tjmciver_(~tjmciver@cpe-172-101-32-70.maine.res.rr.com)
2022-07-09 21:09:31 +0000tjmciver(~tjmciver@cpe-172-101-32-70.maine.res.rr.com) (Ping timeout: 256 seconds)
2022-07-09 21:22:18 +0000chomwitt(~chomwitt@2a02:587:dc0d:4a00:c5c0:a118:2df4:ea86) (Ping timeout: 240 seconds)
2022-07-09 21:49:15 +0000 <zawaken-> hey, after upgrading to 0.17+ of xmonad(-contrib) on my gentoo VM, I can't seem to get the haskell-dbus module to work, xmonad and x instantly crashes if I have all my DBus configuration enabled, it does not do this on Arch or RHEL, the dbus service in OpenRC is enabled. Just importing the DBus library doesn't crash anything. I am absolutely horrible at haskell, but I doubt theres something wrong
2022-07-09 21:49:17 +0000 <zawaken-> with my xmonad.hs, considering it works on Arch and RHEL
2022-07-09 21:49:34 +0000 <zawaken-> Any thoughts?
2022-07-09 21:50:36 +0000 <zawaken-> If it helps I can send my configuration, even though there shouldn't be anything wrong with it, apart from horrible code that is.
2022-07-09 21:51:13 +0000 <geekosaur[m]> what version of ghc is it using?
2022-07-09 21:51:28 +0000 <zawaken-> 8.10.7
2022-07-09 21:51:44 +0000tjmciver_(~tjmciver@cpe-172-101-32-70.maine.res.rr.com) (Remote host closed the connection)
2022-07-09 21:51:44 +0000 <zawaken-> Stackage LTS 18.23 I believe
2022-07-09 21:52:23 +0000 <geekosaur[m]> hm. so it's not the heap corruption crash then. (doublecheck though, xmonad tickles a heap corruption bug in ghc >= 9.0)
2022-07-09 21:53:10 +0000 <zawaken-> The crash happens after a couple of seconds after I type in startx.
2022-07-09 21:54:03 +0000 <geekosaur[m]> yes, if it were the heap corruption thing it would probably happen after receiving a couple of X events, specifically after the first gc
2022-07-09 21:55:53 +0000 <zawaken-> It does crash faster it seems when I try to do anything, such as open a terminal, but it does crash automatically after a bit
2022-07-09 21:56:08 +0000 <zawaken-> I'm not sure I understand the heap corruption thing though
2022-07-09 21:57:08 +0000 <geekosaur[m]> it's complicated. we allocate memory for an X event ahead of time and reuse it. the bug is ghc doesn't realize it's still in use and gc-s it, after which the next X event received trashes the heap
2022-07-09 21:57:31 +0000 <geekosaur[m]> https://gitlab.haskell.org/ghc/ghc/-/issues/21708
2022-07-09 21:58:25 +0000 <zawaken-> Thanks for the link :)
2022-07-09 21:58:53 +0000 <geekosaur[m]> we have a patch that seems to work around it, although it needs more testing
2022-07-09 21:59:10 +0000 <geekosaur[m]> and the bug is a blocker for 9.4 release so it will at some point be fixed in ghc
2022-07-09 22:00:24 +0000 <zawaken-> If this bug were to happen, would it be regardless of how your config looks? because I have XMonad up on my VM now, but without Dbus (I use it for Polybar and eww)
2022-07-09 22:00:32 +0000 <geekosaur[m]> but if you're on 8.10.7 then this can't be the issue since it involves optimization of join points and 8.10.7 doesn't have join points
2022-07-09 22:01:53 +0000 <zawaken-> I can send you a link to my dotfile repository if you want to see exactly what commit I am on as well as my config.
2022-07-09 22:02:26 +0000 <zawaken-> It is the same across systems though, so this might be some quirky Gentoo dbus behaviour
2022-07-09 22:02:38 +0000 <geekosaur[m]> that's unclear. one user can reproduce it with any non-default config (`xmonad def` being the default config). others can only reproduce it under specific circumstances. it seems to rely on heap layout, which makes sense because if it can't rearrange the heap to reclaim the memory for something else then there wouldn't be a problem (this seems to happen with my config, for example; I've never managed to reproduce the crash)
2022-07-09 22:03:15 +0000 <geekosaur[m]> do you have a session log? it may depend on how your session starts, but it's often `~/.xsession-errors`
2022-07-09 22:04:37 +0000 <zawaken-> ~/.xsession-errors doesn't exist for me, but I can cook up a Xorg.0.log, aswell as a xmonad.erros
2022-07-09 22:04:42 +0000 <zawaken-> xmonad.errors
2022-07-09 22:05:34 +0000noex_(~null@2600:8804:14e0:104::1e13) (Ping timeout: 244 seconds)
2022-07-09 22:07:13 +0000chomwitt(~chomwitt@2a02:587:dc0d:4a00:eb52:69a9:fa15:908e)
2022-07-09 22:07:31 +0000noex_(~null@2600:8804:14e0:104:8804:14e0:104:0)
2022-07-09 22:12:45 +0000 <geekosaur[m]> neither of those is the right log (the first is the server log, the second is for recompilation errors)
2022-07-09 22:13:38 +0000 <geekosaur[m]> if you use `startx` then any errors will be on the original console (try CTRL+ALT+F1). otherwise you'll have to look up the display manager you use and see where it logs session errors
2022-07-09 22:15:23 +0000mvk(~mvk@2607:fea8:5ce3:8500::909a) (Ping timeout: 244 seconds)
2022-07-09 22:16:12 +0000 <zawaken-> https://wiki.archlinux.org/title/xorg#Session_log_redirection this should suffice no?
2022-07-09 22:17:45 +0000 <zawaken-> I'll see if I can get something out of that.
2022-07-09 22:20:33 +0000 <zawaken-> I think what might have happened, is that I have used a dbus-launch command that doesn't work as it should.
2022-07-09 22:20:44 +0000 <zawaken-> It seems like it might work as it should now
2022-07-09 22:21:16 +0000 <zawaken-> So pebcak
2022-07-09 22:22:02 +0000 <geekosaur[m]> maybe. seems like the dbus bindings should handle that better
2022-07-09 22:23:27 +0000 <geekosaur[m]> looks like they should at least throw an exception, but the example code doesn't pay attention to exceptions or error returns
2022-07-09 22:23:39 +0000 <zawaken-> It doesn't work if I put it straight as 'exec xmonad', but with exec dbus-launch --sh-syntax --exit-with-session xmonad it seems to work well
2022-07-09 22:25:01 +0000 <zawaken-> this was the part that didn't work, and now I understand why: DESKTOP="dbus-launch --sh-syntax --exit-with-session xmonad" \n exec "${DESKTOP}"
2022-07-09 22:25:15 +0000 <geekosaur[m]> hm, `--sh-syntax` and `--exit-with-session` shouldn't do anything there. they're intended for using it as `eval dbus-launch --sh-syntax --exit-with-session`
2022-07-09 22:25:28 +0000 <geekosaur[m]> (`eval`, not `exec`)
2022-07-09 22:26:17 +0000 <zawaken-> I think I got it from a bug report somewhere, a good while ago, and he used it, dbus-launch xmonad should probably be enough then?
2022-07-09 22:26:41 +0000 <geekosaur[m]> yes, if you';re not running anything else that might want access to dbus
2022-07-09 22:27:48 +0000 <zawaken-> Yeah only xmonad as far as I know
2022-07-09 22:28:13 +0000 <geekosaur[m]> but if you launch a couple of terminals in the background and then exec xmonad, those terminals wouldn't have access to dbus unless you used the `eval` thing
2022-07-09 22:28:56 +0000 <zawaken-> Ah, makes sense. My .xinitrc is quite simple
2022-07-09 22:31:52 +0000 <zawaken-> Thank you very much for the help :D
2022-07-09 22:44:06 +0000mvk(~mvk@2607:fea8:5ce3:8500::909a)
2022-07-09 22:57:28 +0000zawaken-zawaken
2022-07-09 22:59:48 +0000chomwitt(~chomwitt@2a02:587:dc0d:4a00:eb52:69a9:fa15:908e) (Ping timeout: 276 seconds)
2022-07-09 23:47:03 +0000steve__(~steve@ool-182c2b80.dyn.optonline.net) (Ping timeout: 256 seconds)