Home freenode/#xmonad: Logs Calendar

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

00:00:34 mohab joins (~mohab@156.223.100.215)
00:09:26 × mohab quits (~mohab@156.223.100.215) (Ping timeout: 240 seconds)
00:34:53 × joanut quits (~joanut@78-142-31-126.sf.ddns.bulsat.com) (Remote host closed the connection)
00:58:01 × kajzer quits (~kajzer@unaffiliated/kajzer) (Quit: WeeChat 3.1)
01:42:42 × geekosaur quits (930099da@rrcs-147-0-153-218.central.biz.rr.com) (Ping timeout: 240 seconds)
02:05:07 × oxide quits (~lambda@unaffiliated/mclaren) (Ping timeout: 252 seconds)
02:05:41 davve_ joins (davve@bsd.douchedata.com)
02:06:05 × davve quits (davve@bsd.douchedata.com) (Read error: Connection reset by peer)
02:06:26 × lambdabot quits (~lambdabot@silicon.int-e.eu) (Ping timeout: 240 seconds)
02:07:11 × dweller quits (~dweller@178.62.146.60) (Ping timeout: 246 seconds)
02:07:25 dweller joins (~dweller@178.62.146.60)
02:10:07 lambdabot joins (~lambdabot@haskell/bot/lambdabot)
02:10:07 ChanServ sets mode +v lambdabot
02:16:03 × davve_ quits (davve@bsd.douchedata.com) (Read error: Connection reset by peer)
02:16:10 davve joins (davve@bsd.douchedata.com)
02:51:19 × theDon quits (~td@muedsl-82-207-238-126.citykom.de) (Ping timeout: 252 seconds)
02:51:59 oxide joins (~lambda@unaffiliated/mclaren)
02:53:08 theDon joins (~td@94.134.91.159)
03:11:11 mohab joins (~mohab@156.223.115.103)
03:21:25 × oxide quits (~lambda@unaffiliated/mclaren) (Ping timeout: 268 seconds)
03:31:01 oxide joins (~lambda@unaffiliated/mclaren)
04:31:35 thoros joins (~thoros@193-154-185-59.adsl.highway.telekom.at)
04:35:11 × oxide quits (~lambda@unaffiliated/mclaren) (Ping timeout: 240 seconds)
05:12:26 × coldpress quits (~coldpress@128.9.105.34.bc.googleusercontent.com) (Ping timeout: 240 seconds)
05:47:31 × growpotkin quits (~growpotki@130-45-30-154.dyn.grandenetworks.net) (Quit: ZNC 1.8.2 - https://znc.in)
05:51:26 wonko7 joins (~wonko7@62.115.229.50)
06:09:00 dschrempf joins (~user@070-207.dynamic.dsl.fonira.net)
06:09:23 pmj joins (~pmj@ipbcc2919d.dynamic.kabel-deutschland.de)
06:21:05 × dminuoso quits (~dminuoso@static.88-198-218-68.clients.your-server.de) (Changing host)
06:21:05 dminuoso joins (~dminuoso@unaffiliated/dminuoso)
06:25:24 × dschrempf quits (~user@070-207.dynamic.dsl.fonira.net) (Remote host closed the connection)
06:26:01 dschrempf joins (~user@070-207.dynamic.dsl.fonira.net)
06:56:03 thc202 joins (~thc202@unaffiliated/thc202)
07:08:21 × thunderrd quits (~thunderrd@183.182.115.120) (*.net *.split)
07:19:47 notis joins (~notis@85.203.44.149)
07:24:59 × notis quits (~notis@85.203.44.149) (Ping timeout: 246 seconds)
07:26:06 notis joins (~notis@85.203.44.149)
07:32:08 cfricke joins (~cfricke@unaffiliated/cfricke)
07:41:57 × pmj quits (~pmj@ipbcc2919d.dynamic.kabel-deutschland.de) (Ping timeout: 260 seconds)
08:01:18 × evanjs quits (~evanjs@075-129-098-007.res.spectrum.com) (Read error: Connection reset by peer)
08:03:36 evanjs joins (~evanjs@075-129-098-007.res.spectrum.com)
08:09:21 kajzer joins (~kajzer@unaffiliated/kajzer)
08:15:37 pmj joins (~pmj@p4fe156fa.dip0.t-ipconnect.de)
08:15:46 × vrs quits (~vrs@unaffiliated/vrs) (Ping timeout: 240 seconds)
08:16:33 vrs joins (~vrs@unaffiliated/vrs)
08:21:41 × mohab quits (~mohab@156.223.115.103) (Ping timeout: 240 seconds)
08:23:23 thunderrd joins (~thunderrd@183.182.115.120)
08:53:11 × byorgey quits (~byorgey@155.138.238.211) (Ping timeout: 268 seconds)
09:01:53 mohab joins (~mohab@156.223.115.103)
09:09:55 byorgey joins (~byorgey@155.138.238.211)
10:32:48 <kajzer> UrgencyHook works only with terminal windows ?
10:44:38 × pmj quits (~pmj@p4fe156fa.dip0.t-ipconnect.de) (Remote host closed the connection)
10:46:17 × mohab quits (~mohab@156.223.115.103) (Ping timeout: 260 seconds)
10:58:26 mohab joins (~mohab@156.223.109.155)
11:20:02 <dminuoso> How can i synthesize key presses and send them to a particular window?
11:31:38 <fizzie> XMonad.Util.Paste.sendKeyWindow, but the documentation should really mention the associated limitations with that.
11:33:48 <fizzie> The xdotool man page has a good overview of the topic, under the "SENDEVENT NOTES" section.
12:02:17 geekosaur joins (930099da@rrcs-147-0-153-218.central.biz.rr.com)
12:53:17 davemq joins (~davemq@99-179-0-50.lightspeed.austtx.sbcglobal.net)
13:09:10 <dminuoso> Mmm, okay I think Ill rethink my problem
13:49:07 × s00pcan quits (~chris@107.181.165.217) (Ping timeout: 252 seconds)
13:50:46 s00pcan joins (~chris@075-133-056-178.res.spectrum.com)
13:51:15 buffet parts (~buffet@buffet.sh) ("The Lounge - https://thelounge.chat")
13:57:44 pmj joins (~pmj@ipbcc2919d.dynamic.kabel-deutschland.de)
14:05:10 growpotkin joins (~growpotki@130.45.30.154)
14:09:15 × pmj quits (~pmj@ipbcc2919d.dynamic.kabel-deutschland.de) (Remote host closed the connection)
14:09:46 pmj joins (~pmj@ipbcc2919d.dynamic.kabel-deutschland.de)
14:30:43 ElKowar[m] joins (elkowarmat@gateway/shell/matrix.org/x-icchcrepphrawatp)
14:34:06 × materiyolo quits (~materiyol@112.205.57.255) (Ping timeout: 240 seconds)
14:34:26 × dschrempf quits (~user@070-207.dynamic.dsl.fonira.net) (Ping timeout: 246 seconds)
14:36:22 seschwar joins (~seschwar@unaffiliated/seschwar)
14:55:31 <novasenco> I can't get ueberzug to work in xmonad
15:06:19 × mohab quits (~mohab@156.223.109.155) (Ping timeout: 265 seconds)
15:07:17 mohab joins (~mohab@45.240.143.35)
15:10:04 × geekosaur quits (930099da@rrcs-147-0-153-218.central.biz.rr.com) (Quit: Connection closed)
15:11:38 × mohab quits (~mohab@45.240.143.35) (Ping timeout: 265 seconds)
15:11:59 mohab joins (~mohab@156.223.109.155)
15:17:55 abhixec joins (~abhixec@c-67-169-139-16.hsd1.ca.comcast.net)
15:33:53 × Kamil[m] quits (kamilmatri@gateway/shell/matrix.org/x-oodrnmbqbqtwzwyf) (Quit: authenticating)
15:34:04 Kamil[m] joins (kamilmatri@gateway/shell/matrix.org/x-wdqrpralkttbeiwu)
15:37:54 × Kamil[m] quits (kamilmatri@gateway/shell/matrix.org/x-wdqrpralkttbeiwu) (Client Quit)
15:38:03 arca0[m] joins (kamilmatri@gateway/shell/matrix.org/x-byrwzdateroorkqx)
15:41:15 <Solid> what is that?
15:45:50 geekosaur joins (930099da@rrcs-147-0-153-218.central.biz.rr.com)
15:48:43 <novasenco> image previewer. works in xfce
15:50:38 davemq parts (~davemq@99-179-0-50.lightspeed.austtx.sbcglobal.net) ("ERC (IRC client for Emacs 27.2)")
15:53:05 <Solid> what do you mean "works"?
15:53:14 <Solid> what do you expect to happen/what actually happens?
15:53:56 <novasenco> in my ranger config, I add a line to use ueberzug to preview images. ranger -> preview image -> works in xfce -> doesn't work in xmonad
15:54:25 <novasenco> set preview_images_method ueberzug in .config/ranger/rc.conf
15:54:41 <novasenco> yes I enabled previews.
15:54:57 <novasenco> set use_preview_script true/set preview_images true/etc
16:02:59 <Solid> oh this is one of those fancy terminal image previewers?
16:03:07 <Solid> seems unlikely that xmonad would cause anything there to break
16:03:24 <ElKowar[m]> well it does work by overlaying another thing on top of the terminal
16:03:27 <ElKowar[m]> it does some hacky X stuff
16:04:25 <Solid> aha
16:04:32 <Solid> so maybe ewmh or something
16:04:40 <Solid> that seems to fix most problems =)
16:04:41 <ElKowar[m]> yea maybe
16:05:15 gzj joins (~gzj@unaffiliated/gzj)
16:06:12 × gzj quits (~gzj@unaffiliated/gzj) (Remote host closed the connection)
16:06:33 gzj joins (~gzj@unaffiliated/gzj)
16:06:40 <geekosaur> I'm thinking it's actually more related to why mono apps don't work, since it's treating the terminal as a canvas window
16:11:12 × cfricke quits (~cfricke@unaffiliated/cfricke) (Ping timeout: 245 seconds)
16:37:04 <dminuoso> What's the point of passive key grabs? If a grab is held as long as the key is pressed, but released then - what's the usefulness of it?
16:39:56 <geekosaur> it's not released when the key is, when the key is pressed the grab becomes an active keyboard grab until specifically released
16:40:49 <geekosaur> this basically gives you a key sequence that other clients can't "steal" or even see, since they switch control of the keyboard over to the client that requested the passive grab
16:41:36 <dminuoso> So does the mod-key from xmonad use such a passive grab then?
16:41:37 <geekosaur> meanwhile the client doesn't have to examine every single keypress to see if it should act, the server will wake it up when the right key sequence is pressed
16:41:50 <geekosaur> not the modkey itself but sequences like mod-q
16:42:46 <dminuoso> Ah.
16:42:59 <geekosaur> you can see this in programs which show unbound keys, such as emacs if I press mod-s it goes through and emacs reports it as an unbound key because xmonad doesn't have a grab on it either with my config
16:43:52 <dminuoso> So pressing down mod key will generate a key-down event for emacs, and if I then follow that up with `q`, this will trigger the grab and send the event right to emacs
16:43:54 <geekosaur> but once grabbed it gets every key pressed, so things like XMonad.Actions.Submap or XMonad.Prompt will work
16:44:05 <dminuoso> ahh
16:44:14 <geekosaur> emacs is just because I know it'll show the key instead of just beeping
16:44:21 <dminuoso> Sure, lets just stuck to that example - its fine
16:44:23 <geekosaur> so I can verify it sees the expected key
16:44:42 <geekosaur> emacs doesn't do key grabs, xmonad does
16:44:55 <dminuoso> How can I make emacs tell me this? It'd be nice if I could experiment myself
16:45:19 <geekosaur> it just reports it in the messages buffer "s-s is undefined" for mod-s with mod = mod4
16:45:27 <dminuoso> Oh, I guess xev would suffice too
16:45:35 <geekosaur> the first "s" stands for "super", thanks MIT
16:45:39 <geekosaur> yeh
16:46:58 <geekosaur> xev's a little annoying since you need to position the mouse pointer in the box to see the key events on the terminal, then use a layout that lets them run side by side (but I most commonly use tabbed…)
16:47:37 <dminuoso> Well, since I only care about keyboard right now, the focus is not an issue.
16:48:08 dariof4 joins (~dario@178.249.202.150)
16:49:25 <dminuoso> So this is interesting, if I start to press mod, keep it held, and then press a key say 'f' for which a passive grab exists in my xmonad, and then release 'f', and then release 'mod', xev does not receive a KeyRelease event for 'mod'
16:49:34 <dminuoso> How comes?
16:49:47 <dminuoso> Is the grab held until the entire key combination is released?
16:49:55 <dminuoso> (for a grab on key + modifier I mean)
16:50:35 <geekosaur> the passive grab is on the key release, I think, after wich all key events are directed to the grabbing client (xmonad, here)
16:50:51 <dminuoso> right, but key release of the entire modifier combination right?
16:50:57 <geekosaur> so neither xev nor anything else can see key events until xmonad drops the now-active grab
16:51:19 <geekosaur> generally not, just the "normal" key and not the modifier
16:51:40 <geekosaur> this leads to odd behavior if you bind a key both as a modifier and as a normal key
16:52:32 <dminuoso> wouldnt that suggest I should see a KeyRelease event for Super_L in the above scenario?
16:53:01 <geekosaur> no, because the grab becomes active at the key release for 'f'
16:53:23 <geekosaur> hm, I think that means it shouldn't see that one either
16:53:40 <dminuoso> hold on, the documentation suggests the grab becomes active at the key press
16:53:57 geekosaur is poking locally
16:54:28 <dminuoso> https://www.x.org/wiki/Development/Documentation/GrabProcessing/
16:54:38 <dminuoso> "A client can create multiple passive grabs (GrabButton/GrabKey), and they become active whenever the specified button/key is pressed, until it is released again."
16:55:01 <geekosaur> fwiw I see all key presses and releases locally and I think I have mod-f bound
16:55:33 <dminuoso> Plus, if I read the bit about implicit passive grabs, that strengthens my position
16:55:42 <dminuoso> "[About implicit passive grabs:] The purpose of the grab is to ensure that a ButtonRelease event is delivered to the same client as the ButtonPress event."
16:56:02 <dminuoso> That wouldn't make any sense if the grab was activated on the release event
16:56:42 geekosaur apparentrly misremembered
16:58:44 <dminuoso> Mind my asking, how do you make emacs report unbound keys?
16:59:47 <geekosaur> it does it by default down in the message line
17:00:16 <dminuoso> Haha, years with emacs and I never noticed
17:00:20 <geekosaur> oh, my config didn't have mod-f bound after all
17:00:36 <geekosaur> it's getting passed through, I would have had to use something like mod-t that I do bind
17:02:04 <dminuoso> I think I have some experimentation to do.
17:02:47 × gzj quits (~gzj@unaffiliated/gzj) (Remote host closed the connection)
17:03:28 <geekosaur> so for what it's worth, with mod-t which I know my config binds, xev sees the modifier key press and release but neither one for the t
17:05:40 <dminuoso> Really? I find that interesting
17:05:48 <dminuoso> Oh, I have a theory of why..
17:06:04 <geekosaur> you quoted it earlier
17:06:20 <geekosaur> >> "[About implicit passive grabs:] The purpose of the grab is to ensure that a ButtonRelease event is delivered to the same client as the ButtonPress event."
17:06:27 <dminuoso> No I meant, why I saw a different result in my xev than what you described
17:06:40 <geekosaur> oh
17:06:42 <dminuoso> Nope, still dont see a release event for mod key
17:07:15 <geekosaur> I had some WM_STATE and _NET_WM_STATE property change events before the key release
17:08:23 <dminuoso> Okay. my key combo created a new window, that seems like it influenced it
17:08:41 <dminuoso> I made a new key combo which just does `pure ()` as the action, and now I see the release event for Super_L
17:09:57 <dminuoso> and in fact, I see the grab notify on key down of f, and ungrab notify on release of f
17:10:39 <dminuoso> And as expected, no release event on t, since that would be sent to xmonad - as documented and expected
17:10:47 <dminuoso> (err, well f rather than t)
17:14:11 × pmj quits (~pmj@ipbcc2919d.dynamic.kabel-deutschland.de) (Ping timeout: 240 seconds)
17:17:52 <dminuoso> Time to glue xmonad to dbus. :)
17:18:04 <dminuoso> I sense great things on the horizon
17:18:38 <geekosaur> you'll need to rework the main loop, which currently assumes sleeping on XNextEvent() is sufficient
17:19:28 <dminuoso> oh
17:19:49 <dminuoso> I think I can work with that, does xmonad allow for hooks into the main l,oop?
17:22:50 <geekosaur> not currently
17:23:46 <geekosaur> I've thought about reworking it to listen for fd events (then you could hook in whatever) and passing the additional events to handleEventHook somehow, but it'd require extending it to support more than X11 events
17:23:58 <geekosaur> otr making generic fd hooks look like clientMessage events
17:28:52 <dminuoso> So my endgoal is to keep a keyboard led synchronized with the mute state of my microphone.. since I dont want to set up a separate server, I figured why not plug this into my xmonad.
17:29:08 <dminuoso> just subscribe to the respective dbus events (and perhaps send some back to manipulate the mute state)
17:34:22 <geekosaur> tbh we usually recommend doing that kind of thing outside of xmonad, to keep it small and focused
17:37:08 <dminuoso> And here I was, playing with the joke of writing xmonacs - a window manager with full emacs power builtin.
17:37:48 <dminuoso> Humor aside, Im just experimenting with various ideas here.
17:44:10 × abhixec quits (~abhixec@c-67-169-139-16.hsd1.ca.comcast.net) (Read error: Connection reset by peer)
17:48:22 <Solid> that would probably by exwm ;)
17:53:43 <geekosaur> someone iirc actually wrote a major mode for emacs that made it a window manager. it didnt go well, mostly because emacs is single-threaded and can't do things like window management and user interaction at the same time
17:57:22 <ElKowar[m]> Pretty sure there are a good few people that actually do use EXWM as their daily driver - they just learned to not do the things that block the main thread, and learned to deal with it
18:05:00 <dminuoso> Unrelatedly, I have a Cal key on my keyboard, which xev reports as XF86Calculator - how can I provide a keybinding for that?
18:05:14 <dminuoso> state 0x0, keycode 148 (keysym 0x1008ff1d, XF86Calculator), same_screen YES,
18:05:34 × notis quits (~notis@85.203.44.149) (Ping timeout: 252 seconds)
18:06:42 <dminuoso> Do I have to modmap 148 to say Hyper_L and use that?
18:06:50 <geekosaur> use the hex keysym, not the keycode
18:07:09 <dminuoso> Oh, KeySym is just integral, did not realize
18:07:15 <geekosaur> you don't have to map it to a modifier, unless you intend to use it as one (that is, like a shift or control key)
18:07:31 <dminuoso> No, I want it as its own kney
18:07:35 <geekosaur> unwrap all the newtypes and type aliases and it's just CInt, iirc
18:08:05 <geekosaur> hm, no newtypes, just a 6-deep nest of aliases :)
18:10:44 <Liskni_si> geekosaur: http://haskell.org/haskellwiki/Image:Xmbindings.png works again
18:10:59 <geekosaur> yay
18:11:44 <Liskni_si> > these are redirects from old urls that were put in place when we migrated the wiki to a new domain years ago, and got lost when we just migrated the server.
18:11:45 <lambdabot> <hint>:1:49: error: <hint>:1:49: error: parse error on input ‘in’
18:11:50 <Liskni_si> > (davean had temporarily disabled the rewrite rule in order to see if he could improve it, but it never got reenabled or improved -- so for now i just turned it back on)
18:11:52 <lambdabot> <hint>:1:51: error: <hint>:1:51: error: parse error on input ‘in’
18:12:30 <dminuoso> geekosaur: mmm, 148 does not appear to be working.
18:12:43 <geekosaur> use the hex keysym, not the keycode
18:13:09 <geekosaur> xmonad translates keysyms to keycodes internally and does not expose keycodes directly
18:13:15 <dminuoso> ahh
18:13:44 <dminuoso> this works beautifully, thanks
18:29:47 pmj joins (~pmj@ipbcc2919d.dynamic.kabel-deutschland.de)
18:40:06 × geekosaur quits (930099da@rrcs-147-0-153-218.central.biz.rr.com) (Quit: Connection closed)
18:40:28 geekosaur joins (930099da@rrcs-147-0-153-218.central.biz.rr.com)
18:42:21 ElKowar joins (~ElKowar@srv-fin.xware-gmbh.de)
18:46:36 kr1x joins (~kriket@2607:fb90:d240:a660:6135:38f4:620a:b2e)
18:46:38 × kr1x quits (~kriket@2607:fb90:d240:a660:6135:38f4:620a:b2e) (Client Quit)
18:48:18 × electr0n quits (~electr0n@about/security/founder/electr0n) (Quit: WeeChat 3.1)
18:50:54 × ElKowar quits (~ElKowar@srv-fin.xware-gmbh.de) (Quit: The Lounge - https://thelounge.chat)
18:51:04 × pmj quits (~pmj@ipbcc2919d.dynamic.kabel-deutschland.de) (Ping timeout: 252 seconds)
18:51:13 ElKowar joins (~ElKowar@srv-fin.xware-gmbh.de)
18:57:36 × dariof4 quits (~dario@178.249.202.150) (Quit: WeeChat 3.1)
19:37:50 × growpotkin quits (~growpotki@130.45.30.154) (Quit: ZNC 1.8.2 - https://znc.in)
19:39:38 growpotkin joins (~growpotki@130-45-30-154.dyn.grandenetworks.net)
19:44:18 dariof4 joins (~dario@178.249.202.150)
19:59:56 gzj joins (~gzj@unaffiliated/gzj)
20:04:36 × gzj quits (~gzj@unaffiliated/gzj) (Ping timeout: 260 seconds)
20:05:32 × geekosaur quits (930099da@rrcs-147-0-153-218.central.biz.rr.com) (Quit: Connection closed)
20:06:05 geekosaur joins (930099da@rrcs-147-0-153-218.central.biz.rr.com)
20:14:56 × thc202 quits (~thc202@unaffiliated/thc202) (Ping timeout: 258 seconds)
20:15:31 notis joins (~notis@2a02:2149:8a44:5700:3fe0:286c:a70f:ba77)
20:41:10 × geekosaur quits (930099da@rrcs-147-0-153-218.central.biz.rr.com) (Quit: Connection closed)
20:48:18 geekosaur joins (930099da@rrcs-147-0-153-218.central.biz.rr.com)
20:49:47 geekosaur is trying to figure out if there's a batch way to convert the wiki
20:50:29 <geekosaur> looks like "not really" since I get a big xml file from mediawiki and no good way to pick individual pages from it for conversion or uploading
20:50:36 <geekosaur> not to mention how images would work
20:55:49 <geekosaur> in fact it doesn't export images at all, so it'll have to be manual
21:28:06 xsteve joins (~user@217-149-167-109.nat.highway.telekom.at)
21:29:23 xsteve parts (~user@217-149-167-109.nat.highway.telekom.at) ()
21:35:25 × thoros quits (~thoros@193-154-185-59.adsl.highway.telekom.at) (Ping timeout: 260 seconds)
21:39:37 coldpress joins (~coldpress@128.9.105.34.bc.googleusercontent.com)
21:53:07 × wonko7 quits (~wonko7@62.115.229.50) (Ping timeout: 252 seconds)
22:14:58 gzj joins (~gzj@unaffiliated/gzj)
22:21:30 × gzj quits (~gzj@unaffiliated/gzj) (Remote host closed the connection)
22:21:50 gzj joins (~gzj@unaffiliated/gzj)
22:22:10 × seschwar quits (~seschwar@unaffiliated/seschwar) (Quit: :wq)
22:43:03 × notis quits (~notis@2a02:2149:8a44:5700:3fe0:286c:a70f:ba77) (Ping timeout: 260 seconds)
23:16:59 × geekosaur quits (930099da@rrcs-147-0-153-218.central.biz.rr.com) (Quit: Connection closed)
23:17:22 geekosaur joins (930099da@rrcs-147-0-153-218.central.biz.rr.com)
23:20:15 × dariof4 quits (~dario@178.249.202.150) (Quit: WeeChat 3.1)

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