Logs: liberachat/#xmonad
| 2022-03-24 10:26:39 | <Solid> | try removing it |
| 2022-03-24 10:36:12 | → | haskl joins (~haskl@user/haskl) |
| 2022-03-24 10:39:16 | <fizzie> | If that's a browser (as it seems), and it does the usual browser thing (of having a process unrelated to the executed command-line tool be the one that "owns" the windows, at least when there's already one running), it's inherently SpawnOn-incompatible. |
| 2022-03-24 10:41:33 | <fizzie> | Of course the easier problem would be that if you literally only changed `spawnToWorkspace` to `spawnOn`, that means you didn't add the `manageSpawn` manageHook that it needs to work (too). |
| 2022-03-24 10:43:08 | <Solid> | I think they already have that added |
| 2022-03-24 10:43:42 | <Solid> | (I remember looking for that a few days ago when hastily looking through the config) |
| 2022-03-24 10:43:46 | <CodeBitCookie[m]> | yup I already added that. |
| 2022-03-24 10:48:25 | <fizzie> | For the other problem, a test for that would be to do something like ` sh -c 'echo $$; exec nyxt' ` in a terminal, and compare the PID it printed out with what running `xprop _NET_WM_PID` and clicking the newly opened window says. If those are two different numbers, it's never going to work with spawnOn. |
| 2022-03-24 10:50:09 | <fizzie> | Likewise for `emacs --daemon && emacsclient -c` which definitely will have a different process for the daemon than the shell started by spawn. |
| 2022-03-24 10:52:29 | × | Natch quits (~natch@c-67bae255.014-297-73746f25.bbcust.telenor.se) (Ping timeout: 256 seconds) |
| 2022-03-24 10:55:03 | → | Natch joins (~natch@c-67bae255.014-297-73746f25.bbcust.telenor.se) |
| 2022-03-24 10:55:40 | <fizzie> | (For those kinds of windows, XMonad.Hooks.ToggleHook's `hookNext` is one possible solution, though it's got its own race condition in that it will apply the given operation to the next window spawned, whatever it is. So spawnOn's definitely nicer for "regular" programs.) |
| 2022-03-24 10:57:48 | <lyiriyah[m]> | Could probably filter by class to decide whether to use `hookNext` or `spawnOn` |
| 2022-03-24 11:17:27 | <CodeBitCookie[m]> | <fizzie> "Likewise for `emacs --daemon..." <- no it still shows 1 number |
| 2022-03-24 11:17:32 | <CodeBitCookie[m]> | all applications show one number |
| 2022-03-24 11:17:51 | <CodeBitCookie[m]> | <lyiriyah[m]> "Could probably filter by class..." <- Show what am I supposed to do" |
| 2022-03-24 11:17:55 | <CodeBitCookie[m]> | s/"/?/ |
| 2022-03-24 11:18:18 | <lyiriyah[m]> | Give me a sec. |
| 2022-03-24 11:19:07 | <geekosaur> | CodeBitCookie[m], the problem is it's showing the wrong number |
| 2022-03-24 11:19:37 | <geekosaur> | we get a number back from spawnOn. It has to maytch the _NET_WM_PID property of the resulting window for spawnOn to work |
| 2022-03-24 11:20:15 | <geekosaur> | putting stuff inb the background, launching emacsclient,etc., will guaranteed get you the wrong number |
| 2022-03-24 11:21:28 | <geekosaur> | in the case of emacsclient, it's because we get the number from emacsclient but the window is opened by and has the _NET_WM_PID of the emacs --server process |
| 2022-03-24 11:23:26 | <CodeBitCookie[m]> | <Solid> "CodeBitCookie: that & is..." <- Apparently not. I removed everything to startup and put this line: ``spawnOn "2" myBrowser`` Still didn't work. |
| 2022-03-24 11:23:48 | <CodeBitCookie[m]> | > <@Solid:libera.chat> CodeBitCookie: that & is probably confusing spawnOn |
| 2022-03-24 11:23:48 | <CodeBitCookie[m]> | * Apparently not. I replaced everything to startup with this line: `spawnOn "2" myBrowser` Still didn't work. |
| 2022-03-24 11:23:49 | <lambdabot> | <hint>:1:1: error: parse error on input ‘<@’ |
| 2022-03-24 11:24:02 | <CodeBitCookie[m]> | * Apparently not. I replaced everything to startup with this line: `spawnOn "2" myBrowser` Which still didn't work. |
| 2022-03-24 11:25:18 | <CodeBitCookie[m]> | geekosaur: So should I seperate emacs into two lines? |
| 2022-03-24 11:25:23 | <CodeBitCookie[m]> | s/seperate/separate/ |
| 2022-03-24 11:25:44 | <CodeBitCookie[m]> | Also, even if that's the problem, why doesn't it work with just my browser. |
| 2022-03-24 11:25:45 | <fizzie> | In case of spawnOn "emacs --daemon && emacsclient -c", I imagine what spawnOn gets back is the PID of the shell launched to handle the command line, not even the emacsclient process. But still, it's different from that of the window, is the point. |
| 2022-03-24 11:25:50 | <CodeBitCookie[m]> | lambdabot: Huh? |
| 2022-03-24 11:25:53 | <geekosaur> | you've been told multiple times that browsers don't work at all |
| 2022-03-24 11:27:01 | <geekosaur> | you have to use hookNext with a browser; the number we get is for a background process that spawns foreground processes that open windows, for security reasons |
| 2022-03-24 11:33:20 | <geekosaur> | also,why are you trying to talk to a bot? |
| 2022-03-24 11:33:21 | × | dschrempf quits (~dominik@070-207.dynamic.dsl.fonira.net) (Quit: WeeChat 3.4.1) |
| 2022-03-24 11:33:38 | <geekosaur> | "> " line prefix evaluates an expression |
| 2022-03-24 12:08:28 | <CodeBitCookie[m]> | <geekosaur> "also,why are you trying to..." <- geekosaur: Oh, Whoops. Didn' |
| 2022-03-24 12:08:31 | <CodeBitCookie[m]> | * Whoops. Didn't really think about that. |
| 2022-03-24 12:09:00 | <CodeBitCookie[m]> | <geekosaur> "you have to use hookNext with..." <- sooooo, replace SpawnOn with HookNext? |
| 2022-03-24 12:09:01 | <geekosaur> | > foldr (*) z [a,b,c] |
| 2022-03-24 12:09:03 | <lambdabot> | a * (b * (c * z)) |
| 2022-03-24 12:09:36 | <geekosaur> | you also have to import XMonad.Hooks.ToggleHook, as fizzie said |
| 2022-03-24 12:10:06 | <geekosaur> | browsers are just annoying, although sadly they have good reason to be annoying |
| 2022-03-24 12:15:46 | <abastro[m]> | Hm what could I do with a single wine window showing as multiple windows? |
| 2022-03-24 12:16:00 | <abastro[m]> | It causes stutter in tiling |
| 2022-03-24 12:19:44 | <CodeBitCookie[m]> | <geekosaur> "> foldr (*) z [a,b,c]" <- What do you mean/ |
| 2022-03-24 12:19:46 | <CodeBitCookie[m]> | > <@geekosaur:libera.chat> > foldr (*) z [a,b,c] |
| 2022-03-24 12:19:46 | <CodeBitCookie[m]> | * What do you mean? |
| 2022-03-24 12:19:47 | <lambdabot> | <hint>:1:1: error: parse error on input ‘<@’ |
| 2022-03-24 12:21:48 | → | allbery_b joins (~geekosaur@xmonad/geekosaur) |
| 2022-03-24 12:21:48 | × | geekosaur quits (~geekosaur@xmonad/geekosaur) (Killed (NickServ (GHOST command used by allbery_b))) |
| 2022-03-24 12:21:52 | allbery_b | is now known as geekosaur |
| 2022-03-24 12:21:54 | <abastro[m]> | A supposedly single window by wine app occupying multiple slots. |
| 2022-03-24 12:22:29 | <abastro[m]> | Only rendered on one slot, not rendered on other slots. |
| 2022-03-24 12:43:02 | × | lambdabot quits (~lambdabot@haskell/bot/lambdabot) (Remote host closed the connection) |
| 2022-03-24 12:45:57 | → | lambdabot joins (~lambdabot@haskell/bot/lambdabot) |
| 2022-03-24 12:48:53 | × | noex quits (~null@user/noex) (Ping timeout: 268 seconds) |
| 2022-03-24 12:48:57 | <Solid> | ...what? |
| 2022-03-24 12:49:39 | → | noex joins (~null@user/noex) |
| 2022-03-24 12:50:40 | <geekosaur> | that sounds like a failed copyWindow or something |
| 2022-03-24 12:53:17 | <geekosaur> | mm, don't know how to fix offhand but you could use XMonad.Hooks.DebugStack to verify it |
| 2022-03-24 12:53:36 | <geekosaur> | actually, if that'sthe actual problem thenkillAllOtherCopies should fix |
| 2022-03-24 12:53:49 | <geekosaur> | * then killAllOtherCopies |
| 2022-03-24 12:56:21 | <abastro[m]> | Interesting, let me try that |
| 2022-03-24 13:23:45 | × | bfrk quits (~Thunderbi@i59F7ABBC.versanet.de) (Ping timeout: 252 seconds) |
| 2022-03-24 13:25:43 | × | cfricke quits (~cfricke@user/cfricke) (Ping timeout: 260 seconds) |
| 2022-03-24 14:25:06 | × | benin quits (~benin@183.82.207.30) (Quit: Ping timeout (120 seconds)) |
| 2022-03-24 14:30:07 | → | benin joins (~benin@183.82.207.30) |
| 2022-03-24 14:33:54 | × | geekosaur quits (~geekosaur@xmonad/geekosaur) (Killed (NickServ (GHOST command used by allbery_b))) |
| 2022-03-24 14:33:54 | → | allbery_b joins (~geekosaur@xmonad/geekosaur) |
| 2022-03-24 14:33:57 | allbery_b | is now known as geekosaur |
| 2022-03-24 14:56:24 | × | benin quits (~benin@183.82.207.30) (Quit: Ping timeout (120 seconds)) |
| 2022-03-24 15:01:17 | → | benin joins (~benin@183.82.207.30) |
| 2022-03-24 15:14:03 | × | benin quits (~benin@183.82.207.30) (Quit: Ping timeout (120 seconds)) |
| 2022-03-24 15:14:22 | → | benin joins (~benin@183.82.207.30) |
| 2022-03-24 15:33:09 | → | bfrk joins (~Thunderbi@2001:9e8:35a:5100:856a:b99d:e3e6:3974) |
| 2022-03-24 15:33:51 | → | cfricke joins (~cfricke@user/cfricke) |
| 2022-03-24 16:00:50 | × | liskin[m] quits (~liskinmat@2001:470:69fc:105::768) (Quit: You have been kicked for being idle) |
| 2022-03-24 16:17:10 | → | banc- joins (banc@gateway/vpn/airvpn/banc) |
| 2022-03-24 16:17:11 | × | twiclo quits (~twiclo@mail.twil.cx) (Ping timeout: 256 seconds) |
| 2022-03-24 16:18:06 | × | banc quits (~banc@217.138.195.27) (Ping timeout: 252 seconds) |
| 2022-03-24 16:18:59 | → | twiclo joins (~twiclo@204.14.20.66.static.utbb.net) |
| 2022-03-24 16:21:33 | × | bfrk quits (~Thunderbi@2001:9e8:35a:5100:856a:b99d:e3e6:3974) (Quit: bfrk) |
| 2022-03-24 16:30:59 | → | dsnix[m] joins (~dsnixmatr@2001:470:69fc:105::1:e475) |
| 2022-03-24 16:48:29 | → | benin0 joins (~benin@183.82.207.30) |
| 2022-03-24 16:50:03 | × | benin quits (~benin@183.82.207.30) (Ping timeout: 256 seconds) |
| 2022-03-24 16:50:03 | benin0 | is now known as benin |
| 2022-03-24 16:51:31 | × | cfricke quits (~cfricke@user/cfricke) (Quit: WeeChat 3.4.1) |
| 2022-03-24 17:03:25 | → | seschwar joins (~seschwar@user/seschwar) |
| 2022-03-24 17:21:08 | → | iqubic joins (~iqubic@2601:602:9502:c70:742a:b30a:543c:2639) |
| 2022-03-24 17:21:34 | → | erts joins (~erts@user/erts) |
| 2022-03-24 17:21:35 | <iqubic> | So, Arch + Haskell sucks major time! |
| 2022-03-24 17:21:42 | <iqubic> | I'm back to NixOS. |
| 2022-03-24 17:21:48 | → | liskin[m] joins (~liskinmat@2001:470:69fc:105::768) |
| 2022-03-24 17:22:10 | <iqubic> | How can I get xmonad 0.17 installed and running on my NixOS box. |
| 2022-03-24 17:22:34 | <geekosaur> | saw that earlier. no clue about configuration though, nixos has its own way of configuring xmonad (and apparently everything else) |
| 2022-03-24 17:22:53 | <iqubic> | What OS do you use? |
| 2022-03-24 17:23:00 | <geekosaur> | ubuntu |
| 2022-03-24 17:23:15 | <iqubic> | Also, I'm asking in the NixOS matrix space for advice now too. |
All times are in UTC.