Home freenode/#xmonad: Logs Calendar

Logs on 2020-12-04 (freenode/#xmonad)

00:00:53 <dminuoso> Sadly waymonad is currently dead, but that's just a matter of someone picking up the stick
00:04:42 isgy joins (~jy@82.38.116.187)
00:06:02 <sfrique> i see, i am asking because i'm currently on i3 for a few years now, was planing on changing to some other tiling with auto tiling, i started to play with xmonad and got quite a few things working, but for a future proof i don't see how i can go with xmonad if there is now wayland plan =/
00:06:27 <sfrique> and that also apply to others tiling wm
00:09:51 × isgy quits (~jy@82.38.116.187) (Quit: WeeChat 2.6)
00:10:09 isgy joins (~jy@82.38.116.187)
00:11:44 <Irishluck83> i'm sure they will need to move to wayland when they have too
00:14:49 × isgy quits (~jy@82.38.116.187) (Client Quit)
00:15:05 isgy joins (~jy@82.38.116.187)
00:15:31 × isgy quits (~jy@82.38.116.187) (Client Quit)
00:16:06 <xaltsc> Is waymonad going anywhere btw ? Looks like developement has stalled almost two years ago now..
00:16:24 isgy joins (~jy@82.38.116.187)
00:18:00 <Liskni_si> it'd be a lot easier to maintain wayland xmonad if there was a generic wayland compositor with an interface to run window managers in a separate process
00:18:45 <Liskni_si> (or at least that's my feeling about it; no real experience with wayland apart from looking at waymonad and seeing all the complicated stuff that someone else should maintain :-))
00:23:04 × isgy quits (~jy@82.38.116.187) (Ping timeout: 260 seconds)
01:04:42 <vrs> waymonad was someone's personal project, I was going to look into it but yeah
01:26:05 × xaltsc quits (~xaltsc@unaffiliated/xaltsc) (Ping timeout: 240 seconds)
01:54:56 × notis quits (~notis@185.51.134.222) (Ping timeout: 240 seconds)
02:11:12 materiyolo joins (~materiyol@112.204.171.225)
02:11:57 <sfrique> thanks for the info!
02:12:14 <Hash> I need some tips and tricks on how to use xmond more effectively
02:12:16 <Hash> :)
02:12:30 <Hash> If I don't even know what all one can do, how can I do it
02:12:40 <sfrique> i just installed it, feel free to ask whatever you need
02:12:59 <Irishluck83> its however you want to use it Hash
02:13:23 <Hash> https://termbin.com/co36
02:13:27 <Hash> Here is my current config
02:14:05 <sfrique> One thing i wanted to test but never got the chance, is to define the layout based on the screen it's on
02:14:40 <Hash> , focusFollowsMouse = True
02:14:46 <Hash> The best setting in the world.
02:15:43 <Hash> , ("M-`", runOrRaisePrompt def)
02:15:45 <Hash> And that
02:17:28 <Hash> https://wiki.haskell.org/Xmonad/General_xmonad.hs_config_tips#Managing_Windows_aka_Manage_Hooks⇧
02:17:30 <Hash> Been reading this
02:17:31 <Hash> Learning more
02:46:37 PacBilly joins (~PacBilly@2600:6c58:6400:11fc:b167:f9ce:862e:3091)
02:47:10 × materiyolo quits (~materiyol@112.204.171.225) (Quit: WeeChat 2.9)
03:08:38 × PacBilly quits (~PacBilly@2600:6c58:6400:11fc:b167:f9ce:862e:3091) (Quit: Textual IRC Client: www.textualapp.com)
03:18:38 × davemq quits (~davemq@2600:1700:b1c0:2580:cff1:7c10:c5a4:57e0) (Ping timeout: 264 seconds)
03:22:38 davemq joins (~davemq@99-179-0-50.lightspeed.austtx.sbcglobal.net)
03:35:37 × theDon quits (~td@muedsl-82-207-238-021.citykom.de) (Ping timeout: 264 seconds)
03:37:08 theDon joins (~td@94.134.91.27)
03:50:25 <Hash> https://github.com/zaxtax/xmonad-sessions
03:50:28 <Hash> Anyone ever ued this?
03:53:34 × sfrique quits (~sfrique@189.122.177.88) (Ping timeout: 260 seconds)
04:45:57 abhixec joins (~abhixec@c-67-169-141-95.hsd1.ca.comcast.net)
04:54:48 sagax joins (~sagax_nb@213.138.71.146)
05:01:13 × ericsagn1 quits (~ericsagne@2405:6580:0:5100:5edc:6c03:7218:210e) (Ping timeout: 272 seconds)
05:17:29 Nahra joins (~Nahra@unaffiliated/nahra)
05:27:56 × ddellacosta quits (dd@gateway/vpn/mullvad/ddellacosta) (Ping timeout: 272 seconds)
06:14:23 palo1 joins (~weechat@c-base/crew/palo)
06:17:10 × palo quits (~weechat@c-base/crew/palo) (Ping timeout: 246 seconds)
06:17:10 palo1 is now known as palo
06:38:51 materiyolo joins (~materiyol@112.204.171.225)
06:45:08 × materiyolo quits (~materiyol@112.204.171.225) (Quit: WeeChat 2.9)
07:14:21 ericsagnes joins (~ericsagne@2405:6580:0:5100:43fe:8354:1780:830b)
07:17:47 × growpotkin quits (~growpotki@130-45-30-154.dyn.grandenetworks.net) (Quit: ZNC 1.8.2 - https://znc.in)
07:33:01 <dminuoso> Mmm, I recently updated my entire system. Ever since, it seems that sometimes when when firefox is open the entire screen flickers shortly at unpredictable times
07:33:17 <dminuoso> The flickering looks almost as if for a split second another window is being drawn, perhaps partially ontop of the scren
07:33:28 <dminuoso> It's rare enough to majorly impact me, but it happens a few times a day
07:33:40 <dminuoso> What might be going on?
07:34:11 <dminuoso> My journald has nothing of interest during the time period
07:36:11 <dminuoso> Mmm, even the region ontop of the status bar is affected.
07:36:40 <dminuoso> How can firefox have control over this? I thought it's xmonads job to control the window layouting
07:37:57 <dminuoso> It seems to be indirectly correlated to me hovering over links, at random times. The flickering exhibits shortly after
07:38:45 <dminuoso> Ohh... I think it might happen when Slack is right behind Firefox...
07:39:38 <dminuoso> Perhaps Slack is trying to grab?
07:40:35 <dminuoso> Well, it's good that after 2 weeks I finally have something to go on.
07:48:06 xaltsc joins (~xaltsc@unaffiliated/xaltsc)
07:50:37 × jchia quits (~jchia@58.32.35.67) (Ping timeout: 246 seconds)
08:04:19 jchia joins (~jchia@58.32.35.91)
08:09:08 × cynapse quits (~chris@d24-141-165-72.home.cgocable.net) (Remote host closed the connection)
08:12:37 malook joins (~Thunderbi@5.108.42.152)
08:23:07 malook parts (~Thunderbi@5.108.42.152) ()
08:30:15 <coldpress> dminuoso: try setting layers.acceleration.disabled to true
08:32:37 cfricke joins (~cfricke@unaffiliated/cfricke)
08:42:13 <dminuoso> coldpress: Can you explain why that would help?
08:43:46 <dminuoso> Im not convinced this is a firefox bug. It seems to trigger when some particular UI element is right behind firefox and my mouse hovers over it.
08:43:54 <dminuoso> That is, a particular slack UI element
08:43:56 mc47 joins (~yecinem@89.246.239.190)
08:44:02 <dminuoso> (Not slack in firefox, but the slack native client)
08:46:16 notis joins (~notis@185.51.134.222)
08:48:40 × wonko7 quits (~wonko7@2a01:e35:2ffb:7040:55f1:c3a3:cdbe:bf52) (Quit: See You Space Cowboy..)
09:00:30 <mc47> Hello! Is there a reason the test suite in xmonad-contrib is the way it is? Why not go with something similar to what there is in the core package?
09:07:15 malook joins (~Thunderbi@5.108.42.152)
09:15:42 × malook quits (~Thunderbi@5.108.42.152) (Quit: malook)
09:20:23 <Solid> I was wondering the same thing at some point
09:21:05 <Solid> someone else apparently also did: https://github.com/xmonad/xmonad-contrib/issues/381 :P
09:21:31 <mc47> I saw that issue and thought "isn't it just stack test?"
09:21:35 <mc47> I was... wrong
09:21:41 <Solid> yeah exactly
09:21:48 <Solid> it's just `stack test` with the core repo
09:21:52 <Solid> but contrib does weird things
09:22:02 <Solid> I'd vote for unifying this so I can just `stack test` in contrib as well
09:22:19 <Solid> s/I can/one can/
09:26:01 <mc47> I'd work on that in the weekend, after I clear my assignments
09:27:01 <mc47> it doesn't seem complicated: all the genMain script is doing is just generating a Properties.hs and a Main.hs file... I'll generate them, make them work, and remove genMain. We'd only need to make sure to sync these files whenever we add tests
09:27:09 <mc47> which is a good comrpomise, seeing what there is now
09:31:27 × mc47 quits (~yecinem@89.246.239.190) (Quit: Leaving)
09:36:09 <Solid> sounds good to me
09:37:09 mc47 joins (~yecinem@89.246.239.190)
09:37:35 × mc47 quits (~yecinem@89.246.239.190) (Client Quit)
09:37:53 mc47 joins (~yecinem@89.246.239.190)
09:45:03 <coldpress> dminuoso: oh, I thought you said it was a firefox problem. I had firefox flicker when running compton, and I believe setting layers.acceleration there solved my problem
09:46:04 <dminuoso> coldpress: It just exhibits when firefox is ontop, but I strongly believe it happens precisely when some slack control is behind. I dont fully understand how X11 works, but it seems almost as if when the mouse position is ontop of the slack control (which in the window stack is behind firefox) there's some "fighting" going on
09:46:35 <dminuoso> Where "slack" very shortly appears ontop, and then hides again. I dont have proof of this, but I managed to "fix" it by moving slack to a different screen.
09:47:24 <Liskni_si> coldpress, dminuoso: compton/picom flickers when use-damage is enabled, btw
09:47:31 <dminuoso> I dont have a compositor
09:47:36 <Liskni_si> Oh
09:59:17 isgy joins (~jy@82.38.116.187)
10:03:51 thc202 joins (~thc202@unaffiliated/thc202)
10:17:16 × plantations quits (~stalled@2001:ac8:92:a:0:1:73e:2265) (Remote host closed the connection)
10:18:58 <Liskni_si> seems I'm not the only one who thinks a process boundary between compositor and WM is a good idea: https://arcan-fe.com/2017/12/24/crash-resilient-wayland-compositing/
10:19:39 <Liskni_si> I didn't even know about this Arcan thing, which seems to be an alternative to Wayland
10:19:53 <Liskni_si> the world is messier than I thought :-)
10:20:20 berberman_ joins (~berberman@unaffiliated/berberman)
10:20:26 × berberman quits (~berberman@unaffiliated/berberman) (Ping timeout: 264 seconds)
10:38:22 malook joins (~Thunderbi@5.108.42.152)
10:45:03 × malook quits (~Thunderbi@5.108.42.152) (Quit: malook)
10:51:21 × tugrik quits (~username@war.funkyjesus.org) (Quit: WeeChat 2.9)
11:08:39 × mc47 quits (~yecinem@89.246.239.190) (Remote host closed the connection)
11:17:25 × ericsagnes quits (~ericsagne@2405:6580:0:5100:43fe:8354:1780:830b) (Ping timeout: 272 seconds)
11:29:16 ericsagnes joins (~ericsagne@2405:6580:0:5100:2a4b:4c53:e4dc:e61e)
12:04:24 × Rockj quits (~rockj@2001:67c:550:feed::1) (Ping timeout: 240 seconds)
12:16:43 Rockj joins (~rockj@2001:67c:550:feed::1)
12:28:35 jchia__ joins (~jchia@58.32.37.146)
12:29:18 tugrik joins (~username@war.funkyjesus.org)
13:16:17 geekosaur joins (82659a09@host154-009.vpn.uakron.edu)
13:37:16 sfrique joins (~sfrique@189.122.177.88)
13:39:20 <vrs> Hash: I once considered doing some sorcery with CRIU so that I could restore xmonad sessions across reboots, but then decided that this was a tarpit and didn't pursue it. The TopicSpaces way of having commands associated with workspaces is good though and I recommend it
13:40:29 <vrs> maybe it's just my config but I have it set up so that when I switch to certain named workspaces via gridselect and they're empty, they will be populated with the associated application
13:40:29 <geekosaur> a tarpit is definitely is
13:40:52 <geekosaur> that's how TopicSpaces works
13:41:13 <vrs> TopicSpaces is good
14:40:13 × geekosaur quits (82659a09@host154-009.vpn.uakron.edu) (Remote host closed the connection)
15:07:04 berberman joins (~berberman@unaffiliated/berberman)
15:07:44 × berberman_ quits (~berberman@unaffiliated/berberman) (Ping timeout: 240 seconds)
15:39:16 × dxld quits (~dxld@80-109-136-248.cable.dynamic.surfer.at) (Remote host closed the connection)
15:40:18 <Hash> Morning
15:40:29 dxld joins (~dxld@rush.pub.dxld.at)
15:40:32 <Hash> I just discovered in ##linux dwm and I told him about Xmonad
15:40:40 <Hash> It seems Xmonad is a dwm clone in haskell
15:41:52 <Hash> But a lot better and not C
15:41:57 × cfricke quits (~cfricke@unaffiliated/cfricke) (Quit: WeeChat 2.9)
15:52:22 <Solid> I would be hard pressed to call it a dwm clone at this point
15:53:04 <Solid> but it certainly started out as that
15:54:09 <Solid> I'm quite glad I can enjoy an extensible wm without maintaining an ever diverging fork of some project because "just apply patches lol"
15:55:07 seschwar joins (~seschwar@unaffiliated/seschwar)
16:47:36 <Hash> Yup
16:47:43 <Hash> That's what I told him. The Xmonad ecosystem is rich
16:57:38 shadow__ joins (~shadow@pool-71-187-70-139.nwrknj.fios.verizon.net)
17:00:47 shadow__ parts (~shadow@pool-71-187-70-139.nwrknj.fios.verizon.net) ()
17:01:29 Shadorain joins (~shadow@pool-71-187-70-139.nwrknj.fios.verizon.net)
17:01:38 <Shadorain> hello friends, i have a strange idea today but i think it would be quite helpful to my workflow atleast,
17:01:42 <Shadorain> im trying to setup a layout that spans across my 3 monitors, it is based off of one workspace and a new window just shrinks the first one from 3 -> 2 mons and puts the new window in on the third mon (if that makes sense)
17:02:49 <Shadorain> as of now i just use a floating scratchpad that is 3 monitors long but it would be nice to have it tilable
17:09:31 geekosaur joins (82659a09@host154-009.vpn.uakron.edu)
17:12:13 growpotkin joins (~growpotki@130-45-30-154.dyn.grandenetworks.net)
17:16:59 <geekosaur> we don't really support that, xmonad's model is that a workspace fits on a single monitor. it might be possible to abuse LayoutScreens but you'd get windows split across monitors as well
17:18:09 <Shadorain> thats what i was thinking as well but then when i made a fake floating version of what i wanted, i realized that that floating window only resides on the one workspace
17:18:24 <Shadorain> its just a wider window than normal on that one workspace
17:19:15 <Shadorain> so if my layout would have windows spawn at a wider interval it would work fine afaik
17:28:22 <Shadorain> would just have to trick a layout to think the workspace is 5760x1080 instead of 1920x1080
17:28:56 <geekosaur> that's more or less what LayoutScreens does
17:29:36 <Shadorain> oh hm ur right, i see that in the second example on the docs
17:30:41 <Shadorain> ooh yes then i can run 3 column layout with this trick
17:30:49 <Shadorain> each monitor would be a column
17:41:03 <Shadorain> woah it actually worked haha!!! this is nuts!
17:46:44 <Shadorain> the only issue im having is that it goes past just the one workspace and affects all
17:50:13 <geekosaur> yes, I think there's no way around that since workspaces are subordinate to monitors and not vice versa
17:50:29 <geekosaur> you can't re-layout monitors based on what workspace is visible
18:03:47 × novas0x2a quits (~blah@157-131-125-210.fiber.dynamic.sonic.net) (Read error: Connection reset by peer)
18:03:57 novas0x2a joins (~blah@157-131-125-210.fiber.dynamic.sonic.net)
18:06:17 <Shadorain> hmm but u can rescreen on layout change
18:06:46 <Shadorain> and prob can do a hack where if u use a workspace change key to also rescreen
18:09:02 × Rockj quits (~rockj@2001:67c:550:feed::1) (Ping timeout: 264 seconds)
18:10:15 <geekosaur> you may cause an infinite loop if you do, since rescreen would rerun the layout
18:10:56 <Shadorain> i cant find a way to do the layoutScreens in the layout itself so i have a bind but id much rather it in the layout
18:19:53 <sfrique> Can the layout be changed dynamically based on monitor resolution/orientation? if so how, i plan to use xmonad as my second WM (i3 first) and see if i feel it's improving my workflow
18:20:59 <Shadorain> yes it can there is a module called PerScreen that handles that well
18:23:32 <geekosaur> there are a couple ofways to conditionalize layouts based on screen size iirc
18:27:11 <Shadorain> yo geekosaur, is there a max delta ratio limit for how little you inc/dec with resizing?
18:27:30 <Shadorain> im trying like (1/1000) and it isnt any different from (1/100)
18:28:19 <geekosaur> ultimately it'll be converted to pixels, and there are only so many pixels on most screens. maybe 1/1000 would show on a fancy 4K UHD monitor
18:29:11 <geekosaur> we use ratios because monitors don't have to be the same size, i used to have a 1366x768 next to a 1920x1080 and fixed pixel sizes don't work well for that
18:29:32 <Shadorain> hm yeh that is true, i feel like i should get more pixels allowed tho with my resizing of screen
18:29:58 <Shadorain> yeh thats very tru so the ration should allow for more since i theoretically have 5760 instead of 1920
18:30:40 <sfrique> thanks, i will take a look in this perscreen module
18:33:19 <sfrique> by the way, is there a site ranking "best" modules for xmonad?
18:34:11 <Shadorain> dont think so but here is a site that shows all the descriptions of each module and their links all in one spot
18:34:14 <Shadorain> https://hackage.haskell.org/package/xmonad-contrib-0.13/docs/XMonad-Doc-Extending.html
18:34:58 <Solid> may want to link to the current version of that ;)
18:35:11 <Shadorain> oh oof haha
18:35:38 Rockj joins (~rockj@2001:67c:550:feed::1)
18:35:42 <Shadorain> https://hackage.haskell.org/package/xmonad-contrib-0.16/docs/XMonad-Doc-Extending.html
18:35:51 <Shadorain> there u go lol, sfrique
18:37:20 × thc202 quits (~thc202@unaffiliated/thc202) (Quit: thc202)
18:39:30 <sfrique> @Shadorain, that list i know, thanks, but they are not ranking on any way, I was thinking it could be some how.. xD not a big deal, but =]
18:39:30 <lambdabot> Unknown command, try @list
18:39:51 <sfrique> Shadorain, that list i know, thanks, but they are not ranking on any way, I was thinking it could be some how.. xD not a big deal, but =]
18:39:54 <Solid> how would you even rank something like xmonad's modules
18:40:02 <geekosaur> I'm not sure we have enough users for a ranking system to do very much, to be honest
18:41:38 <sfrique> Solid, voting system is something.. but yeah, i don't see much users and not sure it would work well, i am just sarting on xmonad..
18:42:35 <Solid> I wouldn't be so sure about the numbers of users that we actually have, more the number of users who would even interact with these kinds of things
18:43:23 <sfrique> since we here, is there a way to enter a "mode" for other short cuts? like resize mode of i3
18:43:32 <Shadorain> yeh i dont think many users would ever dig that deep to see that sadly
18:43:55 <Shadorain> explain mode? sounds like vim and its intriguing tehe
18:45:10 <sfrique> well, yes, kind of vim maybe. The goal is to enter a "mode" and a new set of keybinds would exist for it, most used on resize i guess for me
18:45:31 <Solid> there's a "modal xmonad bindings" module floating around, but the person who wrote it never submitted it to contrib for some reason
18:45:34 <Shadorain> yeh thats totally vim
18:45:36 <geekosaur> you can't do modes that readily, but there are some modules to allow keybindings to vary in a somewhat modal way
18:45:48 <geekosaur> hm, I thought they did
18:45:53 <Shadorain> subkeybinds can do something like that
18:46:04 <Shadorain> geekosaur, nah if they did i woulda jumped on that so fast
18:46:30 <sfrique> i saw the subkeybinds, but i am not sure it stays in the mode after pressed
18:46:44 <Shadorain> ah yeh no it doesnt
18:47:08 <sfrique> i found this: https://hackage.haskell.org/package/xmonad-contrib-0.16/docs/XMonad-Actions-Submap.html
18:47:24 <Solid> https://gist.github.com/LSLeary/6741b0572d62db3f0cea8e6618141b2f this is the gist
18:48:11 <Solid> it's a bit hacky but I don't think it's too hacky for xmonad-contrib
18:49:21 <sfrique> thanks, but i don't know haskell well enought to hack that much xD going to leave wihtout it hahaha
18:50:09 <Shadorain> hacky is what i do anyways lol, using xmodmap and crap so lets do it!
18:50:12 × rabliatu quits (~quassel@107.158.96.11) (Quit: 1)
18:50:25 <geekosaur> apparently I was thinking of PerWindowKeys, whoops
18:50:32 <Shadorain> the only ever non contrib module i found was PerLayoutKeys
18:50:55 <Shadorain> ConditionalLayouts or something like that which got rejected from contrib
18:54:55 <Solid> I'll try to contact the person; if they're not interested maybe they're fine with me cleaning this up and submitting it
18:55:22 <Solid> seems like a module that's too useful for it not to live inside contrib
18:56:31 Shadorain_ joins (uid453914@gateway/web/irccloud.com/x-zacharxypgsnvrfo)
19:00:10 × notis quits (~notis@185.51.134.222) (Read error: Connection reset by peer)
19:02:55 × berberman quits (~berberman@unaffiliated/berberman) (Ping timeout: 272 seconds)
19:03:25 berberman joins (~berberman@unaffiliated/berberman)
19:10:05 × Shadorain quits (~shadow@pool-71-187-70-139.nwrknj.fios.verizon.net) (Read error: Connection reset by peer)
19:10:05 Shadorain_ is now known as Shadorain
19:12:25 shadow__ joins (~shadow@pool-71-187-70-139.nwrknj.fios.verizon.net)
19:12:35 × geekosaur quits (82659a09@host154-009.vpn.uakron.edu) (Ping timeout: 245 seconds)
19:12:45 shadow__ parts (~shadow@pool-71-187-70-139.nwrknj.fios.verizon.net) ()
19:13:37 Shadowraith joins (~shadow@pool-71-187-70-139.nwrknj.fios.verizon.net)
19:13:40 <Shadowraith> test
19:13:55 <Shadowraith> oof my bad yall my pc somehow froze, first time ever lol
19:14:08 <Shadowraith> and lost all messages from here
19:17:19 × abhixec quits (~abhixec@c-67-169-141-95.hsd1.ca.comcast.net) (Ping timeout: 246 seconds)
19:17:48 <Solid> Shadowraith: you are in luck!
19:18:07 <Solid> we have recently invited a bot that logs this channel
19:18:12 <Solid> see the /topic
19:19:29 abhixec joins (~abhixec@c-67-169-141-95.hsd1.ca.comcast.net)
19:24:36 <Shadowraith> oh nuts sweet!
19:29:04 <Shadowraith> oh cool, Solid, ur gonna try to get that modal binds module passed in?
19:31:10 <Solid> Shadowraith: yeah as soon as I find a way to contact the original author
19:31:32 geekosaur joins (82659a09@host154-009.vpn.uakron.edu)
19:32:30 <Shadowraith> i agree it will be an extremely useful module
19:32:45 <Shadowraith> who wouldnt want vim in their wm pretty much haha!
19:34:28 <Solid> well, I for one probably wouldn't use it myself :P
19:35:29 <Shadowraith> aw man tehe, but i think it would have its place for some people!
19:36:06 <Solid> oh definitely --- that's why I want to try and get it into contrib, after all
19:42:03 <Shadowraith> ur the best tehe <3!
19:43:39 × xaltsc quits (~xaltsc@unaffiliated/xaltsc) (Quit: WeeChat 3.0)
19:48:02 <Shadowraith> my special spanning layout finally lets me feel like i actually use all 3 mons lol
19:48:32 <Shadowraith> can you use a spawn command from a layout like when switching to a specific layout?
19:52:45 xaltsc joins (~xaltsc@unaffiliated/xaltsc)
19:55:10 <geekosaur> that sounds … painful
19:56:55 <Shadowraith> thats been my experience in general trying to do somethign in haskell not even knowing haskell :joy:
19:57:13 <geekosaur> I mean, an impure layut could do a spawn, but catching that you'd just switched to the layout less so (you'd have to save and compare the previous layout on the current workspace, probably in XS — and note that during the layout, the StackSet is out of date because the current one's being built as part of laying out the workspace)
19:57:58 <geekosaur> sadly that does not mean it stores the old layout, in general
19:58:38 <geekosaur> but it'll have other stuff randomly out of date, in particular the currently focused window probably isn't even present in it
19:59:18 <geekosaur> and of course the spawned window will force another layout run
19:59:28 <Shadowraith> yikes that sounds alot past my skill level here haha
19:59:44 <Shadowraith> oh by spawn command i meant the spawn module that allows u to run shell commands
19:59:48 <Shadowraith> idk if i made that clear
20:00:44 <geekosaur> there's also a built-in spawn command, the module just provides some other possibilities
20:01:36 <Shadowraith> i didnt mean module* yeh i meant the built in one, come on shado use the right terminology lol
20:01:59 <Shadowraith> is there a way to have a layout run the built in spawn (shell command) on being switched to?
20:02:46 <geekosaur> the layout would be run in that situation, but also when various other things happen. there is no specific "do this when this layout is switched to"
20:02:59 <geekosaur> which is why I tried to describe how to do so
20:03:18 <Shadowraith> oh maybe shado just didnt understand :facepalm: im sorry haha
20:05:14 <geekosaur> come to think of it, it might be easier to change mod-space binding to query the layout by its description after changing it, and spawn something
20:05:55 <Shadowraith> thats what ive been trying to do mentally but id never be able to do that in Haskell lol
20:07:38 <Shadowraith> still trying to figure out too how to get one keybinding to run multiple things :joy:
20:08:22 <geekosaur> you can get the layout by looking up the workspace in the StackSet, then apply `description` to that. you'd have to ensure the layout's description is sufficiently distinctive
20:08:50 <Shadowraith> http://0x0.st/i77C.txt
20:08:53 <Shadowraith> checkout my loghook
20:09:13 <Shadowraith> i have like a query thing to find the current layout name and to send it to a file
20:09:24 <Shadowraith> maybe it would work similar to that?
20:09:40 <Shadowraith> except do command based off layout name instead of send to file
20:10:50 <geekosaur> somthing like that, yes
20:16:16 × sfrique quits (~sfrique@189.122.177.88) (Remote host closed the connection)
20:24:09 × abhixec quits (~abhixec@c-67-169-141-95.hsd1.ca.comcast.net) (Ping timeout: 260 seconds)
20:36:36 × Shadowraith quits (~shadow@pool-71-187-70-139.nwrknj.fios.verizon.net) (Quit: Lost terminal)
20:43:10 sfrique joins (~sfrique@189.122.177.88)
20:45:06 <sfrique> hey, anyone can help me why i can't get spotify to be floated on namedscrapthas?
20:45:36 <sfrique> i am using className =? "Spotify" and it brings back the spotify, it just don't make it float
20:49:39 <geekosaur> show your code
20:49:42 <geekosaur> @where paste
20:49:42 <lambdabot> Help us help you: please paste full code, input and/or output at eg https://paste.tomsmeding.com
20:50:04 ddellacosta joins (dd@gateway/vpn/mullvad/ddellacosta)
20:50:14 <geekosaur> that said there's a long running issue basically caused by spotify not playing by the rules, so things like className don't work right
20:51:08 <geekosaur> (it doesn't set its properties until after it renders. there's a special module to deal with this, DynamicProperty)
20:52:42 <geekosaur> XMonad.Hooks.DynamicProperty that is
20:53:27 <geekosaur> so you may need to put things like floating via DynamicProperty to get them to work right, and the scratchpad might be a little unreliable
20:53:28 <sfrique> i just have to load it?
20:54:40 <sfrique> it seems i have to add some code
20:55:11 <geekosaur> yes
20:55:44 <geekosaur> it basically puts a managehook in response to a property change. but you need to be specific as to what the managehook matches.
20:57:12 <geekosaur> there's no simple way to deal with this kind of thing, Spotify is a browser window and they're really dynamic
20:59:35 <sfrique> i see, i will see how to add the code
21:08:03 <geekosaur> here's where the discussion of spotify's misbehavior is being discussed: https://github.com/xmonad/xmonad/issues/214
21:08:52 <geekosaur> (wrong place since for starters namedscratchpads are part of contrib… but moving issues is painful so it's there)
21:09:11 notis joins (~notis@185.51.134.222)
21:12:35 <geekosaur> the most recent message has a solution gleaned from Reddit, using DynamicProperty to apply the customFloat to it
21:14:28 <sfrique> i just got it "working"
21:14:30 <geekosaur> I admit to some curiosity as to what it's doing with className early on, but not so much so that I'm willing to install it and aim ManageDebug at it >.>
21:14:54 <sfrique> but then my xmobar seems to become bwllow everything
21:15:23 <sfrique> it happens when i add eventhook
21:15:30 <geekosaur> that sounds like your hook's firing on too many windows (floating everything?)
21:16:10 × Shadorain quits (uid453914@gateway/web/irccloud.com/x-zacharxypgsnvrfo) (Quit: Connection closed for inactivity)
21:16:47 <sfrique> not verything is floated, but it seems it ignores xmobar for some reason
21:18:26 <geekosaur> it does ignore xmobar, as it ignores all dock windows (they're self-managing). "below everything" still sounds wrong though
21:18:55 <geekosaur> it shouldn't be placing windows over docks with or without the handleEventHook
21:20:10 <geekosaur> unless maybe you broke docksEventHook in the process, hm
21:21:53 <sfrique> https://paste.tomsmeding.com/HaWbkPy6
21:22:15 <sfrique> i don't understand that first managehook thing
21:23:58 <geekosaur> you're not using the docks combinator. so what does your handleEventHook look like?
21:24:48 <sfrique> this?
21:24:48 <sfrique> https://paste.tomsmeding.com/TaF7gUCN
21:24:58 <geekosaur> the manageHook floats any old-style fullscreened windows, applies your manageHook, then manageDocks
21:25:22 × Rockj quits (~rockj@2001:67c:550:feed::1) (Ping timeout: 260 seconds)
21:25:37 <geekosaur> did you have a handleEventHook before that? you should have and it should have called docksEventHook
21:25:50 <sfrique> i had not
21:26:10 <sfrique> handleEventHook = myHandleEventHook
21:26:40 <sfrique> this was added to my main block just now, if i remove it, the xmobar works fine, but i don't getthe spotify resize
21:26:52 <geekosaur> although come to think of it the docksEventHook shouldn't be involved here, it's just for things like moves
21:33:19 <sfrique> it seems spotify won't be fixed for now =/
21:33:33 <sfrique> xmonad seemed very promising, but i keep hiting "edge" cases
21:34:41 <geekosaur> actually I'm wondering if you need to change the handleEventHook to: myHandleEventHook <+> handleEventHook desktopConfig
21:36:16 <sfrique> wait, so how you think would be the full line?
21:38:11 <geekosaur> , handleEventHook = myHandleEventHook <+> handleEventHook desktopConfig
21:39:06 <sfrique> it did work
21:39:19 <sfrique> i don't understand why tough
21:40:00 <sfrique> so it's like we are adding all the defaults after what i have createdas events hooks?
21:40:04 <geekosaur> because you were getting something essential from desktopConfig but when you overrode handleEventHook without explicitly "copying in" the stuff from desktopConfig, you lost it
21:41:00 <sfrique> ok sounds reasonable
21:41:21 <sfrique> thanks!
21:42:07 <geekosaur> they're going to kick me out of this library shortly and I'll lose internet, sorry
21:43:26 × geekosaur quits (82659a09@host154-009.vpn.uakron.edu) (Remote host closed the connection)
21:43:27 <sfrique> you have helped a lot already
21:47:28 Rockj joins (~rockj@2001:67c:550:feed::1)
22:00:54 × isgy quits (~jy@82.38.116.187) (Ping timeout: 256 seconds)
22:46:09 <sfrique> is there a way to create a new workspace on demand?
22:47:40 <sfrique> will try this
22:47:41 <sfrique> https://hackage.haskell.org/package/xmonad-contrib-0.16/docs/XMonad-Actions-DynamicWorkspaces.html
23:10:50 × ericsagnes quits (~ericsagne@2405:6580:0:5100:2a4b:4c53:e4dc:e61e) (Ping timeout: 264 seconds)
23:22:45 ericsagnes joins (~ericsagne@2405:6580:0:5100:cd57:3434:c0d0:b946)

All times are in UTC on 2020-12-04.