Home liberachat/#xmonad: Logs Calendar

Logs on 2022-04-11 (liberachat/#xmonad)

00:00:04 × mvk quits (~mvk@2607:fea8:5ce3:8500::9d5a) (*.net *.split)
00:00:05 × ectospasm quits (~ectospasm@user/ectospasm) (*.net *.split)
00:00:05 × joshproehl quits (~quassel@user/joshproehl) (*.net *.split)
00:00:05 × coldpress quits (~coldpress@72.136.212.35.bc.googleusercontent.com) (*.net *.split)
00:00:30 joshproehl joins (~quassel@user/joshproehl)
00:01:02 ectospasm joins (~ectospasm@23-227-173-50.static.hvvc.us)
00:01:56 ectospasm is now known as Guest5909
00:02:09 coldpress joins (~coldpress@72.136.212.35.bc.googleusercontent.com)
00:22:04 × Guest5909 quits (~ectospasm@23-227-173-50.static.hvvc.us) (Quit: WeeChat 3.5)
00:22:23 ectospasm joins (~ectospasm@user/ectospasm)
00:37:12 × noex quits (~null@user/noex) (Quit: :q!)
00:40:09 × abhixec_ quits (~abhixec@c-67-169-139-16.hsd1.ca.comcast.net) (Quit: leaving)
00:53:48 noex joins (~null@user/noex)
02:03:54 × banc quits (banc@gateway/vpn/airvpn/banc) (Ping timeout: 272 seconds)
02:12:28 × noex quits (~null@user/noex) (Ping timeout: 260 seconds)
02:13:09 noex joins (~null@user/noex)
02:18:54 <abastro[m]> Yea, "Clean code" recommends defining named function for many trivial-looking things
02:39:48 banc joins (banc@gateway/vpn/airvpn/banc)
02:46:49 × steve_ quits (~steve@ool-182c2b80.dyn.optonline.net) (Ping timeout: 248 seconds)
04:07:23 steve_ joins (~steve@ool-182c2b80.dyn.optonline.net)
04:30:12 × jao quits (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) (Ping timeout: 272 seconds)
05:31:48 × vanvik quits (~vanvik@78.156.12.223) (*.net *.split)
05:31:48 × anon_kun600[m] quits (~anonkun60@2001:470:69fc:105::1:ebb8) (*.net *.split)
05:31:48 × robinhood0018[m] quits (~robinhood@2001:470:69fc:105::1:4dca) (*.net *.split)
05:31:48 × pentagrade[m] quits (~pentagrad@2001:470:69fc:105::1:e4ae) (*.net *.split)
05:31:48 × CodeBitCookie[m] quits (~code-bit-@2001:470:69fc:105::a2f) (*.net *.split)
05:31:48 × M-elo-[m] quits (~gilganixm@2001:470:69fc:105::3d09) (*.net *.split)
05:31:48 × yuu[m] quits (~yuumatrix@2001:470:69fc:105::8a6) (*.net *.split)
05:31:49 × ghormoon quits (~ghormoon@ghorland.net) (*.net *.split)
05:32:49 vanvik joins (~vanvik@78.156.12.223)
05:33:07 ghormoon joins (~ghormoon@ghorland.net)
05:33:58 CodeBitCookie[m] joins (~code-bit-@2001:470:69fc:105::a2f)
05:35:04 pentagrade[m] joins (~pentagrad@2001:470:69fc:105::1:e4ae)
05:36:11 anon_kun600[m] joins (~anonkun60@2001:470:69fc:105::1:ebb8)
05:36:44 robinhood0018[m] joins (~robinhood@2001:470:69fc:105::1:4dca)
05:38:08 M-elo-[m] joins (~gilganixm@2001:470:69fc:105::3d09)
05:39:05 yuu[m] joins (~yuumatrix@2001:470:69fc:105::8a6)
05:43:13 × jludwig quits (~justin@li657-110.members.linode.com) (*.net *.split)
05:43:13 × burp quits (~quassel@hedgewars/sysadmin/burp) (*.net *.split)
05:43:14 × HAL[m] quits (~evadk8mat@2001:470:69fc:105::3ed0) (*.net *.split)
05:43:14 × dissociate[m] quits (~jessehorn@2001:470:69fc:105::1:41af) (*.net *.split)
05:43:14 × JosEduardo[m] quits (~joseemdsm@2001:470:69fc:105::ce1d) (*.net *.split)
05:43:14 × Drishal[m] quits (~drishalma@2001:470:69fc:105::a36) (*.net *.split)
05:43:14 × unclechu quits (~unclechu@2001:470:69fc:105::354) (*.net *.split)
05:43:14 × FatBoyXPC quits (~FatBoyXPC@user/fatboyxpc) (*.net *.split)
05:43:26 burp joins (~quassel@hedgewars/sysadmin/burp)
05:43:35 FatBoyXPC joins (~FatBoyXPC@user/fatboyxpc)
05:44:39 jludwig joins (~justin@li657-110.members.linode.com)
05:44:51 unclechu joins (~unclechu@2001:470:69fc:105::354)
05:45:31 Drishal[m] joins (~drishalma@2001:470:69fc:105::a36)
05:46:20 HAL[m] joins (~evadk8mat@2001:470:69fc:105::3ed0)
05:50:07 dissociate[m] joins (~jessehorn@2001:470:69fc:105::1:41af)
05:50:13 JosEduardo[m] joins (~joseemdsm@2001:470:69fc:105::ce1d)
06:03:39 abhixec joins (~abhixec@c-67-169-139-16.hsd1.ca.comcast.net)
06:19:55 <tdammers> No offense, but there's a lot of bullshit in the Clean Code book, and even more bullshit touted by all sorts of people under the "clean code" umbrella
06:33:57 cfricke joins (~cfricke@user/cfricke)
06:35:31 <amenonsen> maybe, but _this_ function is excellent.
06:41:38 <tdammers> Sure, nothing wrong with naming things. As long as those things are tangible enough to be named, that is. But if you try to condense that into a nice soundbitey rule, you just get "things that deserve to be named should be named", so... meh
06:45:51 <amenonsen> oh, you mean the namey-names rule. ;-)
07:10:32 <tdammers> Yeah. Naming things just because they exist.
07:45:45 mohab joins (~mohab@156.223.48.148)
07:46:18 × mohab quits (~mohab@156.223.48.148) (Client Quit)
07:48:25 × abhixec quits (~abhixec@c-67-169-139-16.hsd1.ca.comcast.net) (Remote host closed the connection)
07:59:38 <abastro[m]> tdammers: Well yeah, I agree. Nevertheless, beginners seem to find it as a golden standard. Lol
07:59:50 <abastro[m]> Likely lots of ppl in industry would do so as well
08:00:45 <abastro[m]> "Deserve names, Should be named" could be hard for beginners at least tbh
08:01:15 <abastro[m]> Tho ye I guess it makes more sense where simple null checks could mean `isLeaf` of tree
08:10:18 × cfricke quits (~cfricke@user/cfricke) (Ping timeout: 246 seconds)
09:00:14 × liskin[m] quits (~liskinmat@2001:470:69fc:105::768) (Quit: You have been kicked for being idle)
09:32:29 <Solid> I've never heard a beginner mention that book ever
09:32:42 liskin[m] joins (~liskinmat@2001:470:69fc:105::768)
09:32:57 × m5zs7k quits (~m5zs7k@web10.mydevil.net) (Ping timeout: 272 seconds)
09:37:41 m5zs7k joins (aquares@web10.mydevil.net)
09:59:17 × Natch quits (~natch@c-67bae255.014-297-73746f25.bbcust.telenor.se) (Remote host closed the connection)
10:02:58 × banc quits (banc@gateway/vpn/airvpn/banc) (Ping timeout: 250 seconds)
10:03:21 × vanvik quits (~vanvik@78.156.12.223) (Quit: Later)
10:03:47 vanvik joins (~vanvik@78.156.12.223)
10:06:31 Natch joins (~natch@c-67bae255.014-297-73746f25.bbcust.telenor.se)
10:08:43 banc joins (banc@gateway/vpn/airvpn/banc)
10:09:21 <tdammers> No, but it is often recommended *to* beginners, or people just past the beginner stage.
10:11:12 × Natch quits (~natch@c-67bae255.014-297-73746f25.bbcust.telenor.se) (Remote host closed the connection)
10:13:30 <liskin> I'd argue that no single book should be taken as gospel (pun very much intended).
10:15:05 Natch joins (~natch@c-67bae255.014-297-73746f25.bbcust.telenor.se)
10:28:49 dschrempf joins (~dominik@92-249-159-213.pool.digikabel.hu)
10:29:00 × dschrempf quits (~dominik@92-249-159-213.pool.digikabel.hu) (Client Quit)
10:41:36 cfricke joins (~cfricke@user/cfricke)
11:19:16 <amenonsen> is spawnOnce a suitable replacement for spawn "pgrep xmobar >/dev/null || exec xmobar"?
11:20:08 <amenonsen> from what i understand, it wouldn't work if xmobar might be running somewhere else, but in my case i'm not starting it anywhere else, so it should be ok.
11:20:14 <amenonsen> s/running/started/
11:23:47 <amenonsen> on the other hand, when i change my xmonad.hs and restart, i expect it'll re-spawn everything. maybe it's not worth changing.
11:24:15 <liskin> amenonsen: have you seen https://xmonad.github.io/xmonad-docs/xmonad-contrib-0.17.0.9/XMonad-Hooks-StatusBar.html ? That thing will spawn it for you, and also kill/restart it when needed.
11:24:41 <liskin> Especially useful for per-screen xmobars if one expects to (dis)connect outputs dynamically.
11:24:55 <amenonsen> oh!
11:24:57 <liskin> amenonsen: BTW thanks for reporting on your experiences with sway, that's really appreciated
11:25:18 <amenonsen> i was looking at moving from DynamicLog to StatusBar, but i didn't realise it could start xmobar for me too.
11:25:46 <amenonsen> (i'm using the spawn/pgrep trick to start other programs too, dunst, stalonetray, xss-lock, etc.)
11:26:01 <amenonsen> liskin: thanks. it was an interesting experience for sure.
11:26:07 <liskin> some stuff in DynamicLog already did start it for you, but only the property-based logging stuff, not the pipe-based
11:26:50 liskin starts the other stuff via systemd, takes care of restarting too
11:27:03 <amenonsen> the funny thing is, screen tearing under X has never bothered me very much, but i'm finding it ridiculously obtrusive now. i honestly can't figure out if it's worse on this new machine where i've never run X before, or if it's like it always was, and i'm just noticing it more now.
11:27:24 <amenonsen> but i think it actually IS worse on this machine.
11:27:54 <liskin> if you've used x86-video-intel in the past, as many of us had at some point, chances are tearing was indeed not a problem historically
11:29:31 <liskin> but it's no longer maintained and crashes a lot more than the modesetting driver, so distros no longer use it, and everyone needs to run a compositor these days
11:30:23 <amenonsen> oh
11:32:35 <amenonsen> like picom?
11:32:53 <liskin> like that, yes
11:35:57 carloratm parts (carloratm@tilde.club) ()
11:37:56 × geekosaur quits (~geekosaur@xmonad/geekosaur) (Remote host closed the connection)
11:38:16 geekosaur joins (~geekosaur@xmonad/geekosaur)
11:38:35 <mion> xf86-video-intel is still maintained
11:38:44 <mion> (but modesetting is generally better)
11:40:12 <amenonsen> yikes
11:40:26 <amenonsen> (i just started picom)
11:40:37 <mion> default picom config is pretty bad
11:40:59 <amenonsen> thank you for giving me some hope that it may be possible to make it better :-)
11:41:11 <mion> it does silly things like make right click menus transparent
11:41:44 <liskin> amenonsen: it will make some things better and other things worse :-D
11:53:53 <liskin> mion: oh, interesting; having last released 7 years ago and having last pushed a year ago gives a different impression, though :-)
11:56:32 <mion> liskin: intel for some reason insist on keeping their own copy of it instead of upstreaming :/
11:58:49 <liskin> mion: where does one find that copy?
11:59:19 <mion> liskin: don't have the url at hand. Intel added support for their new dgpus and stuff to it
11:59:54 <mion> wouldn't be surprised if its some big corporate that insists on using the driver and intel catering to them
12:00:13 sagax joins (~sagax_nb@user/sagax)
12:04:27 <amenonsen> btw, i've started using a NamedScratchpad to run insect.sh (a calculator with a text interface). it's pretty handy.
12:15:05 mc47 joins (~mc47@xmonad/TheMC47)
12:21:33 × Czernobog quits (~Czernobog@user/czernobog) (Read error: Connection reset by peer)
12:22:34 Czernobog joins (~Czernobog@user/czernobog)
12:56:45 <Ether[m]> Does anyone how i can only have borders on focused window?
12:57:09 <Ether[m]> Not on inactive windows/recent windows..
13:00:05 <geekosaur> that's somewhat difficult to do
13:00:41 <geekosaur> and there would be a lot of flickering, because you'd have to do it in the logHook so every time something changed all the borders would flicker
13:01:35 <geekosaur> I just set the inactive border color to the same as my gtk theme's window color so it's not obvious
13:02:26 <Ether[m]> geekosaur: Cleaver
13:02:32 <Ether[m]> Clever*
13:02:58 <Ether[m]> But isnt that the norm window border color?
13:03:08 <Ether[m]> How do i change inactive window color?
13:03:31 <geekosaur> inactiveBorderColor is one of the things you can set in the config record
13:04:19 <geekosaur> sorry, it's normalBorderColor as opposed ot activeBorderColor
13:04:21 <geekosaur> https://github.com/geekosaur/xmonad.hs/blob/skkukuk/xmonad.hs#L89
13:06:53 <Ether[m]> Hmm
13:09:20 <geekosaur> are you really seeing recent windows colored differently? I think that's a specific module that does that
13:09:26 <geekosaur> not default behavior
13:31:02 <Ether[m]> <geekosaur> "are you really seeing recent..." <- What module?
13:31:27 <Ether[m]> How do i stop this behavior?
13:41:00 <geekosaur> I don't recall the module offhand
13:41:17 <geekosaur> also I thought it only did that when activated (for window selection). this sounds odd
13:41:30 <geekosaur> can you pastebin your current config?
13:41:34 <geekosaur> @where paste
13:41:34 <lambdabot> Help us help you: please paste full code, input and/or output at e.g. https://paste.tomsmeding.com
14:16:41 syg_ joins (~syg@flamebot.net)
14:17:00 nomadxx3 joins (~lanomadx@69.167.45.235)
14:17:51 × syg quits (~syg@flamebot.net) (Ping timeout: 256 seconds)
14:18:39 × nomadxxxx3 quits (~lanomadx@69.167.45.235) (Quit: ZNC 1.8.2 - https://znc.in)
14:19:08 × Rockj quits (~rockj@chromie.geekrevolution.net) (Ping timeout: 252 seconds)
14:21:11 Rockj joins (~rockj@chromie.geekrevolution.net)
14:28:47 × noex quits (~null@user/noex) (Ping timeout: 260 seconds)
14:30:47 noex joins (~null@user/noex)
14:32:20 <Ether[m]> <geekosaur> "can you pastebin your current..." <- Hmm
14:32:31 <Ether[m]> Giimmme 2 mins.m
14:47:19 <Ether[m]> geekosaur: its in my github..
14:47:40 <Ether[m]> https://github.com/Ahanaf-Ether/xmonad/blob/stable/xmonad.hs
14:48:15 × mc47 quits (~mc47@xmonad/TheMC47) (Remote host closed the connection)
14:48:35 mc47 joins (~mc47@xmonad/TheMC47)
14:59:55 <geekosaur> it's WindowNavigation, looks like
15:00:58 <geekosaur> the documentation is unfortunate but it comes with a WNConfig that disables the feature (noNavigateBorders)
15:18:53 <Ether[m]> No way to disable?
15:21:11 <Ether[m]> geekosaur
15:27:55 <geekosaur> You have to replace `windowNavigation` with `configurableNavigation noNavigateBorders` everywhere it appears
15:30:55 <Ether[m]> How i do that?
15:31:30 <geekosaur> edit your config? search and replace is in pretty much every editor
15:32:34 <Ether[m]> Ohh
15:32:43 <Ether[m]> Just like that?
15:32:49 <geekosaur> yes
15:32:50 <Ether[m]> Isnt that a function?
15:33:14 <Ether[m]> So that will throw an error?
15:33:20 <geekosaur> yes but your config is already set up so you can just replace one with the other
15:33:43 <Ether[m]> Do change it everywhere?
15:33:53 <Ether[m]> Excluding import..
15:34:02 <geekosaur> theimport starts with uppercase
15:34:07 jao joins (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net)
15:34:16 <geekosaur> if you do a case-matching search and replace it'll just work
15:34:30 <Ether[m]> Ohh so all lowercase ones?
15:34:33 <Ether[m]> Roger..
15:36:43 <Ether[m]> Throws an error
15:37:14 Ether[m] uploaded an image: (161KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/BNkpghrdaUpeqBlVSdluUiij/20220411_213646_743533574576682600.jpg >
15:37:15 <Ether[m]> geekosaur
15:38:35 <Ether[m]> My bad no space*
15:38:59 <Ether[m]> No luck same behavior:(
15:39:56 <geekosaur> hm, you imported it without a list so it should work, and I'm using the 0.15 docs so it should be there
15:40:52 Guest53 joins (~Guest53@190.192.80.102)
15:41:12 Ether[m] uploaded an image: (160KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/iHzJSIuTWNDAYUpGUdxMJwvj/20220411_213936_42029051985573574.jpg >
15:41:48 <Ether[m]> The less bright border is what i dont want..
15:42:08 <Guest53> I would like to ask how i can get a transparent xmobar. I tryed setting alpha = 0, in the config file but nothing happens. Thanks
15:42:58 <Ether[m]> Guest53: Picom..
15:43:09 <Ether[m]> You need to use a compositor..
15:43:45 <Ether[m]> Compton/picom one that supports transparency..
15:44:20 <Ether[m]> Find class name for xmobar and set your picom config. Thats the general take..
15:44:32 <Ether[m]> Guest53
15:46:35 <geekosaur> Ether[m], you have that all over the place. you should probably pick one place to put it, not everywhere it could possibly appear…
15:46:36 <Guest53> Ok, i am absolute layman with picom, how may I do what you suggested?
15:47:13 <Ether[m]> geekosaur: ?
15:48:02 <Ether[m]> Guest53: What distro are you on?
15:48:04 <geekosaur> Guest53, https://github.com/geekosaur/xmonad.hs/blob/skkukuk/compton.conf#L11-L14 but you want to include it instead of excluding it (the key line is 13, but you want to match xmobar's window class instead)
15:48:25 <geekosaur> Ether[m], I copied your config over here so I could see what was going wrong
15:48:38 <Ether[m]> Oo
15:48:39 <geekosaur> you have 10 different copies of `windowNavigation`
15:48:48 <Ether[m]> Yes
15:48:51 <Ether[m]> And?
15:48:58 <geekosaur> one in each layout, one in myLayouts, and one where you use myLayouts
15:48:59 <Ether[m]> For each layout..
15:49:12 <Ether[m]> Yess.
15:49:14 <geekosaur> so you're applyingt it 3 times
15:49:27 <Ether[m]> Ohh
15:49:31 <Ether[m]> So where should i apply it?
15:49:39 <Ether[m]> For all/globally
15:50:32 <geekosaur> you only need the one on line 538, the layoutHook definition
15:50:46 <Ether[m]> Thanks
15:52:07 <Guest53> Thanks, ill give it a try
15:52:19 × cfricke quits (~cfricke@user/cfricke) (Quit: WeeChat 3.4.1)
15:52:39 <Ether[m]> geekosaur: your a genius:)
15:52:43 <geekosaur> and yes, any time you want to use alpha you need a compositor
15:53:04 <geekosaur> some terminals can "fake" it but it's imperfect, and it's only terminals
15:56:11 <geekosaur> which means just setting alpha might be enough as long as picom is running
15:56:49 <geekosaur> (feel free to copy my config though, it's nicer than the default. unless you prefer inactive transparency to inactive dim, but I find that unreadable)
16:13:08 × Guest53 quits (~Guest53@190.192.80.102) (Quit: Client closed)
16:24:36 × werneta quits (~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net) (Ping timeout: 272 seconds)
16:47:16 × mc47 quits (~mc47@xmonad/TheMC47) (Remote host closed the connection)
16:47:35 mc47 joins (~mc47@xmonad/TheMC47)
16:48:42 <Ether[m]> geekosaur i am really struggling trying to get swapping windows directional as expected 😫
16:49:11 <Ether[m]> When i swap master window i cant move left..
16:51:02 <Ether[m]> Window navigation2d doesn't know which window was last focused.. but windowNavigation does but swap wont work :(
16:53:43 <geekosaur> I'm not sure I can help; I don't work with these layouts much, but I know they're kinda abusing xmonad a bit
16:54:48 <Ether[m]> Any ideas?
16:55:21 <Ether[m]> I hate having to itterate again and agin just to get to left or right windows..
16:55:31 <Ether[m]> And i hate wrapping in general..
16:56:37 <geekosaur> not really, no
16:56:50 <geekosaur> maybe someone else here has an idea
16:57:12 <geekosaur> (also I'm shortly going to be away for a couple of hours)
16:57:38 geekosaur 's apartment has bedbugs. they're spraying every few weeks
16:58:13 <geekosaur> (speaking of iterating…)
16:58:35 <Ether[m]> Haha
16:58:48 <Ether[m]> See ya!
17:01:47 The_Czernobog joins (~Czernobog@user/czernobog)
17:01:51 × Czernobog quits (~Czernobog@user/czernobog) (Ping timeout: 256 seconds)
17:02:21 The_Czernobog is now known as Czernobog
17:21:26 × geekosaur quits (~geekosaur@xmonad/geekosaur) (Remote host closed the connection)
17:23:48 geekosaur joins (~geekosaur@xmonad/geekosaur)
17:24:32 × sagax quits (~sagax_nb@user/sagax) (Ping timeout: 250 seconds)
17:29:40 werneta joins (~werneta@137.79.198.1)
17:29:52 × werneta quits (~werneta@137.79.198.1) (Client Quit)
17:42:12 × Czernobog quits (~Czernobog@user/czernobog) (Ping timeout: 246 seconds)
17:43:03 Czernobog joins (~Czernobog@user/czernobog)
19:13:56 Guest53 joins (~Guest53@190.192.80.102)
19:26:24 Zarak[m] joins (~zarakmatr@2001:470:69fc:105::1:f67f)
19:49:39 <anon_kun600[m]> how do I make it to where xmonad'
19:49:45 <anon_kun600[m]> error messages actually are readable to me
19:49:49 <anon_kun600[m]> how do I change font color
19:52:21 ircbrowse_tom joins (~ircbrowse@2a01:4f8:1c1c:9319::1)
19:52:26 Server sets mode +cnt
19:52:43 sagax joins (~sagax_nb@user/sagax)
19:54:56 × geekosaur quits (~geekosaur@xmonad/geekosaur) (Remote host closed the connection)
19:55:16 geekosaur joins (~geekosaur@xmonad/geekosaur)
20:14:49 <geekosaur> hm. normally it uses xmessage and the font is black on white
20:15:36 <geekosaur> did your distro replace xmessage perhaps? or you have a gtk settings manager that also sets resources, in which case you would have to change it there somehow
20:54:59 × Guest53 quits (~Guest53@190.192.80.102) (Quit: Client closed)
21:19:16 yusz-01[m] joins (~yusz-01ma@2001:470:69fc:105::1:f697)
22:34:09 × mc47 quits (~mc47@xmonad/TheMC47) (Remote host closed the connection)
22:55:26 × geekosaur quits (~geekosaur@xmonad/geekosaur) (Remote host closed the connection)
22:57:08 geekosaur joins (~geekosaur@xmonad/geekosaur)
23:07:25 werneta joins (~werneta@137.79.198.1)

All times are in UTC on 2022-04-11.