From asjo at koldfront.dk Sat Nov 2 09:39:06 2019 From: asjo at koldfront.dk (=?utf-8?Q?Adam_Sj=C3=B8gren?=) Date: Sat, 02 Nov 2019 10:39:06 +0100 Subject: [xmonad] spawnOn in startupHook only works for one Nemo window, not the other Message-ID: <87wocipqh1.fsf@tullinup.koldfront.dk> Hi, I'm using spawnOn in my startupHook to open various programs on various virtual desktops when logging in - it's quite nice to have that happen automatically. I start two instances of the Nautilus (file manager) fork Nemo: spawnOn "7" "nemo ~/video/" spawnOn "7" "nemo ~/video/tablet/" But only one of them ends up on desktop 7. The one other is placed on the current desktop. I have tried adding a "sleep 2;" to one of them, to see if it was some timing thing, but the same thing happens. I have also tried to combine them, and have one line starting "nemo ~/video/" nemo ~/video/tablet/", same thing. Oh, and as I am typing this, I realize that the second invocation probably doesn't start a lasting separate process, but messages the first to open a new window, and that original process then opens it, might be why spawnOn seems to "not work". Maybe I should just use manageSpawn to have all Nemo windows end up on desktop 7. I guess I have rubber ducked myself into the answer, but any comments are welcome regardless. Best wishes, Adam -- "Please don't "meh" the panopticon. You are Adam Sjøgren not making things better by doing that." asjo at koldfront.dk From allbery.b at gmail.com Sat Nov 2 10:30:47 2019 From: allbery.b at gmail.com (Brandon Allbery) Date: Sat, 2 Nov 2019 06:30:47 -0400 Subject: [xmonad] spawnOn in startupHook only works for one Nemo window, not the other In-Reply-To: <87wocipqh1.fsf@tullinup.koldfront.dk> References: <87wocipqh1.fsf@tullinup.koldfront.dk> Message-ID: This is a symptom of "factory windows". spawnOn can't work for them, you need to find out the application-specific way to attach distinct identifiers to windows, because _NET_WM_PID will never match for any but the first window opened (and sometimes not then). And no, neither spawnOn nor any similar mechanism will be able to find a "fix",, because "application specific" — and even then not every application bothers to provide a mechanism to label specific windows. On Sat, Nov 2, 2019 at 5:39 AM Adam Sjøgren wrote: > Hi, > > I'm using spawnOn in my startupHook to open various programs on various > virtual desktops when logging in - it's quite nice to have that happen > automatically. > > I start two instances of the Nautilus (file manager) fork Nemo: > > spawnOn "7" "nemo ~/video/" > spawnOn "7" "nemo ~/video/tablet/" > > But only one of them ends up on desktop 7. The one other is placed on > the current desktop. > > I have tried adding a "sleep 2;" to one of them, to see if it was some > timing thing, but the same thing happens. > > I have also tried to combine them, and have one line starting "nemo > ~/video/" nemo ~/video/tablet/", same thing. > > Oh, and as I am typing this, I realize that the second invocation > probably doesn't start a lasting separate process, but messages the > first to open a new window, and that original process then opens it, > might be why spawnOn seems to "not work". > > Maybe I should just use manageSpawn to have all Nemo windows end up on > desktop 7. > > I guess I have rubber ducked myself into the answer, but any comments > are welcome regardless. > > Best wishes, > > Adam > > -- > "Please don't "meh" the panopticon. You are Adam Sjøgren > not making things better by doing that." asjo at koldfront.dk > > _______________________________________________ > xmonad mailing list > xmonad at haskell.org > http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad > -- brandon s allbery kf8nh allbery.b at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ruben.astud at gmail.com Sat Nov 23 04:43:36 2019 From: ruben.astud at gmail.com (Ruben Astudillo) Date: Sat, 23 Nov 2019 01:43:36 -0300 Subject: [xmonad] =?utf-8?q?Universal_argument_a_l=C3=A1_Emacs_for_Xmonad?= Message-ID: <7e1c819e-ff9a-e32b-2466-f0d5a352a23b@gmail.com> Dear all On Emacs you can pass certain functions an interactive argument via the C-u chord. For example you can press C-u 5 C-n to move 5 lines down the buffer. Sometimes I've wanted this functionality on XMonad, for example to be able to do stuff like `C-u 3 modm-m` to move to the third window counted from the main window if it exists. I wonder if somebody know if that's implemented as a module. -- -- Ruben -- PGP: 4EE9 28F7 932E F4AD -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 488 bytes Desc: OpenPGP digital signature URL: From allbery.b at gmail.com Sat Nov 23 12:53:33 2019 From: allbery.b at gmail.com (Brandon Allbery) Date: Sat, 23 Nov 2019 07:53:33 -0500 Subject: [xmonad] =?utf-8?q?Universal_argument_a_l=C3=A1_Emacs_for_Xmonad?= In-Reply-To: <7e1c819e-ff9a-e32b-2466-f0d5a352a23b@gmail.com> References: <7e1c819e-ff9a-e32b-2466-f0d5a352a23b@gmail.com> Message-ID: I don't know of one, but see no reason the machinery in (say) X.A.CycleWindows couldn't be extended to do so. It'd be easier if held to single digits, though. General numeric argument as in emacs is harder, since the only automatic parameter to commands is the focused window and even that is only for mouse actions; there's nowhere to stick it except ExtensibleState for other commands. Hypothetically a wrapper could repeat a command based on said state, but that's not necessarily how you want to handle the parameter in all cases (consider the question of whether the repeats start from the original state or the final one, when the command changes e.g. focused window; and worse when the focused window change happens only later such that you can't really do something based on it). On Fri, Nov 22, 2019 at 11:43 PM Ruben Astudillo wrote: > Dear all > > On Emacs you can pass certain functions an interactive argument via the > C-u chord. For example you can press C-u 5 C-n to move 5 lines down the > buffer. Sometimes I've wanted this functionality on XMonad, for example > to be able to do stuff like `C-u 3 modm-m` to move to the third window > counted from the main window if it exists. I wonder if somebody know if > that's implemented as a module. > > -- > -- Ruben > -- PGP: 4EE9 28F7 932E F4AD > > _______________________________________________ > xmonad mailing list > xmonad at haskell.org > http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad > -- brandon s allbery kf8nh allbery.b at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From fercerpav at gmail.com Sat Nov 23 13:18:52 2019 From: fercerpav at gmail.com (Paul Fertser) Date: Sat, 23 Nov 2019 16:18:52 +0300 Subject: [xmonad] =?iso-8859-1?q?Universal_argument_a_l=E1_Emacs_for_Xmona?= =?iso-8859-1?q?d?= In-Reply-To: <7e1c819e-ff9a-e32b-2466-f0d5a352a23b@gmail.com> References: <7e1c819e-ff9a-e32b-2466-f0d5a352a23b@gmail.com> Message-ID: <20191123131851.GY11070@home.paul.comp> Hey Ruben, On Sat, Nov 23, 2019 at 01:43:36AM -0300, Ruben Astudillo wrote: > C-u chord. For example you can press C-u 5 C-n to move 5 lines down the Is there any reason you're using C-u 5 and not M-5 here? -- Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software! mailto:fercerpav at gmail.com From allbery.b at gmail.com Sat Nov 23 15:09:17 2019 From: allbery.b at gmail.com (Brandon Allbery) Date: Sat, 23 Nov 2019 10:09:17 -0500 Subject: [xmonad] =?utf-8?q?Universal_argument_a_l=C3=A1_Emacs_for_Xmonad?= In-Reply-To: <20191123131851.GY11070@home.paul.comp> References: <7e1c819e-ff9a-e32b-2466-f0d5a352a23b@gmail.com> <20191123131851.GY11070@home.paul.comp> Message-ID: That's a good point too: it'd have to be M-C-u or have some starter sequence like X.A.CycleWindows (M-Tab), or other programs would lose use of C-u. On Sat, Nov 23, 2019 at 8:19 AM Paul Fertser wrote: > Hey Ruben, > > On Sat, Nov 23, 2019 at 01:43:36AM -0300, Ruben Astudillo wrote: > > C-u chord. For example you can press C-u 5 C-n to move 5 lines down the > > Is there any reason you're using C-u 5 and not M-5 here? > > -- > Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software! > mailto:fercerpav at gmail.com > _______________________________________________ > xmonad mailing list > xmonad at haskell.org > http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad > -- brandon s allbery kf8nh allbery.b at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: