Home liberachat/#xmonad: Logs Calendar

Logs on 2021-05-29 (liberachat/#xmonad)

00:01:13 × geekosaur quits (~geekosaur@069-135-003-034.biz.spectrum.com) (Ping timeout: 272 seconds)
00:01:24 allbery_b is now known as geekosaur
00:12:27 <jg> im actually an idiot, i got it
00:13:50 × wenzel quits (~wenzel@user/wenzel) (Quit: Leaving)
00:14:01 <jg-vm> xrandr
00:16:22 <jg> geekosaur: mc47 did a great job, it works flawlessly
01:27:52 × geekosaur quits (~geekosaur@069-135-003-034.biz.spectrum.com) (Ping timeout: 264 seconds)
01:43:13 × themainman quits (~themainma@user/themainman) (Quit: WeeChat 3.1)
01:43:38 × xacktm quits (xacktm@user/xacktm) (Remote host closed the connection)
01:54:04 xacktm joins (xacktm@user/xacktm)
02:19:28 × jg-vm quits (~jrgiacone@47.149.222.98) (Quit: Lost terminal)
02:34:39 × td_ quits (~td@muedsl-82-207-238-082.citykom.de) (Ping timeout: 265 seconds)
02:36:00 td_ joins (~td@94.134.91.167)
02:44:47 × eyenx quits (~eyenxeyen@eyenx.ch) (Quit: node-irc says goodbye)
02:46:50 eyenx joins (~eyenxeyen@eyenx.ch)
03:08:43 mohab joins (~mohab@156.223.41.228)
03:09:36 × mohab quits (~mohab@156.223.41.228) (Client Quit)
03:09:52 mohab joins (~mohab@156.223.41.228)
03:10:58 × mohab quits (~mohab@156.223.41.228) (Client Quit)
04:04:08 × jg quits (~jrgiacone@47.149.222.98) (Quit: leaving)
04:13:12 a6a45081-2b83 joins (~aditya@106.212.79.20)
04:15:57 davve joins (davve@bsd.douchedata.com)
04:40:44 × a6a45081-2b83 quits (~aditya@106.212.79.20) (Remote host closed the connection)
05:09:16 <Solid> <liskin> Solid: so this is basically what your README does, just automated >> sounds fair enough, thanks for the effort!
05:09:43 <Solid> <liskin> Solid: does toggling struts work with overrideRedirect = False for you? >> it does, yes
05:10:05 <Solid> I remember having some issues with xmobar without that flag set to false
05:10:18 <Solid> but I don't know which ones exactly anymore, sadly
05:16:00 × davve quits (davve@bsd.douchedata.com) (Quit: leaving)
05:23:36 davve joins (davve@bsd.douchedata.com)
05:37:08 qbt joins (~edun@user/edun)
06:16:38 × qbt quits (~edun@user/edun) (Quit: WeeChat 3.1)
06:16:54 qbt joins (~edun@user/edun)
06:33:18 × hexo quits (~hexo@2a02-ab04-2843-9500-ec04-cc31-4c52-25d9.dynamic.v6.chello.sk) (Ping timeout: 264 seconds)
06:47:10 hexo joins (~hexo@2a02-ab04-2843-9500-2856-ac24-43b5-9f54.dynamic.v6.chello.sk)
07:10:31 <liskin> Solid: does it still work after restarting xmobar? Do you have any doLower in your config?
07:14:10 <Solid> liskin: it does yeah
07:14:15 <Solid> and I don't have any doLower in my config
07:14:47 <liskin> What, how? :-/
07:41:45 <Solid> I just removed it though and it seems like the issue I remember having is gone so...
07:45:43 <liskin> Well I'd really like to understand how it could work with it.
07:46:19 <liskin> X puts new windows on the top of the stacking order, so toggling struts would put windows behind xmobar.
07:46:49 <liskin> The only way out of that is to lower xmobar, or to raise everything else.
07:47:57 <liskin> Raising everything else can be done by opening another new window that's also put on top and then xmonad restacks other windows directly beneath, putting them above the unmanaged xmobar.
07:48:11 <liskin> Is anything like this happening in your setup?
07:49:08 <Solid> not that I know of; my manageHook is quite minimal as it is, and I don't think this could be done in another place?
07:55:20 <liskin> I do have some lowering in eventHook but you'd know about that I guess.
07:55:38 <liskin> This is truly bizarre
07:55:45 <Solid> yeah, my eventHook is completely empty
08:02:27 Tomurb joins (~tom@92-17.net.optinet.cz)
08:12:38 <liskin> Oh, it's because compiled xmobar config doesn't apply the lowerOnStart override.
08:13:08 <liskin> If you had the same as .xmobarrc, it wouldn't work.
08:13:18 <liskin> I can sleep now.
08:14:49 <Solid> oh
08:16:48 wonko joins (~wjc@62.115.229.50)
08:30:34 seschwar joins (~seschwar@user/seschwar)
08:36:11 × Tomurb quits (~tom@92-17.net.optinet.cz) (Ping timeout: 265 seconds)
08:55:57 × scardinal quits (~supreme@87-59-138-136-cable.dk.customer.tdc.net) (Ping timeout: 244 seconds)
08:57:38 scardinal joins (~supreme@87-59-138-136-cable.dk.customer.tdc.net)
09:07:58 × berberman_ quits (~berberman@user/berberman) (Ping timeout: 248 seconds)
09:08:58 berberman joins (~berberman@user/berberman)
09:47:13 mc47 joins (~yecinem@89.246.239.190)
10:08:34 × qbt quits (~edun@user/edun) (Ping timeout: 264 seconds)
10:18:30 dexterfoo joins (dexter@2a01:7e00::f03c:91ff:fe86:59ec)
10:20:55 themainman joins (~themainma@user/themainman)
11:26:38 × benin quits (~benin@183.82.177.19) (Ping timeout: 248 seconds)
13:21:42 Solid_ joins (~slot@2a01:4f8:c2c:d600::2)
13:21:43 × Solid quits (~slot@static.220.87.47.78.clients.your-server.de) (Quit: Connection reset by pear)
13:24:47 geekosaur joins (~geekosaur@069-135-003-034.biz.spectrum.com)
13:27:07 tremon_ joins (~tremon@217-63-61-89.cable.dynamic.v4.ziggo.nl)
13:56:41 Tomurb joins (~tom@92-17.net.optinet.cz)
14:03:07 × Tomurb quits (~tom@92-17.net.optinet.cz) (Quit: Konversation terminated!)
15:00:35 jg joins (~jg@2600:1012:b16f:8ac5:6125:d1c3:6407:ea20)
15:01:07 <jg> mc47 the dynamicEasySb works perfectly thank you
15:02:49 <jg> I had no issues setting it up beyond me not beating able to spell properly lol
15:02:58 <jg> being*
15:06:25 × jg quits (~jg@2600:1012:b16f:8ac5:6125:d1c3:6407:ea20) (Quit: Client closed)
15:37:44 × abhixec quits (~abhixec@c-67-169-139-16.hsd1.ca.comcast.net) (*.net *.split)
15:37:44 × Natch quits (~natch@c-e070e255.014-297-73746f25.bbcust.telenor.se) (*.net *.split)
15:37:44 × MrElendig quits (~Urist@user/mrelendig) (*.net *.split)
15:42:56 abhixec joins (~abhixec@c-67-169-139-16.hsd1.ca.comcast.net)
15:43:06 Natch joins (~natch@c-e070e255.014-297-73746f25.bbcust.telenor.se)
15:43:49 × Natch quits (~natch@c-e070e255.014-297-73746f25.bbcust.telenor.se) (*.net *.split)
15:43:49 × abhixec quits (~abhixec@c-67-169-139-16.hsd1.ca.comcast.net) (*.net *.split)
15:43:49 × geekosaur quits (~geekosaur@069-135-003-034.biz.spectrum.com) (*.net *.split)
15:43:49 × td_ quits (~td@94.134.91.167) (*.net *.split)
15:43:49 × xacktm quits (xacktm@user/xacktm) (*.net *.split)
15:43:49 × werneta quits (~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net) (*.net *.split)
15:43:49 × dmwit quits (~dmwit@pool-173-66-86-32.washdc.fios.verizon.net) (*.net *.split)
15:43:49 × dexterfoo quits (dexter@2a01:7e00::f03c:91ff:fe86:59ec) (*.net *.split)
15:43:50 × incertia quits (~incertia@d4-50-26-103.nap.wideopenwest.com) (*.net *.split)
15:44:01 dmwit joins (~dmwit@pool-173-66-86-32.washdc.fios.verizon.net)
15:44:02 td_ joins (~td@94.134.91.167)
15:44:11 dexterfoo joins (dexter@2a01:7e00::f03c:91ff:fe86:59ec)
15:45:39 geekosaur joins (~geekosaur@069-135-003-034.biz.spectrum.com)
15:46:00 xacktm joins (xacktm@user/xacktm)
15:47:40 incertia joins (~incertia@d4-50-26-103.nap.wideopenwest.com)
15:47:56 abhixec joins (~abhixec@c-67-169-139-16.hsd1.ca.comcast.net)
15:49:02 werneta joins (~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net)
15:49:11 Natch joins (~natch@c-e070e255.014-297-73746f25.bbcust.telenor.se)
16:10:50 × werneta quits (~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net) (Ping timeout: 252 seconds)
16:20:07 jg joins (~jrgiacone@47.149.222.98)
16:20:16 <jg> gmorning gents
16:34:54 <Solid_> hi :)
16:35:39 <geekosaur> œ
17:16:50 <mc47> jq that's good to hear, I'm glad it worked out!
17:17:33 werneta joins (~werneta@mobile-166-176-59-138.mycingular.net)
17:38:46 Dynom joins (~niels@80-114-12-206.cable.dynamic.v4.ziggo.nl)
17:39:34 gksudo joins (~user@user/gksudo)
17:42:25 <jg> not xmobar related necessarily, do yall have issues with trayer, liking to swap to your other screen after adding or removing a display vs staying on the main one?
18:11:54 <mc47> I had that problem
18:12:27 <mc47> `--monitor primary` made it behave
18:12:39 <mc47> oh wait, no
18:12:51 <mc47> I added trayer to my dynamicSB on screen 0
18:18:36 × werneta quits (~werneta@mobile-166-176-59-138.mycingular.net) (Ping timeout: 244 seconds)
18:22:08 <Solid_> mc47: you're on matrix right?
18:22:50 <Solid_> can you try connecting to `#xmonad:libera.chat`? Apparently there's initial support
18:25:22 Solid_ is now known as Solid
18:28:09 mc47[m] joins (~mc47matri@2001:470:69fc:105::733)
18:28:10 <mc47[m]> test
18:28:32 <geekosaur> ohai
18:28:38 <mc47[m]> Solid: it's working
18:29:03 <Solid> awwww yeah
18:29:58 <geekosaur> I am under the impression it's still in testing and may go down or drop stuff still, although maybe they've worked things out past that point by now
18:31:21 <geekosaur> (it's been up in #haskell for, hm, about 43 hours I think)
18:42:27 <jg> mc47 can I see an example of how you added it to your dynamicSB
18:43:26 <mc47> the relevant code is starting from here https://github.com/TheMC47/dotfiles/blob/master/xmonad/.xmonad/xmonad.hs#L275
18:45:12 <jg> oh shit, thanks, I did not know we could set it up like that!
18:49:12 <liskin> geekosaur: I'm lurking in the matrix bridge related channels and people are still experiencing troubles like messages only coming one way and so on
18:49:42 <liskin> once it's ready I'd like to try bridging this with the (the the) Matrix room
18:53:25 <jg> what do yall use for chat im using irssi
18:53:47 <geekosaur> hexchat here
18:53:56 <liskin> weechat
18:58:44 <mc47> hexchat too, will probably dabble in using emacs for it too sometime in the futrue
18:58:48 <mc47> future*
19:00:59 <liskin> oh boy am I old, I haven't even noticed that xchat is no longer developed and hexchat is the active fork
19:02:25 <geekosaur> xchat went commercial (initially only on windows), hexchat was forked from it, that more or less killed xchat
19:04:35 <liskin> yeah, I remember the shareware part
19:05:23 <liskin> as someone who's had his share of trouble providing Windows builds, I didn't disapprove of it :-)
19:05:45 werneta joins (~werneta@mobile-166-176-56-255.mycingular.net)
19:10:09 <jg> lol
19:10:26 jg-vm joins (~jrgiacone@47.149.222.98)
19:10:33 <jg-vm> mc47: any reason why this: https://pastebin.com/4mr8WkMj would be giving me "Couldn't match expected type `StatusBarConfig` with actual type `IO StatusBarConfig` it looks like it does not like my <> trayerSB in barSpawner 0
19:11:07 × werneta quits (~werneta@mobile-166-176-56-255.mycingular.net) (Ping timeout: 245 seconds)
19:11:29 <mc47> it should be pure (xmobar 1) <> trayerSB
19:12:24 <mc47> In retrospect I should've removed the IO from trayerSB and the pure from staticSB
19:12:34 <mc47> since they're not needed
19:13:32 <liskin> staticStatusBar or trayerSB look like something that would be helpful to have in xmonad-contrib
19:13:44 <mc47> jg-vm if you want to understand it more, $ basically changes the precedence (so pure is applied to the result of xmobar1 <> trayerSB). But xmobar1 <> trayerSB doesn't type-check since xmobar1 :: StatusBarConfig and trayerSB :: IO StatusBarConfig
19:13:48 <liskin> possibly just as an example in docs
19:14:06 <mc47> maybe jg-vm would want to create a PR? :)
19:14:35 <liskin> but staticStatusBar could be useful with bars like taffybar that don't use PP as all and just read from EWMH props
19:14:39 <mc47> we could add staticStatusBar yes
19:15:05 <mc47> when I added it I wanted to open a "first good-issue" for it and forgot
19:15:58 <jg> whats a PR haha I could be down, and I tried the trayer trick you did, but If i turn off my second monitor and turn it back on it still likes to jump to the other screen lol
19:16:08 <jg> i appreciate the explanation
19:16:13 <mc47> a pull request
19:16:58 <Solid> mc47: I dabble with ERC every now and then but I feel like one would really have to write a good bit of non-trivial elisp to make it even comparable to weechat
19:17:07 <jg> what would you need me to do :)
19:17:30 × jg-vm quits (~jrgiacone@47.149.222.98) (Quit: Lost terminal)
19:17:43 <Solid> but it's like the only place that emacs hasn't subsumed so maybe it's worth it after all :>
19:20:12 <jg> mc47, got it working, this is perfect thank you, I think I'm going to move my main rig to the git version since I can make trayer listen now and fullscreen works automatically lol
19:20:13 <mc47> jg: basically a contribution to xmonad-contrib, add staticStatusBar to X.H.StatusBar (without the pure), write the docs, and submit a pull request!
19:20:39 <mc47> You don't have to do it if you don't want to, obviously :) I just ask everyone to contribute whenever I get a chance
19:21:05 <liskin> the hard part being writing good docs and choosing good names
19:21:14 <jg> I could try, youre just talking about adding that function to the Hook and then we can remove it from our xmonad.hs
19:21:20 <liskin> staticStatusBar is a bit misleading :-/
19:21:20 <mc47> Solid I still haven't looked at it, but another thing I still can't tame with emacs is jupyter notebooks
19:21:49 <jg> we could name it staticTrayer lol
19:21:58 <mc47> jg yeah, and like liskin said, naming and docs are the tricky part. But that doesn't need haskell
19:22:11 <mc47> it wouldn't just be used for trayer though, that's the thing
19:23:01 <jg> I'd be super down to try and write something for review, however, I don't know the slightest bit on how to write and upload the code/start the doc, I could use other docs as examples
19:23:11 <jg> is there a program for that?
19:23:52 <mc47> it's not complicated, all you need is git and an editor
19:24:07 <jg> so I can use vim?
19:24:08 <mc47> we have a CONTRIBUTING.md file that you should take a look at https://github.com/xmonad/xmonad/blob/master/CONTRIBUTING.md
19:24:16 <jg> taking a look now!
19:24:16 <mc47> and I highly recommend this
19:24:28 <mc47> https://github.com/firstcontributions/first-contributions
19:24:32 <geekosaur> for little things all you need is a web browser
19:24:39 <mc47> This takes you through your first contribution in open-source
19:24:49 <jg> haha I dig it!
19:25:05 <mc47> so if you're not familiar with it, you definitely want to check it first
19:25:38 <mc47> it's even translated to pirate-english :D
19:26:34 <jg> so I have to clone the xmonad-testing repo to test the change?
19:26:51 <mc47> no, where does it say you should?
19:26:53 <geekosaur> it's one way to test it
19:27:09 <jg> it says "Make sure you test your changes using the xmonad-testing repo"
19:27:39 <mc47> we should probably change that
19:27:46 <mc47> you can just test it with your config
19:28:25 <geekosaur> it's in CONTRIBUTING.md
19:28:37 <jg> for example, If I edit my X.H.StatusBar, and I do I git pull will it remove my change?
19:29:36 <mc47> It depends, I think it won't pull because you have "uncommited changes"
19:29:59 <geekosaur> "git stash" is your friend here
19:30:26 <mc47> you will work on your fork of the code on some branch, and after doing your changes, you can "checkout" the master version of the upstream again
19:31:25 <jg> alright, I'll try and find some videos on this so I get a better understanding of not messing it all up!
19:32:18 <geekosaur> if you do mess it up, there's always ohshitgit.com :)
19:33:00 werneta joins (~werneta@mobile-166-176-57-108.mycingular.net)
19:34:03 <jg> so I want to create my own branch essentially, edit in there, make a doc & comments, and then send a PR?
19:34:38 <mc47> basically, yes
19:35:30 <jg> alright, I'll give it ago, I guess worst case if I really fuck up my own branch I can just reclone the main right?
19:36:17 <geekosaur> yes, but probably just delete your branch and recreate it is enough
19:36:19 <mc47> don't worry about fucking up, it's really hard to lose anything if you're using git
19:36:19 <liskin> I'd recommend reading Pro Git. It's not the shortest material, but git is exactly the kind of thing where taking shortcuts will come and bite you hard later.
19:36:52 <liskin> (Not bite as in losing data, more like being utterly confused and annoying to all the people you collaborate with.)
19:37:20 <jg> noted! yea that's a great idea
19:38:20 <liskin> speaking of staticStatusBar, it's not a bad name for people who know about DynamicLog
19:38:51 <liskin> I just never thought that's a good use of static/dynamic :-)
19:40:08 <mc47> I obviously didn't give it a lot of thought since it's just in my config
19:43:40 <liskin> anyway I was just going to suggest that we create a statusBar cmd logHook :: String -> X () -> StatusBarConfig function
19:43:53 <liskin> then statusBarPropTo can be implemented in terms of it
19:44:06 <liskin> and staticStatusBar is just statusBar cmd mempty
19:44:35 <liskin> and also statusBarPipe must be implemented using the IORef Handle trick, because it now doesn't work with dynamicSBs
19:44:53 <mc47> yes that sounds reasonable
19:45:23 <mc47> Why doesn't it work?
19:45:55 <liskin> updateSBs relies on sbStartupHook and sbCleanupHook but statusBarPipe launches it itself and doesn't implement these two hooks
19:46:13 <liskin> so if you use statusBarPipe in dynamicSBs, the bar just stays there no matter what
19:46:45 <liskin> didn't notice during the review as I only looked at the diff
19:46:59 <liskin> now that I'm looking at the whole file it's obvious
19:48:34 <mc47> right, that totally slipped my mind :/
19:49:51 <liskin> I should've persuaded you to use the proper impl of statusBarPipe in the first PR
19:50:08 <liskin> it's an abuse of the StatusBarConfig api :-)
19:50:54 <liskin> you created a nice abstraction, so obviously you then assumed that the abstraction works
19:51:12 <mc47> it feels a bit like cheating if I'm being honest
19:51:19 <liskin> what does?
19:51:36 <mc47> the way statusBarPipe currently is
19:51:40 <liskin> yes :-)
19:52:06 <mc47> I vaguely remember thinking "wait, that ~~should be~~ is illegal"
19:53:19 <liskin> we'd need a way stronger type system to make the current implementation illegal
20:07:17 × mc47 quits (~yecinem@89.246.239.190) (Ping timeout: 272 seconds)
20:08:05 mc47 joins (~yecinem@89.246.239.190)
20:33:35 × Dynom quits (~niels@80-114-12-206.cable.dynamic.v4.ziggo.nl) (Quit: WeeChat 3.1)
20:41:08 × mc47 quits (~yecinem@89.246.239.190) (Quit: Leaving)
20:42:37 <jg> mc47, I think I am setting it up right, I forked it, and am rebuilding my stack with the fork
20:52:49 × jg quits (~jrgiacone@47.149.222.98) (Quit: Lost terminal)
21:14:01 × gksudo quits (~user@user/gksudo) (Quit: kernel update)
21:36:23 × geekosaur quits (~geekosaur@069-135-003-034.biz.spectrum.com) (Remote host closed the connection)
21:38:08 geekosaur joins (~geekosaur@069-135-003-034.biz.spectrum.com)
21:46:26 × abhixec quits (~abhixec@c-67-169-139-16.hsd1.ca.comcast.net) (Ping timeout: 265 seconds)
21:51:12 abhixec joins (~abhixec@c-67-169-139-16.hsd1.ca.comcast.net)
22:13:14 × abhixec quits (~abhixec@c-67-169-139-16.hsd1.ca.comcast.net) (Ping timeout: 268 seconds)
22:22:43 benin joins (~benin@183.82.177.19)
22:28:55 Guest53 joins (~Guest53@ip-178-203-146-137.hsi10.unitymediagroup.de)
22:29:13 × Guest53 quits (~Guest53@ip-178-203-146-137.hsi10.unitymediagroup.de) (Client Quit)
22:35:02 × seschwar quits (~seschwar@user/seschwar) (Quit: :wq)
22:44:21 × wonko quits (~wjc@62.115.229.50) (Ping timeout: 272 seconds)
23:07:45 × werneta quits (~werneta@mobile-166-176-57-108.mycingular.net) (Remote host closed the connection)
23:12:11 werneta joins (~werneta@mobile-166-176-57-108.mycingular.net)
23:53:00 jg joins (~jrgiacone@47.149.222.98)

All times are in UTC on 2021-05-29.