Home freenode/#xmonad: Logs Calendar

Logs on 2020-12-07 (freenode/#xmonad)

00:35:13 × avn quits (~avn@78-56-108-78.static.zebra.lt) (Remote host closed the connection)
00:41:56 × xaltsc quits (~xaltsc@unaffiliated/xaltsc) (Ping timeout: 240 seconds)
00:47:13 × abhixec quits (~abhixec@c-67-169-141-95.hsd1.ca.comcast.net) (Ping timeout: 272 seconds)
00:51:39 abhixec joins (~abhixec@c-67-169-141-95.hsd1.ca.comcast.net)
01:03:51 incertia joins (~incertia@d4-50-26-103.nap.wideopenwest.com)
02:00:34 doct0rhu joins (~orctarorg@pool-72-88-158-154.nwrknj.fios.verizon.net)
03:28:28 materiyolo joins (~materiyol@112.204.171.225)
03:31:25 × theDon quits (~td@94.134.91.74) (Ping timeout: 240 seconds)
03:33:27 theDon joins (~td@muedsl-82-207-238-155.citykom.de)
04:18:17 × dxld quits (~dxld@rush.pub.dxld.at) (Quit: Bye)
04:19:26 dxld joins (~dxld@rush.pub.dxld.at)
04:48:04 × materiyolo quits (~materiyol@112.204.171.225) (Read error: Connection reset by peer)
05:02:56 ChubaDuba joins (~ChubaDuba@176.212.37.249)
05:05:22 materiyolo joins (~materiyol@112.204.171.225)
05:32:27 xaltsc joins (~xaltsc@unaffiliated/xaltsc)
05:49:54 <Hash> https://twitter.com/HashBorgir/status/1335823439572029440 Hi I made a meme for Xmonad
06:07:41 × Rockj quits (~rockj@2001:67c:550:feed::1) (Ping timeout: 272 seconds)
06:11:02 palo1 joins (~weechat@c-base/crew/palo)
06:14:02 × palo quits (~weechat@c-base/crew/palo) (Ping timeout: 256 seconds)
06:14:02 palo1 is now known as palo
06:25:51 Rockj joins (~rockj@2001:67c:550:feed::1)
06:37:24 sgibber2018 joins (d055ed89@208.85.237.137)
06:49:04 × ChubaDuba quits (~ChubaDuba@176.212.37.249) (Quit: WeeChat 1.6)
06:49:57 × Solid quits (~blyat@unaffiliated/solid-) (Quit: Connection reset by pear)
06:50:18 Solid joins (~blyat@unaffiliated/solid-)
06:51:12 × lambdabot quits (~lambdabot@haskell/bot/lambdabot) (Remote host closed the connection)
06:55:08 lambdabot joins (~lambdabot@haskell/bot/lambdabot)
06:55:08 ChanServ sets mode +v lambdabot
07:03:55 × growpotkin quits (~growpotki@130-45-30-154.dyn.grandenetworks.net) (Quit: ZNC 1.8.2 - https://znc.in)
07:09:45 × Rockj quits (~rockj@2001:67c:550:feed::1) (Ping timeout: 272 seconds)
07:19:27 cfricke joins (~cfricke@unaffiliated/cfricke)
07:22:56 × sgibber2018 quits (d055ed89@208.85.237.137) (Remote host closed the connection)
07:34:58 Rockj joins (~rockj@2001:67c:550:feed::1)
07:42:03 × materiyolo quits (~materiyol@112.204.171.225) (Read error: Connection reset by peer)
07:45:50 notis joins (~notis@185.51.134.222)
08:10:18 × cfricke quits (~cfricke@unaffiliated/cfricke) (Quit: WeeChat 2.9)
08:15:59 styledash6 joins (~styledash@157.230.173.136)
08:17:07 × styledash quits (~styledash@157.230.173.136) (Read error: Connection reset by peer)
08:17:07 styledash6 is now known as styledash
08:18:04 × wagle quits (~wagle@quassel.wagle.io) (Ping timeout: 260 seconds)
08:18:14 wagle joins (~wagle@quassel.wagle.io)
09:02:31 × davemq quits (~davemq@99-179-0-50.lightspeed.austtx.sbcglobal.net) (Quit: ZNC 1.8.2 - https://znc.in)
09:02:55 cfricke joins (~cfricke@unaffiliated/cfricke)
09:03:20 davemq joins (~davemq@2600:1700:b1c0:2580::779)
09:14:55 mc47 joins (~yecinem@89.246.239.190)
09:30:48 thc202 joins (~thc202@unaffiliated/thc202)
09:32:21 × doct0rhu quits (~orctarorg@pool-72-88-158-154.nwrknj.fios.verizon.net) (Remote host closed the connection)
09:34:44 × Rockj quits (~rockj@2001:67c:550:feed::1) (Ping timeout: 240 seconds)
09:56:04 × davemq quits (~davemq@2600:1700:b1c0:2580::779) (Ping timeout: 240 seconds)
09:57:48 davemq joins (~davemq@99-179-0-50.lightspeed.austtx.sbcglobal.net)
10:01:24 Rockj joins (~rockj@2001:67c:550:feed::1)
10:07:42 × davemq quits (~davemq@99-179-0-50.lightspeed.austtx.sbcglobal.net) (Quit: ZNC 1.8.2 - https://znc.in)
10:08:55 davemq joins (~davemq@99-179-0-50.lightspeed.austtx.sbcglobal.net)
10:20:18 sgibber2018 joins (~arch-gibb@208.85.237.137)
10:33:58 × ericsagnes quits (~ericsagne@2405:6580:0:5100:a371:8651:d375:8998) (Ping timeout: 260 seconds)
11:12:38 berberman_ joins (~berberman@unaffiliated/berberman)
11:14:13 × berberman quits (~berberman@unaffiliated/berberman) (Ping timeout: 272 seconds)
11:51:56 ericsagnes joins (~ericsagne@2405:6580:0:5100:6bac:e6f6:3f72:904)
12:05:57 ericsagn1 joins (~ericsagne@2405:6580:0:5100:7a63:b14:7ffa:8369)
12:09:54 × ericsagnes quits (~ericsagne@2405:6580:0:5100:6bac:e6f6:3f72:904) (Ping timeout: 268 seconds)
12:22:53 × Rockj quits (~rockj@2001:67c:550:feed::1) (Ping timeout: 246 seconds)
12:26:54 × xaltsc quits (~xaltsc@unaffiliated/xaltsc) (Ping timeout: 256 seconds)
12:44:47 × ericsagn1 quits (~ericsagne@2405:6580:0:5100:7a63:b14:7ffa:8369) (Ping timeout: 272 seconds)
12:56:46 ericsagn1 joins (~ericsagne@2405:6580:0:5100:bb34:5759:3e20:182c)
12:59:48 dawiss joins (~dawiss@185-119-185-201.actus-info.pl)
13:00:34 × dawiss quits (~dawiss@185-119-185-201.actus-info.pl) (Client Quit)
13:01:35 dawiss joins (~dawiss@185-119-185-201.actus-info.pl)
13:16:49 × dawiss quits (~dawiss@185-119-185-201.actus-info.pl) (Quit: Lost terminal)
13:17:05 dawiss joins (~dawiss@185-119-185-201.actus-info.pl)
13:18:52 × dxld quits (~dxld@rush.pub.dxld.at) (Quit: Bye)
13:20:04 dxld joins (~dxld@rush.pub.dxld.at)
13:24:26 geekosaur joins (82659a09@host154-009.vpn.uakron.edu)
13:47:58 xaltsc joins (~xaltsc@unaffiliated/xaltsc)
13:54:22 × dawiss quits (~dawiss@185-119-185-201.actus-info.pl) (Quit: Lost terminal)
13:54:25 Rockj joins (~rockj@2001:67c:550:feed::1)
14:00:00 × cfricke quits (~cfricke@unaffiliated/cfricke) (Quit: WeeChat 2.9)
14:01:51 geekosaur69 joins (82659a09@host154-009.vpn.uakron.edu)
14:02:59 × geekosaur quits (82659a09@host154-009.vpn.uakron.edu) (Ping timeout: 245 seconds)
14:04:55 geekosaur69 is now known as geekosaur
14:21:12 × Rockj quits (~rockj@2001:67c:550:feed::1) (Ping timeout: 260 seconds)
14:29:40 × elGamal quits (~elg@172.98.82.232) (Ping timeout: 246 seconds)
14:33:23 elGamal joins (~elg@172.98.82.232)
14:41:01 dawiss joins (~dawiss@185-119-185-201.actus-info.pl)
14:42:06 × dawiss quits (~dawiss@185-119-185-201.actus-info.pl) (Client Quit)
14:42:25 dawiss joins (~dawiss@185-119-185-201.actus-info.pl)
14:43:49 × geekosaur quits (82659a09@host154-009.vpn.uakron.edu) (Remote host closed the connection)
14:49:10 × sfrique quits (~sfrique@189.122.177.88) (Remote host closed the connection)
14:55:35 × dawiss quits (~dawiss@185-119-185-201.actus-info.pl) (Quit: leaving)
14:57:45 malook joins (~Thunderbi@5.82.52.68)
15:00:09 berberman joins (~berberman@unaffiliated/berberman)
15:00:57 × berberman_ quits (~berberman@unaffiliated/berberman) (Ping timeout: 272 seconds)
15:07:20 daphnis joins (~daphnis@cm-84.214.179.98.getinternet.no)
15:08:20 <daphnis> is it easily possible to float a window such that it stops at the status bar & doesn't cover it?
15:22:56 × abhixec quits (~abhixec@c-67-169-141-95.hsd1.ca.comcast.net) (Ping timeout: 240 seconds)
15:25:07 abhixec joins (~abhixec@c-67-169-141-95.hsd1.ca.comcast.net)
15:43:16 <coldpress> daphnis: a non-xmonad solution is to pass X Geometry to the application that opened that window. E.g. xclock takes a -geometry argument
15:45:19 × malook quits (~Thunderbi@5.82.52.68) (Quit: malook)
15:52:13 × hexo quits (~hexo@gateway/tor-sasl/hexo) (Remote host closed the connection)
15:52:29 hexo joins (~hexo@gateway/tor-sasl/hexo)
16:04:24 Rockj joins (~rockj@2001:67c:550:feed::1)
16:08:09 <daphnis> coldpress: thanks
16:15:13 <daphnis> .. so i'm trying to use a named scratchpad to find an emacs scratch frame, but with findemacs = className =? "Emacs" <&&> resource =? "*scratch*", it isn't found; which is funny, because i'm using the same with "mail" to find an instance for mail; tried with \\* and \\\\* too
16:16:51 <Solid> is xprop reporting the correct name?
16:17:09 <Solid> resource seems to be an alias for appName, which matches on the first string of the WM_CLASS property
16:19:44 <Solid> emacs also has the `--title` option to set this explicitly btw
16:21:38 × Rockj quits (~rockj@2001:67c:550:feed::1) (Ping timeout: 264 seconds)
16:21:41 <daphnis> Solid: thanks, that helps.
16:22:33 <Solid> if you use emacsclient you can do something like `emacsclient -F '(quote (name . "MY_NAME"))'` to set an instance name
16:25:31 × hexo quits (~hexo@gateway/tor-sasl/hexo) (Remote host closed the connection)
16:25:50 hexo joins (~hexo@gateway/tor-sasl/hexo)
16:26:17 <daphnis> Solid: what do i use instead of resource to look for a name property?
16:28:39 <Solid> daphnis: the `--title` option actually sets the window title, so you can query that with `title`
16:29:00 <Solid> the emacsclient stuff sets the instance name, so you can use `appName` (or, apparently, `resource`) to query that
16:29:57 <Solid> so just `appName =? "my-inst-name"` or something like that
16:30:51 <Solid> apparently emacs can set the instance name as well with `--name`
16:31:04 <Solid> probably better to use that instead of overwriting the window title
16:31:46 <daphnis> Solid: yeah, that's what i use with the mail instance, but i can't get it to work with emacsclient
16:31:50 seschwar joins (~seschwar@unaffiliated/seschwar)
16:32:06 <daphnis> (--name, that is)
16:33:23 <Solid> daphnis: can you post the code? sound sweird
16:37:48 <daphnis> Solid: emacsclient -ncF '(quote (name . "foo"))' doesn't change the first string of WM_CLASS
16:38:20 <daphnis> yes, but i'm doing this on an offline machine
16:39:41 × meck quits (~meck@li1809-18.members.linode.com) (Quit: ZNC 1.8.2 - https://znc.in)
16:40:09 <Solid> daphnis: that's... really weird
16:40:14 <Solid> it should definitely set the instance name
16:40:22 <Solid> and it does for me, I just checked with what you send
16:40:29 <Solid> s/send/sent/
16:41:02 <Solid> xprop returns `WM_CLASS(STRING) = "foo", "Emacs"`
16:41:31 meck joins (~meck@li1809-18.members.linode.com)
16:44:45 <daphnis> Solid: odd. don't know if this could be an emacs-version thing. i'm using 28.0.50
16:45:17 <Solid> hah, me too, actually
16:45:38 <Solid> I don't know when I compiled this though; probably two months or so ago at this point
16:46:07 Rockj joins (~rockj@2001:67c:550:feed::1)
16:46:59 <daphnis> i have "foo" in ICON_NAME, NAME, WM_NAME, but CLASS is "emacs", "Emacs"
16:48:42 <daphnis> i mean wm_icon_name, wm_name and _net_*
16:49:15 <daphnis> so all i need is a way to refer to wm_name from xmonad
16:50:59 × Rockj quits (~rockj@2001:67c:550:feed::1) (Ping timeout: 246 seconds)
16:51:05 <Solid> if you're fine with that you can use `title`
16:51:36 <Solid> from XMonad.ManageHook
16:52:28 <daphnis> Solid: thanks, that works! i thought i tried that before too, but maybe something else was wrong then.
16:59:16 × sagax quits (~sagax_nb@213.138.71.146) (Remote host closed the connection)
17:04:43 <crab> so `wmctrl -i -a 0x01e00002` now just switches to the workspace where the target window is, but doesn't raise it and give it focus any more.
17:05:07 <crab> i'm not sure if this stopped working when i upgraded from xmonad 0.14.something to 0.15, or if it was something else.
17:05:21 geekosaur joins (82659a09@host154-009.vpn.uakron.edu)
17:05:23 <crab> does anyone know offhand of a reason why it wouldn't work, or where i should look?
17:05:33 × dxld quits (~dxld@rush.pub.dxld.at) (Quit: Bye)
17:07:24 <crab> i am sure it used to work under xmonad at some point with substantially the same configuration i use now. i just don't know exactly when it broke.
17:07:43 dxld joins (~dxld@rush.pub.dxld.at)
17:08:41 nova joins (~novasenco@gateway/tor-sasl/novasenco)
17:09:29 <nova> greetings. w xmobar -> not sure how to get the workspaces into the bar. I feel like that's a primary reason to have a bar in the first place.
17:09:38 <geekosaur> one thing to watch out for with emacs windows is sometimes it starts their names with spaces to mark them "hidden", so try " *scratch*" just to see if it helps
17:10:08 <crab> however, `wmctrl -i -R` DOES work (to bring the window to the current workspace and give it focus)
17:10:16 <nova> I believe it has something to do with StdinReader, but I didn't quite see how or why or what I ought to do.
17:10:25 <Solid> nova: check out X.H.DynamicLog
17:12:12 <geekosaur> crab, that would be expected as it would land at the top of the stack and get focused anyway. I'm not sure about the other one, but ewmh has had a number of changes in the past several versions
17:12:28 <nova> I hate to be a non-rtfm-er but today is also my first day in xmonad. nonetheless, I will check that out and see what I see
17:13:02 Rockj joins (~rockj@2001:67c:550:feed::1)
17:14:35 <geekosaur> oh, right. https://github.com/xmonad/xmonad-contrib/blob/master/XMonad/Hooks/EwmhDesktops.hs#L77
17:14:54 <Solid> nova: the tl;dr is start with `xmonad =<< xmobar myConfig` and use `statusBar` if you want to later add your own PP
17:15:02 <geekosaur> focus switching is disabled by default because browsers in particular abuse it to raise themselves on pretty much any excuse
17:15:12 <Solid> nova: you also need to put that StdinReader into your xmobar config
17:15:21 <Solid> I'm not sure if it's there by default
17:15:26 growpotkin joins (~growpotki@130-45-30-154.dyn.grandenetworks.net)
17:17:01 <nova> on arch, no default xmobar config, but I used archwiki's xmobar config and heavily modified it. There was no StdinReader in the default config for xmobar, but when I added it, I saw the text, "Loading..." where StdinReader was suppsoed to be. I probably did something wrong
17:17:31 <geekosaur> that just indicates it's waiting to hear from xmonad, where you need to configure DynamicLog to feed it
17:17:36 <nova> I have `main = do` then `xmproc <- spawnPipe "xmobar"` .. I basically followed the youtuber DT and did what he did
17:17:39 def_jam joins (~eblip@unaffiliated/eblip)
17:17:49 eb0t_ joins (~eblip@unaffiliated/eblip)
17:19:26 <Solid> nova: the `xmobar` and `statusBar` functions do all the plumbing for you --- no need to manually spawn the pipe!
17:19:50 <nova> yes, it's very annoying to need to pkill xmobar if I restart xmonad
17:20:01 × eblip quits (~eblip@unaffiliated/eblip) (Ping timeout: 264 seconds)
17:20:07 × eb0t quits (~eblip@unaffiliated/eblip) (Ping timeout: 265 seconds)
17:20:11 <Solid> xmobar should actually be killed when the pipe closes
17:20:24 × SpiderPig quits (~matt@047-132-233-190.res.spectrum.com) (Remote host closed the connection)
17:20:37 <nova> eh. If I restart xmonad 5 times, I will end up with 6 xmobar processes
17:20:39 SpiderPig joins (~matt@047-132-233-190.res.spectrum.com)
17:21:25 <Solid> okay so first things first: have you added "Run StdinReader" somewhere in your commands
17:21:27 <nova> anyway, I have no idea what I am doing, but I will keep reading. Thanks. If someone has a good place to start, that would be great. Maybe I need to restart from the beginning
17:21:41 <nova> yeah I added Run ..
17:21:48 <Solid> have you also added "%StdinReader%" in your template?
17:21:57 <nova> of course
17:22:39 <Solid> in that case your xmonad config is probably not redirecting xmobar to the pipe
17:22:55 <Solid> we could probably help you better if you posted it ;)
17:26:10 <nova> sure. one second. I had removed the stdin reader stuff because it wasn't working.
17:27:48 <nova> xmobarrc http://vpaste.net/76LiZ xmonad.hs http://vpaste.net/iS0S5
17:29:04 <Solid> yes, the problem is that while you spawn the pipe, you don't set the output anywhere
17:29:25 <Solid> try `main = xmonad =<< xmobar defaults`
17:29:55 <nova> what about "docks"
17:29:59 <nova> meh okay I try anyway
17:30:09 <Solid> the `xmobar` function adds `docks`
17:30:21 <Solid> that's why I said it does all the plumbing ;)
17:31:10 × abhixec quits (~abhixec@c-67-169-141-95.hsd1.ca.comcast.net) (Ping timeout: 272 seconds)
17:32:08 <Liskni_si> crab: as geekosaur said, the default for EWMH window activation changed, specifically a few weeks ago when https://github.com/xmonad/xmonad-contrib/pull/192 was merged, and there's https://github.com/xmonad/xmonad-contrib/issues/396 which describes why I don't think this change of default is desired and some details about what I'm doing about it
17:32:53 <geekosaur> hm, a few weeks ago? they said something about 0.13
17:33:23 <Liskni_si> crab: the current state is that I made all the changes except documentation to EwmhDesktops but I am yet to adapt X.H.Focus to my work, and I keep postponing it as I work on more pressing stuff (in other oss projects)
17:33:44 <Liskni_si> geekosaur: I think crab updated to latest git a few days ago or something
17:34:07 <Liskni_si> geekosaur: and I'm fairly sure the default for what to do on _NET_ACTIVE_WINDOW clientmessage changed in #192
17:34:17 <geekosaur> oh, I may have mssed that. was trying to catch up on about 3 things from the logs
17:34:53 <nova> aha. Solid, I got "xmobar: Variable not in scope". Going with what someone else said about DynamicLog .. I imported it hoping that xmobar was defined there. It works. I have ugly colors for the workspaces but it works. woot thanks https://i.imgur.com/hamPhf8.png
17:35:38 <geekosaur> so you were using the pipe somehow after all?
17:35:56 <Solid> geekosaur: they didn't ppOutput correctly
17:36:03 <Solid> *didn't configure
17:36:34 <Solid> nova: that DynamicLog module also lets you define a pretty-printer for nicer colours ;)
17:37:13 <Solid> n.b. I would advise you against using that template config; it's just there for telling you what the defaults are (otherwise, if they ever change for some reason you won't even know!)
17:39:22 <nova> I think I understand. To clarify, xmonad knows about the workspaces, and so its stdout is spitting that out. Then, we're "shoving" xmonad's stdout into xmobar's stdin (effectively it's a pipe) with the =<< ...???
17:42:53 <Solid> essentially yes; though the xmobar function does a bit more than just starting xmobar and guiding xmonad's output to it (e.g. it also makes xmonad aware that you have a status bar and windows shouldn't cover it)
17:44:09 <Solid> =<< is just there to combine the `xmonad` function with the `xmobar` value (but since these both produce side-effects you need to be a little bit smart in how you combine them)
17:48:44 <nova> well, besides the fact that I am not extremely Haskell literate, I like xmonad. What they say is correct. I spent years in i3 (my first twm), then bspwm a year in bspwm, then a couple years in dwm. Let's see how far xmonad will carry me. I will be using Haskell more soon, and will keep reading about xmonad and tweaking xmonad in the mean time. Thanks
17:49:00 <Solid> \o/
18:00:40 malook joins (~Thunderbi@5.82.52.68)
18:06:57 × Rockj quits (~rockj@2001:67c:550:feed::1) (Ping timeout: 246 seconds)
18:17:53 Rockj joins (~rockj@2001:67c:550:feed::1)
18:23:37 × Rockj quits (~rockj@2001:67c:550:feed::1) (Ping timeout: 272 seconds)
18:37:56 × daphnis quits (~daphnis@cm-84.214.179.98.getinternet.no) (Ping timeout: 240 seconds)
18:47:14 × seschwar quits (~seschwar@unaffiliated/seschwar) (Quit: :wq)
18:48:41 Rockj joins (~rockj@2001:67c:550:feed::1)
18:50:36 × malook quits (~Thunderbi@5.82.52.68) (Quit: malook)
19:00:36 × ericsagn1 quits (~ericsagne@2405:6580:0:5100:bb34:5759:3e20:182c) (Ping timeout: 268 seconds)
19:03:35 berberman_ joins (~berberman@unaffiliated/berberman)
19:04:18 × berberman quits (~berberman@unaffiliated/berberman) (Ping timeout: 268 seconds)
19:05:41 seschwar joins (~seschwar@unaffiliated/seschwar)
19:12:31 ericsagn1 joins (~ericsagne@2405:6580:0:5100:2d4d:701:5c5e:b872)
19:25:44 sagax joins (~sagax_nb@213.138.71.146)
19:25:53 daphnis joins (~daphnis@cm-84.214.179.98.getinternet.no)
19:30:08 × Rockj quits (~rockj@2001:67c:550:feed::1) (Ping timeout: 244 seconds)
19:39:41 × dxld quits (~dxld@rush.pub.dxld.at) (Quit: Bye)
19:41:50 dxld joins (~dxld@80-109-136-248.cable.dynamic.surfer.at)
19:44:30 × sgibber2018 quits (~arch-gibb@208.85.237.137) (Quit: WeeChat 2.9)
19:53:18 abhixec joins (~abhixec@c-67-169-141-95.hsd1.ca.comcast.net)
20:13:39 <dminuoso> What's the mechanisms a windows application can use to get focus?
20:15:32 <geekosaur> ?
20:16:15 <geekosaur> If you mean a windowed application, that's normally the urgency hint or EWMH equivalent (try wmctrl).
20:17:08 <geekosaur> if you actually mean Windows, thats' up to whatever functionality the VM app exposes via its guest tools
20:18:47 <geekosaur> for a terminal application it'll be up to the terminal. often but not always printing '\BEL' (or equivalent, e.g. shell "printf '\a'") will set the terminal's urgency hint
20:18:52 <dminuoso> No, windowed application, sorry.
20:18:56 × daphnis quits (~daphnis@cm-84.214.179.98.getinternet.no) (Ping timeout: 240 seconds)
20:19:38 <dminuoso> In particular I have this issue with slack, where sometimes I get this "focus fight" that drives my CPU and me crazy. So Im trying to understand the protocol used how Slack can force X11 to gain focus on a particular dialog
20:20:07 <dminuoso> I have an urgency hook, but that one doesn't put the window on active, I have it wired to just trigger a notify-send.
20:21:10 <geekosaur> oh, that's different again. it sends _WM_NET_FOCUS to the root window with its own window ID as payload. browsers do this too (in fact slack is almost certainly a browser window)
20:22:00 <geekosaur> browsers like to do this kind f fight and a change was just pushed to git which causes xmonad to ignore external focus change requests by default because of it
20:22:34 <geekosaur> sorry _NET_WM_FOCUS I think. can look it up precisely if needed but it's a client message
20:25:44 ybenel joins (~Mandalore@unaffiliated/ybenel)
20:26:25 <dminuoso> _NET_WM_STATE_FOCUSED possibly?
20:27:49 <ybenel> fellas , i'm trying to add a scratchpad item of moc but i'm having issue spawning it back instead of opening another window .
20:27:52 <dminuoso> I'd be interested in what was changed in xmonad then, because if I can suppress this behavior, it would give me some peace.
20:28:35 <ybenel> WM_NAME And WM_ICON_NAME Keeps Changing Making It Difficult to spawn back
20:28:40 <ybenel> spawnMocp = myTerminal ++ " -n mocp -e 'mocp'"
20:28:40 <ybenel> findMocp = (stringProperty "WM_COMMAND" =? "{ 'xterm', '-n', 'mocp', '-e', 'mocp' }")
20:28:51 <geekosaur> actually it's https://specifications.freedesktop.org/wm-spec/latest/ar01s03.html#idm45131921765200
20:28:51 <ybenel> i tried WM_COMMAND seems didn't work as well
20:29:13 daphnis joins (~daphnis@cm-84.214.179.98.getinternet.no)
20:29:25 <geekosaur> WM_COMMAND is only guaranteed to be set in response to WM_SAVE_YOURSELF i.e. the ancient session manager protocol
20:30:11 <dminuoso> Ah, so Slack would send _NET_ACTIVE_WINDOW to the root window, and if the window manager then respected that request, the focus would change?
20:30:47 <dminuoso> Oh, I didnt seem to read it until the end
20:30:50 <geekosaur> ybenel, you want appName if you're using -n or -name
20:30:50 <dminuoso> Depending on the information provided with the message, the Window Manager may decide to refuse the request (either completely ignore it, or e.g. use _NET_WM_STATE_DEMANDS_ATTENTION).
20:31:24 <ybenel> geekosaur: yeah i already tried that but moc keeps updating the class names
20:32:18 <geekosaur> what? while running in the terminal it's updating the terminal's WM_CLASS? that sounds unlikely and grounds for ICCCM smackdown
20:32:30 <ybenel> WM_ICON_NAME(STRING) = "MOC [play] - Oliver Schories - Molero (Relatively Definately)"
20:32:41 <ybenel> instead of sticking to MOC
20:33:08 <geekosaur> why do you believe WM_ICON_NAME is appName?
20:33:17 <ybenel> WM_ICON_NAME(STRING) = "MOC [stop]"
20:33:19 <ybenel> no
20:33:28 <ybenel> WM_NAME
20:33:35 <ybenel> is the same as WM_ICON_NAME
20:33:49 <ybenel> both are changing with the same values
20:34:04 <geekosaur> you used xterm -n, it set WMCNAME, it set WM_CLASS string 0, it set WM_ICON_NAME. of those, wm_CLASS string 0 is the fixed reliable one
20:34:23 <geekosaur> or use -name and it just sets WM_CLASS string 0
20:35:22 <ybenel> yes i know , but moc keeps changing WM_NAME And WM_ICON_NAME
20:35:28 × abhixec quits (~abhixec@c-67-169-141-95.hsd1.ca.comcast.net) (Ping timeout: 272 seconds)
20:35:37 <ybenel> and Xterm sets WM_CLASS To Xterm
20:36:05 <ybenel> i used -class it changed the class to whatever i choose but the window kinda messed up
20:36:33 <geekosaur> you are still ignoring -name
20:37:18 <ybenel> i used both -n and -name, but Moc keeps changing their values
20:37:31 <geekosaur> sigh
20:38:17 <geekosaur> WM_CLASS contains two strings. one xmonad calls appName; it is set by -n and by -name. the other xmonad calls className; it is set by -class
20:38:34 <ybenel> yes
20:38:36 <geekosaur> WM_CLASS is the one you care about. Not WM_NAME. Not WM_ICON_NAME
20:38:50 <ybenel> -class messed up the font
20:38:56 <ybenel> it uses the default font
20:39:09 <ybenel> not the one through Xresources
20:39:12 <geekosaur> and you care specifically about the first string, which is set by -n abd by -name and which xmonad calls appName
20:40:45 <geekosaur> and you want to match it with appName, not with a stringProperty call
20:41:08 <ybenel> here's how -class makes the window
20:41:12 <ybenel> https://0x0.st/ihSh.png
20:41:20 <ybenel> regulary https://0x0.st/ihSF.png
20:41:40 <geekosaur> nobody whatsoever is telliing you to use -class
20:42:15 <ybenel> what do u suggest
20:42:28 <geekosaur> I already suggested it. you've been ignoring it.
20:42:53 <geekosaur> you run: xterm -name mocp -e mocp
20:43:32 <ybenel> but WM_CLASS Is Always Xterm,xterm
20:43:34 <geekosaur> your matcher is: findMocp = appName =? "mocp"
20:43:47 <ybenel> ahhhh
20:43:55 <geekosaur> not if you used -name correctly
20:44:15 <ybenel> alright, i'll test it brb
20:44:48 <Liskni_si> dminuoso: my draft pull request lets you just mark the browser/Slack window as urgent when it tries to steal focus
20:45:05 <dminuoso> Liskni_si: Can you give me a pointer to that pull request?
20:45:27 <Liskni_si> dminuoso: https://github.com/xmonad/xmonad-contrib/pull/399
20:45:36 <ybenel> it worked
20:45:43 <ybenel> very promising
20:45:45 <geekosaur> that may just means it flickers a lot, if it's that poorly behaved
20:46:04 <ybenel> thanks alot geekosaur
20:53:39 <dminuoso> Liskni_si: Cheers. I have a forest of issues, commits and some pull request to go through.
21:15:02 × ml| quits (~ml|@unaffiliated/ml/x-3958674) (Ping timeout: 256 seconds)
21:20:02 wonko7 joins (~wonko7@lns-bzn-55-82-255-183-4.adsl.proxad.net)
21:29:09 ml| joins (~ml|@unaffiliated/ml/x-3958674)
21:31:02 × thc202 quits (~thc202@unaffiliated/thc202) (Quit: thc202)
21:39:45 Rockj joins (~rockj@2001:67c:550:feed::1)
21:45:02 × Rockj quits (~rockj@2001:67c:550:feed::1) (Ping timeout: 264 seconds)
21:45:36 × mc47 quits (~yecinem@89.246.239.190) (Remote host closed the connection)
21:46:48 × geekosaur quits (82659a09@host154-009.vpn.uakron.edu) (Remote host closed the connection)
21:50:17 drl joins (~l@2600:1700:8360:3870::725)
21:59:17 × drl quits (~l@2600:1700:8360:3870::725) (Remote host closed the connection)
22:02:43 × By_JumperX4[m] quits (byjumperx4@gateway/shell/matrix.org/x-rfwizjkmmxybnvls) (*.net *.split)
22:02:44 × sm[m] quits (simonmicma@gateway/shell/matrix.org/x-tslfcdwovccelfgc) (*.net *.split)
22:02:44 × Taneb quits (~Taneb@2001:41c8:51:10d:aaaa:0:aaaa:0) (*.net *.split)
22:25:03 × ericsagn1 quits (~ericsagne@2405:6580:0:5100:2d4d:701:5c5e:b872) (Ping timeout: 260 seconds)
22:30:06 Taneb joins (~Taneb@2001:41c8:51:10d:aaaa:0:aaaa:0)
22:30:23 By_JumperX4[m] joins (byjumperx4@gateway/shell/matrix.org/x-lnqpenmcodalzcib)
22:30:58 sfrique joins (~sfrique@189.122.177.88)
22:31:41 drl joins (~l@2600:1700:8360:3870::725)
22:33:31 sm[m] joins (simonmicma@gateway/shell/matrix.org/x-knubyzlepnzyxdvt)
22:37:23 ericsagn1 joins (~ericsagne@2405:6580:0:5100:4353:f1b0:3343:508)
22:42:28 <sfrique> is there anycommand to logout from command line?
22:43:13 <sfrique> I am trying to using gridselection to suspend, logout and etc but can't see a good way of loging out, i may kill monad.. should work, but not pretty
22:46:05 Rockj joins (~rockj@2001:67c:550:feed::1)
22:48:45 <dminuoso> Liskni_si: Thank you, seems to work great! :)
22:50:53 × Rockj quits (~rockj@2001:67c:550:feed::1) (Ping timeout: 272 seconds)
22:52:32 × seschwar quits (~seschwar@unaffiliated/seschwar) (Quit: :wq)
22:53:26 Rockj joins (~rockj@2001:67c:550:feed::1)
22:57:29 × notis quits (~notis@185.51.134.222) (Ping timeout: 265 seconds)
22:57:52 <ybenel> sfrique: AppGrid = [("Item1", "commnad"), ('Quit', io exitSuccess)]
22:59:44 × ybenel quits (~Mandalore@unaffiliated/ybenel) (Remote host closed the connection)
23:08:57 <sfrique> hmm, how do i call it?
23:15:19 ddellacosta joins (dd@gateway/vpn/mullvad/ddellacosta)
23:44:18 × wonko7 quits (~wonko7@lns-bzn-55-82-255-183-4.adsl.proxad.net) (Ping timeout: 256 seconds)
23:44:23 drl_ joins (~l@2600:1700:8360:3870::725)
23:45:13 × drl_ quits (~l@2600:1700:8360:3870::725) (Client Quit)
23:50:32 × daphnis quits (~daphnis@cm-84.214.179.98.getinternet.no) (Ping timeout: 272 seconds)
23:51:19 × drl quits (~l@2600:1700:8360:3870::725) (Remote host closed the connection)
23:54:00 drl joins (~l@2600:1700:8360:3870::725)

All times are in UTC on 2020-12-07.