Logs: freenode/#xmonad
| 2020-12-15 18:12:55 | <geekosaur> | this at least needs to be documented better that you need to precreate those, or we need to swap the defaults if we find xmonad.hs in an XDG location |
| 2020-12-15 18:13:43 | <jamik> | Yeah good idea Solid, I'll create that now |
| 2020-12-15 18:17:12 | <Solid> | geekosaur: What would a good default behaviour look like? Check for the XMONAD_ variables and if they are not set; look for xmonad.hs in $XDG_CONFIG_HOME/xmonad and throw everything in there? |
| 2020-12-15 18:17:14 | <jamik> | Isn't it sufficient to use any set XDG variables when they are set, otherwise use the default locations (e.g. in my case putting xmonad.errors in .local/share instead of ~/.xmonad, because $XDG_CONFIG_HOME/xmonad was found but $XDG_DATA_DIR was unset) |
| 2020-12-15 18:17:48 | <jamik> | $XDG_DATA_HOME*** |
| 2020-12-15 18:18:24 | × | geekosaur quits (42d52137@66.213.33.55) (Ping timeout: 245 seconds) |
| 2020-12-15 18:18:28 | → | tux1 joins (~tux@116.251.216.46) |
| 2020-12-15 18:20:27 | <Solid> | jamik: the problem is that it tries putting them in ~/.local/share/xmonad |
| 2020-12-15 18:21:10 | <Solid> | so it checks for XDG_WHATEVER_{HOME,DIR} and if that doesn't exist of course uses a standard path, but always appends the xmonad dir to that |
| 2020-12-15 18:21:33 | <Solid> | at this point I feel like the split overcomplicates things and using the config dir is probably sufficient |
| 2020-12-15 18:22:04 | <Solid> | but I'm not sure how backwards compatible such a change would be |
| 2020-12-15 18:22:40 | <jamik> | I see. Well I can't comment on the pros/cons of the split because I haven't wrote any plugins for xmonad, but I'm inclined to agree with you |
| 2020-12-15 18:30:16 | → | geekosaur joins (42d52137@66.213.33.55) |
| 2020-12-15 18:31:53 | <geekosaur> | at one point we did just that, but it violates XDG to put it all in the same place like that. I'm not sure when the current setup showed up though |
| 2020-12-15 18:34:34 | <Solid> | mh I see |
| 2020-12-15 18:34:44 | <Solid> | so probably no hope of ever seeing this changed? :/ |
| 2020-12-15 18:35:43 | <geekosaur> | probably not, which is why I recommended the other way which would fix it without breaking things for others |
| 2020-12-15 18:36:28 | <geekosaur> | in fact it occurs to me that we should just determine all these dirs up front and stuff them in XConf (not XConfig), then change the function calls that use them to just look them up instead of doing a search each time |
| 2020-12-15 18:37:23 | <geekosaur> | which both makes it easier to set the defaults based on where we found xmonad.hs, and should speed up anything else using them (not that that should be a major performance issue unless some extension is being really stupid) |
| 2020-12-15 18:37:42 | <jamik> | up front meaning upon xmonad startup? Sounds sensible to me |
| 2020-12-15 18:37:46 | <geekosaur> | yes |
| 2020-12-15 18:41:18 | × | tux1 quits (~tux@116.251.216.46) (Quit: WeeChat 2.9) |
| 2020-12-15 18:59:41 | <Solid> | geekosaur: just to be clear I'm understanding you correctly: 1. see if xmonad.hs is in $XMONAD_CONFIG_DIR > ~/.xmonad > $XDG_CONFIG_HOME 2. according to the selection in 1., use XMONAD_ env variables > use xdg_ > use ~/.xmonad 3. put these three dirs into XConf, so `recompile` can simply read them from there instead of determining them every time |
| 2020-12-15 19:00:26 | <geekosaur> | yes. and other consumers, e.g. Prompt's history file |
| 2020-12-15 19:01:03 | <geekosaur> | and there's at least one layout that reads stuff from a file when a workspace is made current (not TopicSpaces but something similar) |
| 2020-12-15 19:01:22 | <Solid> | ah yeah, change all of these as well of course |
| 2020-12-15 19:01:36 | <Solid> | okay I'll create an issue in xmonad/xmonad to have that there |
| 2020-12-15 19:02:23 | <geekosaur> | you'l see all those functions are together and do pretty much the same thing with different default dirs, and do it whenever called instead of remembering the result |
| 2020-12-15 19:03:36 | → | berberman_ joins (~berberman@unaffiliated/berberman) |
| 2020-12-15 19:04:39 | × | berberman quits (~berberman@unaffiliated/berberman) (Ping timeout: 258 seconds) |
| 2020-12-15 19:07:48 | <Solid> | yeah, that part of the code always struck me as a bit weird |
| 2020-12-15 19:10:45 | <geekosaur> | hm, actually stuffing thta into XConf won't work for the biggest use case: recompiling xmonad, which is before XConf exists. sigh |
| 2020-12-15 19:11:09 | <geekosaur> | at least, the possible-recomp on startup |
| 2020-12-15 19:12:36 | <geekosaur> | can't even compute them early and use them late because there's an exec() hopefully in between |
| 2020-12-15 19:13:21 | <geekosaur> | so we end up computing them twice ayway. but we'd at lest avoid them getting different answers, as with the case that set this whole thing off |
| 2020-12-15 19:15:02 | <Solid> | ah yeah you're right |
| 2020-12-15 19:15:47 | <Solid> | I think computing them twice is not big deal, it's not computationally intensive after all |
| 2020-12-15 19:15:53 | <Solid> | *not a |
| 2020-12-15 19:16:05 | <Solid> | still probably the best solution that maintains backwards compatability |
| 2020-12-15 19:22:20 | <Solid> | okay I've created an issue |
| 2020-12-15 19:26:34 | <geekosaur> | blugg |
| 2020-12-15 19:28:09 | <geekosaur> | I guess we could just have recompile always recompute them, but that's most of the use they get so it kinda makes caching the result mostly pointless. |
| 2020-12-15 19:28:58 | <geekosaur> | but then that brings back the original problem that we want to determine defaults based on where we found xmonad.hs, not which dirs exist, so we want to compute all of them at once when we have all that information together |
| 2020-12-15 19:30:36 | × | notis quits (~notis@185.51.134.230) (Ping timeout: 256 seconds) |
| 2020-12-15 19:31:43 | <Solid> | I mean we could compute them once in `xmonad` and then awkwardly thread them through to `buildLaunch` and these kinds of functions |
| 2020-12-15 19:31:57 | <Solid> | but that's a pretty "meh" solution |
| 2020-12-15 19:32:25 | <geekosaur> | you also have to thread them across an executeFile sometimes (usually, if there's a compiled config or one can be built) |
| 2020-12-15 19:32:59 | <geekosaur> | which i why "compute twice" and why the first one doesn't have the XConf until it has failed to find or build a compiled config |
| 2020-12-15 19:46:46 | <Solid> | ah I think I understand what you mean now |
| 2020-12-15 19:47:10 | <Solid> | this seems reasonably straightforward still (said he, before having attempted to write any code) |
| 2020-12-15 19:53:21 | <geekosaur> | it's straightforward,, just annoying |
| 2020-12-15 20:08:17 | × | wonko7 quits (~wonko7@2a01:e35:2ffb:7040:4535:f480:7dff:b3b5) (Ping timeout: 258 seconds) |
| 2020-12-15 20:23:50 | → | wonko7 joins (~wonko7@lns-bzn-55-82-255-183-4.adsl.proxad.net) |
| 2020-12-15 20:43:37 | High | is now known as PsillyCybin |
| 2020-12-15 20:47:25 | → | notis joins (~notis@185.51.134.229) |
| 2020-12-15 21:07:56 | → | ddellacosta joins (dd@gateway/vpn/mullvad/ddellacosta) |
| 2020-12-15 21:53:39 | × | _ashbreeze_ quits (~mark@184-157-32-85.dyn.centurytel.net) (Remote host closed the connection) |
| 2020-12-15 21:54:15 | × | geekosaur quits (42d52137@66.213.33.55) (Remote host closed the connection) |
| 2020-12-15 21:57:22 | × | hexo- quits (~hexo@83.167.228.130) (Quit: ZNC - http://znc.in) |
| 2020-12-15 21:57:49 | × | MasseR quits (~MasseR@51.15.143.128) (Ping timeout: 264 seconds) |
| 2020-12-15 21:59:03 | × | Liskni_si quits (~liskin@ackle.nomi.cz) (Ping timeout: 260 seconds) |
| 2020-12-15 21:59:57 | → | hexo- joins (~hexo@83.167.228.130) |
| 2020-12-15 22:00:00 | → | Liskni_si joins (~liskin@ackle.nomi.cz) |
| 2020-12-15 22:00:13 | → | MasseR joins (~MasseR@51.15.143.128) |
| 2020-12-15 22:03:50 | × | xaltsc quits (~xaltsc@unaffiliated/xaltsc) (Ping timeout: 272 seconds) |
| 2020-12-15 22:14:22 | × | mc47 quits (~yecinem@89.246.239.190) (Remote host closed the connection) |
| 2020-12-15 22:22:14 | → | _ashbreeze_ joins (~mark@184-157-32-85.dyn.centurytel.net) |
| 2020-12-15 22:22:19 | → | ashbreeze joins (~mark@184-157-32-85.dyn.centurytel.net) |
| 2020-12-15 22:23:13 | × | ashbreeze quits (~mark@184-157-32-85.dyn.centurytel.net) (Client Quit) |
| 2020-12-15 22:23:16 | × | _ashbreeze_ quits (~mark@184-157-32-85.dyn.centurytel.net) (Client Quit) |
| 2020-12-15 22:23:46 | → | _ashbreeze_ joins (~mark@184-157-32-85.dyn.centurytel.net) |
| 2020-12-15 22:32:59 | × | thc202 quits (~thc202@unaffiliated/thc202) (Quit: thc202) |
| 2020-12-15 22:48:15 | × | seschwar quits (~seschwar@unaffiliated/seschwar) (Quit: :wq) |
| 2020-12-15 22:48:36 | × | _ashbreeze_ quits (~mark@184-157-32-85.dyn.centurytel.net) (Remote host closed the connection) |
| 2020-12-15 22:49:56 | → | _ashbreeze_ joins (~mark@184-157-32-85.dyn.centurytel.net) |
| 2020-12-15 23:46:24 | × | wonko7 quits (~wonko7@lns-bzn-55-82-255-183-4.adsl.proxad.net) (Ping timeout: 260 seconds) |
| 2020-12-15 23:50:37 | → | wonko7 joins (~wonko7@2a01:e35:2ffb:7040:4535:f480:7dff:b3b5) |
| 2020-12-16 00:01:17 | × | wonko7 quits (~wonko7@2a01:e35:2ffb:7040:4535:f480:7dff:b3b5) (Ping timeout: 260 seconds) |
| 2020-12-16 00:09:52 | × | notis quits (~notis@185.51.134.229) (Ping timeout: 246 seconds) |
| 2020-12-16 00:25:38 | → | xaltsc joins (~xaltsc@unaffiliated/xaltsc) |
| 2020-12-16 01:19:15 | <Liskni_si> | Solid: btw there was another person yesterday complaining in #xmonad:matrix.org about xmonad leaving the state file around, I feel like it can be related to these directory issues |
| 2020-12-16 01:19:23 | <Liskni_si> | or maybe they have an old version or something |
| 2020-12-16 01:20:08 | <Liskni_si> | (I've been fighting systemd all day so only skimmed the discussion here) |
| 2020-12-16 01:21:01 | <Liskni_si> | but I managed to have compton managed by it in multiple X sessions! |
| 2020-12-16 01:21:59 | <Liskni_si> | and in the process found that picom 8.2 is noticeable slower than compton 7.4, and found a bug in bash that I need to report :-) |
| 2020-12-16 01:28:46 | × | rabliatu quits (~quassel@199.58.187.144) (Remote host closed the connection) |
| 2020-12-16 01:34:08 | × | al3x27 quits (~plovs@85.254.75.80) (Quit: WeeChat 2.9) |
| 2020-12-16 01:42:45 | × | xaltsc quits (~xaltsc@unaffiliated/xaltsc) (Ping timeout: 240 seconds) |
| 2020-12-16 01:55:25 | → | rabliatu joins (~quassel@107.158.96.43) |
| 2020-12-16 02:39:21 | × | psamim quits (samimpmatr@gateway/shell/matrix.org/x-tnbwcntwhxafximz) (Ping timeout: 268 seconds) |
| 2020-12-16 02:43:08 | → | psamim joins (samimpmatr@gateway/shell/matrix.org/x-vsfkhpcmdjixlzby) |
| 2020-12-16 02:53:38 | × | burp quits (~quassel@2001:41d0:2:a512::1) (Ping timeout: 260 seconds) |
| 2020-12-16 02:54:52 | → | burp joins (~quassel@2001:41d0:2:a512::1) |
| 2020-12-16 03:12:03 | PsillyCybin | is now known as Hash |
| 2020-12-16 03:15:56 | → | growpotk- joins (~growpotki@130-45-30-154.dyn.grandenetworks.net) |
| 2020-12-16 03:20:37 | × | theDon quits (~td@94.134.91.212) (Ping timeout: 246 seconds) |
| 2020-12-16 03:22:32 | → | theDon joins (~td@94.134.91.88) |
| 2020-12-16 03:25:19 | → | xaltsc joins (~xaltsc@unaffiliated/xaltsc) |
| 2020-12-16 03:36:10 | × | growpotk- quits (~growpotki@130-45-30-154.dyn.grandenetworks.net) (Ping timeout: 256 seconds) |
| 2020-12-16 03:43:27 | × | schweby quits (~quassel@lxqflm.schwe.by) (Quit: Das ist möglich, also tun wir es. Später.) |
All times are in UTC.