Home freenode/#xmonad: Logs Calendar

Logs on 2021-05-23 (freenode/#xmonad)

00:12:25 × thunderrd quits (~thunderrd@183.182.115.96) (Remote host closed the connection)
00:13:44 × notis quits (~notis@85.203.44.98) (Ping timeout: 246 seconds)
00:26:19 boppy joins (~aurdev@116.122.17.21)
00:26:43 <boppy> Hi. is there any ways not to let floating windows hide my Polybar?
00:28:52 davve parts (davve@bsd.douchedata.com) ()
01:11:07 × boppy quits (~aurdev@116.122.17.21) (Quit: WeeChat 3.1)
01:52:43 × kajzer quits (~kajzer@unaffiliated/kajzer) (Quit: WeeChat 3.1)
02:55:41 boppy joins (~aurdev@116.122.17.21)
02:56:12 × boppy quits (~aurdev@116.122.17.21) (Client Quit)
06:17:46 × growpotkin quits (~growpotki@130-45-30-154.dyn.grandenetworks.net) (Quit: ZNC 1.8.2 - https://znc.in)
06:50:38 xubun2 joins (~xubun2@unaffiliated/xubun2)
07:43:21 notis joins (~notis@85.203.44.245)
07:48:16 × xubun2 quits (~xubun2@unaffiliated/xubun2) (Ping timeout: 260 seconds)
08:11:42 dementorr joins (5678f3b6@86.120.243.182)
08:17:24 <dementorr> Hello! I'm using ` spawn ` to create a new process using a keybinding. Usually the process selfcloses, so this works fine. Now, I'm trying to run a process in the background, with a keybinding and I want to stop it with another keybinding. Is there a way to store the PID of the spawned process from the keybinding? Else I guess I could do a "pkill"
08:17:25 <dementorr> but I may close other programs too...
08:17:59 × geekosaur quits (45870322@069-135-003-034.biz.spectrum.com) (Quit: Ping timeout (120 seconds))
08:18:08 <MrElendig> dementorr: systemd-run
08:18:27 <MrElendig> pidfile and pkill are not really reliable
08:21:08 <dementorr> MrElendig: Okay, thanks, I'll look into it!
08:21:49 <MrElendig> pids can be reused in a surprisingly short amount of time on a modern system
08:21:59 <MrElendig> not to mention the issue with stale pid files etc
08:22:10 <MrElendig> the other issues*
08:24:51 <liskin> A modern system with systemd would have the pid space enlarged to 4M so pid reuse isn't that much of a problem, but I agree that just using systemd for managing these processes is easiest.
08:26:15 MrElendig has a modern system with systemd and still get pid reuse after a few days
08:27:30 <MrElendig> ymmv depending on what you are running of course :)
08:39:45 xubun2 joins (~xubun2@unaffiliated/xubun2)
08:51:36 kajzer joins (~kajzer@unaffiliated/kajzer)
08:52:55 <Solid> dementorr: there is the convenient spawnPID in case you don't think you'll run into PID reuse
08:55:00 <dementorr> Solid: Okay, but then I think I should have some global state recording the PID, to be able to remove it later, right?
08:55:44 <Solid> dementorr: yes, get the PID from spawnPID, smack it into an IORef (or similar) and retrieve it when needed
08:57:18 mc47 joins (~yecinem@89.246.239.190)
09:04:11 <liskin> MrElendig: out of curiosity, would you happen to know what is using all those pids on your system?
09:05:10 <MrElendig> liskin: some web services and a couple of local ones, they like to spin up a new process for each request
09:05:23 <liskin> MrElendig: oh
09:05:50 <MrElendig> and some socket activated stuff
09:06:23 <liskin> I just checked and I'm at pid 600000 after just 2 days of uptime, so I guess I'll be rolling over in a few weeks as well
09:07:17 <liskin> could be browser site isolation in my case, and possibly also my love for shell scripts in general :-)
09:52:40 a6a45081-2b83 joins (~aditya@122.163.181.9)
09:54:40 × dweller quits (~dweller@178.62.146.60) (Quit: Reconnecting)
09:54:55 dweller joins (~dweller@178.62.146.60)
10:01:05 × notis quits (~notis@85.203.44.245) (Ping timeout: 260 seconds)
10:09:46 × xubun2 quits (~xubun2@unaffiliated/xubun2) (Ping timeout: 240 seconds)
10:39:35 thunderrd joins (~thunderrd@183.182.115.71)
10:55:43 xubun2 joins (~xubun2@unaffiliated/xubun2)
11:02:40 × codedmart quits (~codedmart@li335-49.members.linode.com) (Quit: ZNC 1.7.5+deb4 - https://znc.in)
11:14:59 × a6a45081-2b83 quits (~aditya@122.163.181.9) (Remote host closed the connection)
11:28:48 kelnoky joins (~shao@ip1f128ba7.dynamic.kabel-deutschland.de)
12:27:25 geekosaur joins (45870322@069-135-003-034.biz.spectrum.com)
12:44:07 notis joins (~notis@185.51.134.230)
12:48:44 <geekosaur> you could copy the mechanism used by XMonad.Actions.SpawnOn, which uses _NET_WM_PID
14:06:29 × kelnoky quits (~shao@ip1f128ba7.dynamic.kabel-deutschland.de) (Quit: WeeChat 3.1)
14:07:23 idhugo joins (~idhugo@80-62-117-193-mobile.dk.customer.tdc.net)
14:14:51 <kajzer> I have one issue, don't know where to look to solve it, it seems like every child window opens behind the main window which produced that child window, in most cases you can't even see that it's there , unless you move the parent window, any fix for that ?
14:19:23 <kajzer> for example, you open Galculator, then go to Edit->Preferences, window opens behind Galculator
14:20:13 <kajzer> or Firefox, say you save some file and then if you try to save it again, a dialog appears with overwrite question, but it's not visible because it's behind the save dialog window
14:37:12 × dementorr quits (5678f3b6@86.120.243.182) (Quit: Connection closed)
14:50:13 × notis quits (~notis@185.51.134.230) (Quit: WeeChat 3.1)
14:52:52 notis joins (~notis@185.51.134.229)
14:59:26 × notis quits (~notis@185.51.134.229) (Ping timeout: 240 seconds)
15:44:47 × mc47 quits (~yecinem@89.246.239.190) (Read error: Connection reset by peer)
15:52:42 mc47 joins (~yecinem@89.246.239.190)
15:57:21 × xubun2 quits (~xubun2@unaffiliated/xubun2) (Ping timeout: 265 seconds)
16:08:26 × idhugo quits (~idhugo@80-62-117-193-mobile.dk.customer.tdc.net) (Remote host closed the connection)
16:08:51 idhugo joins (~idhugo@80-62-117-193-mobile.dk.customer.tdc.net)
17:06:49 notis joins (~notis@85.203.44.98)
17:32:42 × geekosaur quits (45870322@069-135-003-034.biz.spectrum.com) (Ping timeout: 240 seconds)
17:36:43 geekosaur joins (45870322@069-135-003-034.biz.spectrum.com)
17:59:50 × idhugo quits (~idhugo@80-62-117-193-mobile.dk.customer.tdc.net) (Ping timeout: 246 seconds)
18:13:08 × notis quits (~notis@85.203.44.98) (Ping timeout: 246 seconds)
18:37:12 × mc47 quits (~yecinem@89.246.239.190) (Remote host closed the connection)
18:41:43 × geekosaur quits (45870322@069-135-003-034.biz.spectrum.com) (Ping timeout: 240 seconds)
18:46:13 geekosaur joins (45870322@069-135-003-034.biz.spectrum.com)
19:08:36 growpotkin joins (~growpotki@130-45-30-154.dyn.grandenetworks.net)
20:34:58 p_l parts (p_l@gateway/web/irccloud.com/x-tfluxgvgpkthpjvl) ()
20:38:44 notis joins (~notis@185.51.134.230)
20:39:05 × thunderrd quits (~thunderrd@183.182.115.71) (Ping timeout: 268 seconds)
21:44:53 × notis quits (~notis@185.51.134.230) (Ping timeout: 246 seconds)
21:46:26 × geekosaur quits (45870322@069-135-003-034.biz.spectrum.com) (Quit: Connection closed)
21:47:04 notis joins (~notis@85.203.44.98)
22:52:57 geekosaur joins (45870322@069-135-003-034.biz.spectrum.com)
23:14:08 × notis quits (~notis@85.203.44.98) (Ping timeout: 246 seconds)

All times are in UTC on 2021-05-23.