Home liberachat/#xmonad: Logs Calendar

Logs on 2022-08-17 (liberachat/#xmonad)

00:27:50 jabuxas joins (~jabuxas@2804:14d:ba4c:831e:2ed4:c29b:22c4:6309)
00:29:29 <jabuxas> hello
00:30:53 <geekosaur> hello
00:31:29 <geekosaur> (I'm headed off to bed shortly and it doesn't look like anyone else is around at the moment; you may have to wait around a few hours…)
00:35:03 <jabuxas> its ok
00:42:16 × jabuxas quits (~jabuxas@2804:14d:ba4c:831e:2ed4:c29b:22c4:6309) (Quit: Leaving)
00:50:18 catman_ joins (~catman@user/catman)
00:50:26 × catman quits (~catman@user/catman) (Killed (tantalum.libera.chat (Nickname regained by services)))
00:50:26 catman_ is now known as catman
00:52:13 jabuxas joins (~jabuxas@2804:14d:ba4c:831e:2ed4:c29b:22c4:6309)
00:56:51 jabas joins (~jabuxas@2804:14d:ba4c:831e:2ed4:c29b:22c4:6309)
00:57:09 × jabas quits (~jabuxas@2804:14d:ba4c:831e:2ed4:c29b:22c4:6309) (Client Quit)
01:01:36 × jabuxas quits (~jabuxas@2804:14d:ba4c:831e:2ed4:c29b:22c4:6309) (Quit: Leaving)
01:01:47 jabuxas joins (~jabuxas@2804:14d:ba4c:831e:2ed4:c29b:22c4:6309)
01:32:26 × jao quits (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) (Remote host closed the connection)
01:35:16 jao joins (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net)
01:40:12 [Leary] joins (~Leary]@122-58-223-158-adsl.sparkbb.co.nz)
02:02:49 × banc quits (banc@gateway/vpn/airvpn/banc) (Ping timeout: 252 seconds)
02:06:51 × ectospasm quits (~ectospasm@user/ectospasm) (Quit: WeeChat 3.6)
02:10:48 × jabuxas quits (~jabuxas@2804:14d:ba4c:831e:2ed4:c29b:22c4:6309) (Remote host closed the connection)
02:22:52 banc joins (banc@gateway/vpn/airvpn/banc)
02:24:49 × td_ quits (~td@muedsl-82-207-238-061.citykom.de) (Ping timeout: 252 seconds)
02:26:44 td_ joins (~td@94.134.91.250)
02:50:45 ectospasm joins (~ectospasm@user/ectospasm)
03:01:17 vreahli joins (~user@2601:647:5700:1380::de62)
03:09:56 × vreahli quits (~user@2601:647:5700:1380::de62) (Remote host closed the connection)
03:47:26 × mvk quits (~mvk@2607:fea8:5ce3:8500::a1ec) (Ping timeout: 255 seconds)
04:08:58 × jao quits (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) (Ping timeout: 268 seconds)
04:41:19 × noex quits (~null@user/noex) (Quit: :q!)
04:54:24 qbt joins (~qbt@user/edun)
05:16:51 × steve_ quits (~steve@ool-182c2b80.dyn.optonline.net) (Ping timeout: 248 seconds)
05:21:16 <isaacthekind[m]> is there a way to set a certain application to always open on primary display?
05:21:33 <isaacthekind[m]> and to always go fullscreen on said display
05:21:40 <isaacthekind[m]> (a game in this case)
05:27:12 <Solid> that's what the managehook is for
05:27:25 <Solid> if you can somehow match the window
05:45:38 chomwitt joins (~chomwitt@2a02:587:dc06:ee00:4e2b:7ca9:316d:45c)
05:50:33 × chomwitt quits (~chomwitt@2a02:587:dc06:ee00:4e2b:7ca9:316d:45c) (Ping timeout: 256 seconds)
05:54:08 <isaacthekind[m]> hmm ok lemme explore that thx
06:33:01 alternateved joins (~user@staticline-31-183-146-203.toya.net.pl)
06:43:29 × alternateved quits (~user@staticline-31-183-146-203.toya.net.pl) (Read error: Connection reset by peer)
06:43:50 alternateved joins (~user@staticline-31-183-146-203.toya.net.pl)
07:04:12 cfricke joins (~cfricke@user/cfricke)
07:22:55 × cfricke quits (~cfricke@user/cfricke) (Ping timeout: 256 seconds)
07:34:39 cfricke joins (~cfricke@user/cfricke)
07:46:14 steve_ joins (~steve@ool-182c2b80.dyn.optonline.net)
08:14:31 benin0 joins (~benin@183.82.30.34)
08:18:38 mvk joins (~mvk@2607:fea8:5ce3:8500::a1ec)
09:00:49 × liskin[m] quits (~liskinmat@2001:470:69fc:105::768) (Quit: You have been kicked for being idle)
10:12:09 × mvk quits (~mvk@2607:fea8:5ce3:8500::a1ec) (Ping timeout: 244 seconds)
12:11:18 <Solid> uff, munic is expensive :/
12:11:32 liskin[m] joins (~liskinmat@2001:470:69fc:105::768)
12:15:34 <Solid> s/ic/ich/
12:19:33 × catman quits (~catman@user/catman) (Ping timeout: 252 seconds)
12:21:42 catman joins (~catman@user/catman)
12:26:17 chomwitt joins (~chomwitt@2a02:587:dc16:4100:bf02:bf7d:726d:6c5b)
12:28:59 benin04 joins (~benin@183.82.31.103)
12:30:36 × benin0 quits (~benin@183.82.30.34) (Ping timeout: 256 seconds)
12:30:37 benin04 is now known as benin0
12:30:56 × cfricke quits (~cfricke@user/cfricke) (Ping timeout: 268 seconds)
12:31:20 cfricke joins (~cfricke@user/cfricke)
12:34:50 × chomwitt quits (~chomwitt@2a02:587:dc16:4100:bf02:bf7d:726d:6c5b) (Ping timeout: 255 seconds)
12:50:31 × catman quits (~catman@user/catman) (Quit: WeeChat 3.6)
12:53:26 catman joins (~catman@user/catman)
13:52:40 <Zedgamer9128[m]> Is there any command to open an app in workspace from the terminal like i want to open nvim in workspace 2 directly from the commandline
13:55:00 <vrs> you'll have to set up a managehook
13:55:43 <vrs> I tend to use hookNext from https://hackage.haskell.org/package/xmonad-contrib-0.17.0/docs/XMonad-Hooks-ToggleHook.html#v:hookNext
13:56:17 <geekosaur[m]> There isn't really a reliable way to associate a terminal command with a window opening since unix is asynchronous
13:57:07 <vrs> yeah but the unreliable way works 99% of the time
13:57:17 <vrs> if you're not spawning many windows at once that is
15:09:10 × alternateved quits (~user@staticline-31-183-146-203.toya.net.pl) (Remote host closed the connection)
16:43:06 × benin0 quits (~benin@183.82.31.103) (Quit: The Lounge - https://thelounge.chat)
16:46:36 jao joins (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net)
17:02:54 zim0369 joins (~zim0369@114.143.131.219)
17:04:24 logzet joins (~quassel@2001:9e8:e505:d000:dabb:c1ff:fed3:a1b9)
17:04:49 × cfricke quits (~cfricke@user/cfricke) (Ping timeout: 252 seconds)
17:08:59 Maeda joins (~Maeda@91-161-10-149.subs.proxad.net)
17:11:32 × Maeda quits (~Maeda@91-161-10-149.subs.proxad.net) (Client Quit)
17:11:37 × jeeeun4 quits (~jeeeun@78.40.148.178) (Quit: The Lounge - https://thelounge.chat)
17:12:48 jeeeun4 joins (~jeeeun@78.40.148.178)
17:18:31 Maeda joins (~Maeda@91-161-10-149.subs.proxad.net)
17:20:26 <Maeda> Hello there, is it possible to use relative paths (like "~/") with appendFilePrompt to specify the notes file?
17:22:19 <geekosaur> that's not a relative path, but it is using a shell metacharacter and appendFilePrompt does not go through the shell
17:25:12 <Solid> we have some function that expands ~/ in X.Prelude now, so I would imagine it'd just be a matter of telling X.P.AppendFile about it
17:25:36 <Maeda> I think I saw some other supporting this (I might be wrong of course).
17:26:02 <davean> ~ isn't even POSIX is it? Its shell specific I think. If you want the POSIX version its $HOME?
17:26:07 <geekosaur> probably put it in doAppend
17:26:19 <davean> I think ~ is a cshellism
17:26:25 <geekosaur> but we don't expand envars either, we just call appendFile directly
17:26:39 <davean> Oh I'm just saying it isn't clear what ~ does
17:26:56 <geekosaur> and yes, ~ is a cshellism that made its way into bash and zsh
17:27:13 <geekosaur> along with its cousin ~username
17:27:16 <Maeda> $HOME might be OK too, I just want to avoid the full path
17:27:32 <davean> Right, so the only way to expand ~ correctly is "ask the shell"
17:27:38 <davean> we DO know how $HOME works
17:27:58 <davean> zsh has a lot of stuff around ~
17:28:05 <Maeda> Out of the box $HOME will not work with appendFile, am I right?
17:28:18 <geekosaur> correct because we don't handle envars either
17:29:10 × jeeeun4 quits (~jeeeun@78.40.148.178) (Quit: The Lounge - https://thelounge.chat)
17:29:35 geekosaur looks at mkAbsolutePath and immediately dislikes it
17:31:38 <geekosaur> https://github.com/xmonad/xmonad-contrib/blob/master/XMonad/Prelude.hs#L112-L118 the default case seems like it's just asking to confuse people
17:33:00 jeeeun4 joins (~jeeeun@78.40.148.178)
17:33:01 <geekosaur> Maeda, since 99% of the time (100% if using a display manager to log in) your current directory will be $HOME, you can probably just use a relative pathname
17:33:37 <geekosaur> and the remaining 1% of the time you probably didn't intend to run startx from somewhere other than ~
17:35:41 <Maeda> $HOME is already known in the system, so using this in `(("M-n"), appendFilePrompt myXPConfig "$HOME/NOTES")` can make it but need to import that Prelude part to make that $HOME usable.
17:37:11 <geekosaur> no? XMonad.Prelude won't cause environment variables to be expanded. and no import does anything except make functions available for use, it doesn't e.g. change how strings are interpreted
17:39:36 <Maeda> OK so to use the relative pathname without $HOME (or ~/), do you have some example (just NOTES?)
17:39:45 <geekosaur> just NOTES
17:40:19 Maeda is trying that NOTES :p
17:42:00 <Maeda> Works like a charm! Thank you :)
17:43:03 <Solid> probably not that difficult to ake mkAbsolutePath expand env vars
17:44:30 <geekosaur> right, I just put it on my bucket list
17:44:51 <geekosaur> and I looked at the code again and realized it's not quite as WRONG as the comment makes it out to be
17:44:52 <Maeda> For me it is just that it is not obvious to just type a name and expect it to create in home folder. But at least that works.
17:48:03 <geekosaur> for me it'd be surprising for my basic environment/wm to not be in my home directory
17:48:19 <geekosaur> windows can be wherever but the wm itself should be in ~
17:56:24 <Solid> oh, yeah, the comment is wrong
17:57:44 × qbt quits (~qbt@user/edun) (Quit: WeeChat 3.5)
18:03:22 <Solid> geekosaur: is there some standard as to which characters env var names can include?
18:05:24 <geekosaur> https://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap08.html
18:05:48 <geekosaur> names can include anything except an equal sign, but in practice are limited to uppercase letters, digits, and underscore
18:06:15 <geekosaur> in particular shells are unlikely to be able to process names with characters outside of that set
18:06:59 <geekosaur> (well, they can handle lowercase, but the shell convention is that names with lowercase in them are process local and all uppercase names come from the environment)
18:08:38 <geekosaur> at one point bash tried to export functions by putting names with parentheses in them in the environment. that ended poorly
18:09:12 × zim0369 quits (~zim0369@114.143.131.219) (Quit: Client closed)
18:10:23 <geekosaur> *lots* of programs that look at envars crashed on encountering those names, not just non-bash shells
18:11:14 zim0369 joins (~zim0369@114.143.131.219)
18:16:58 <Solid> hah
18:17:03 <isaacthekind[m]> i'm struggling a bit with workspaces and projects, i have these different projects built. like for ex i have one that is 3 terminals. but i can't seem to get keybinds working to switch between projects. yet whenever my leftmost monitor is empty, if i click it suddenly 3 terminals show up (aka my project)...
18:17:11 × zim0369 quits (~zim0369@114.143.131.219) (Quit: Client closed)
18:19:26 zim0369 joins (~zim0369@114.143.131.219)
18:34:41 × zim0369 quits (~zim0369@114.143.131.219) (Quit: Client closed)
18:36:11 zim0369 joins (~zim0369@114.143.131.219)
18:45:21 cfricke joins (~cfricke@user/cfricke)
19:12:39 × zim0369 quits (~zim0369@114.143.131.219) (Quit: Client closed)
19:14:47 zim0369 joins (~zim0369@114.143.131.219)
19:29:21 × zim0369 quits (~zim0369@114.143.131.219) (Quit: Client closed)
19:55:49 chomwitt joins (~chomwitt@2a02:587:dc16:4100:1289:3f0b:2a03:948d)
20:47:40 × logzet quits (~quassel@2001:9e8:e505:d000:dabb:c1ff:fed3:a1b9) (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)
21:06:33 × Maeda quits (~Maeda@91-161-10-149.subs.proxad.net) (Quit: leaving)
21:43:18 jabuxas joins (~jabuxas@2804:14d:ba4c:831e:2ed4:c29b:22c4:6309)
21:45:25 × jabuxas quits (~jabuxas@2804:14d:ba4c:831e:2ed4:c29b:22c4:6309) (Client Quit)
21:45:51 jabuxas joins (~jabuxas@2804:14d:ba4c:831e:2ed4:c29b:22c4:6309)
21:48:47 × cfricke quits (~cfricke@user/cfricke) (Ping timeout: 255 seconds)
21:54:11 × jao quits (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) (Ping timeout: 248 seconds)
21:55:11 jao joins (jao@gateway/vpn/protonvpn/jao)
22:14:06 <geekosaur> I have a silly question. Why does `mkAbsolutePath` use `liftIO` when we get the alias `io` from `import XMonad`?
22:50:11 × jao quits (jao@gateway/vpn/protonvpn/jao) (Ping timeout: 248 seconds)
22:57:03 jao joins (jao@gateway/vpn/protonvpn/jao)
23:05:35 <geekosaur> well. not difficult but the pretty pointfree nature of doAppend went away when I had to integrate an impure mkAbsolutePath into the middle of it
23:05:54 scotabroad[m] joins (~scotabroa@2001:470:69fc:105::2:3c91)
23:06:25 × jao quits (jao@gateway/vpn/protonvpn/jao) (Ping timeout: 256 seconds)
23:08:49 <scotabroad[m]> I'm on NixOS and have tried both trayer and stalonetray. Both seem to have the same problem where icons don't update properly and overlap (like my ibus monitor will just layer the new icons on top of the old ones, so when I switch keyboards everything becomes ugly). Any ideas what's going wrong?
23:14:35 jao joins (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net)
23:20:03 × banc quits (banc@gateway/vpn/airvpn/banc) (Ping timeout: 248 seconds)
23:31:46 <xmonadtrack> New xmonad-contrib branch created: pull/744 (2 commits) https://github.com/xmonad/xmonad-contrib/pull/744
23:31:46 <xmonadtrack> xmonad-contrib Brandon S Allbery KF8NH https://github.com/xmonad/xmonad-contrib/pull/744 * v0.17.0-215-g70f831fd: make `mkAbsolutePath` handle environment variables (21 minutes ago, 1 file, 17+ 9-) https://github.com/xmonad/xmonad-contrib/commit/70f831fdbaa4
23:31:46 <xmonadtrack> xmonad-contrib Brandon S Allbery KF8NH https://github.com/xmonad/xmonad-contrib/pull/744 * v0.17.0-216-g59ef924f: make `doAppend` use `mkAbsolutePath` (21 minutes ago, 1 file, 2+ 1-) https://github.com/xmonad/xmonad-contrib/commit/59ef924f7855
23:48:54 mvk joins (~mvk@2607:fea8:5ce3:8500::a1ec)

All times are in UTC on 2022-08-17.