Home freenode/#xmonad: Logs Calendar

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

00:00:04 <kajzer> I guess there's something wrong with statusBar function (regarding that xmodmap problem I was talking about)
00:01:05 <kajzer> here are the two configs,first one doesn't have that problem, second one has : https://imgur.com/a/vD6JSmj
00:02:48 × ADG1089 quits (~aditya@122.163.193.183) (Quit: Konversation terminated!)
00:03:01 <geekosaur> uh
00:03:19 <geekosaur> it installs a handler but it's for mod-b, not the keypad
00:03:56 <kajzer> maybe it's not statusBar but it's like that , 100%
00:04:12 <kajzer> I'm just gessing it is
00:04:17 <kajzer> guessing*
00:05:35 <kajzer> there's nothing else actually, loghook only
00:05:56 <geekosaur> and it shouldn't e possible to place a grab on an unassigned keycode, since xmonad's interface uses keysyms exclusively and maps them to keycodes just before registering the grab. suppose there might be a bug in that but I'd expect it to have more severe effects
00:06:49 <kajzer> I see, but there it is, I might submit a bug or help in some other way if needed
00:07:37 <kajzer> or someone else can try what's done in those configs, pretty easy changes to test out
00:10:24 <kajzer> also, I tried git versions of xmonad and xmonad-contrib, no change, same thing happens
00:12:05 <kajzer> I mean it's fine by me, I narrowed it down and know where the problem is, I know it's a pretty unique situation having that problem when xmodmap is used, but somehow it happens
00:25:58 <geekosaur> I'm not seeing anything obviously wrong with grabKeys in the core, which is where this would be happening; it should be getting an empty list for the keycode and skipping it
00:29:50 <kajzer> there's some relation with xmodmap somehow, if I don't disable some key then pressing that key doesn't affect anything, but if I disable that key and then press it, then it does
00:30:41 <kajzer> i need those keys disabled, maybe xmodmap do things in a certain way but I don't know how else to disable keys
00:30:51 <geekosaur> conceivably you'd need mod-q to make xmonad forget the key, but it shouldn't have been bound to begin with
00:31:10 <geekosaur> xmodmap kinda breaks the modern rules, you're supposed to use xkb
00:31:27 <geekosaur> it is possible that it's doing something wrong
00:31:39 <geekosaur> but the key still shouldn't be bound to begin with
00:32:14 <kajzer> I know, but somehow it is , that's the weird part
00:32:59 <kajzer> I'll try xkb or some other method and then see if it still happens, but not now, tomorrow, will let you know if something happened
00:35:59 <geekosaur> could you see if mouse-keys got enabled somehow? https://linuxreviews.org/HOWTO_use_the_numeric_keyboard_keys_as_mouse_in_XOrg
00:38:48 <kajzer> i don't have "keypad:pointerkeys" in xorg keyboard conf
00:42:37 <kajzer> besides, it's clear that there are two methods for xmobar in that config, one has that problem the other don't
00:44:23 <kajzer> it's either statusbar or spawnpipe, or loghook
00:44:41 <geekosaur> hrm
00:44:55 <kajzer> lol
00:45:11 <geekosaur> spawnPipe doesn't do anything with X11, it's MonadIO so it can be used without an extra liftIO
00:45:18 <kajzer> it doesn't matter, i mean, it's probably only me who will face that issue
00:45:51 <kajzer> ok, don't know how stuff works but i can see what works
00:51:11 <geekosaur> Solid,I think you've been working with this stuff? it doesn't make a lot of sense to me that these configs should lead to this. https://imgur.com/a/vD6JSmj
00:51:36 mohab joins (~mohab@45.243.39.138)
00:54:08 oogeek joins (~szz_@138.199.22.215)
00:54:36 <oogeek> kajzer Can you provide the config file you use for xmodmap, so that I can help test it out?
00:57:21 <kajzer> geekosaur: I think those parts matter, I can paste the whole config, it's just lengthy that's all
00:57:30 <kajzer> oogeek: xmonad config ?
00:57:43 <geekosaur> ~/.Xmodmap, I think
00:58:15 <kajzer> i don't use .Xmodmap , i run commands from the autostart shell script
00:58:22 <oogeek> So if I can reproduce the issue, maybe it is really an issue. But we are gonna narrow it down, don't we.
00:58:36 <oogeek> kajzer So can you provide the commands ?
00:58:40 <kajzer> xmodmap -e 'keycode 90='
00:58:52 <kajzer> xmodmap -e 'keycode 87='
00:58:55 <kajzer> and so on ...
00:58:56 <oogeek> can you use pastebin or something?
00:59:02 <kajzer> 1 sec
00:59:40 <kajzer> https://pastebin.com/ei4eRVQd
00:59:51 <kajzer> but that doesn't matter, you can only test with one key
01:00:00 <kajzer> pick one
01:01:32 <oogeek> I will tell you once I test it out. As I have lots of work to do today, I have time in the evening.
01:02:07 ADG1089 joins (~aditya@122.163.193.183)
01:04:26 × oogeek quits (~szz_@138.199.22.215) (Quit: Lost terminal)
01:05:49 <kajzer> here's the xmonad config : https://pastebin.com/8S9XerhP
01:09:15 oogeek joins (~szz_@138.199.22.215)
01:10:33 <oogeek> kajzer So by simply put the xmodmap in my .xinitrc using startx, it did work. However, after a few minutes, my xmonad or xorg will crash and return to tty screen. Will test the xmonad config later.
01:10:46 <oogeek> xmodmap commands*
01:11:18 <kajzer> you can launch those in the terminal
01:11:44 <kajzer> i mean you issue that command once and it will remember it
01:11:52 <kajzer> until you log out
01:12:03 <oogeek> If I remember correctly, I also experience a crash just yesterday when you mentioned these command and I do a small test. No idea.
01:12:37 <kajzer> hmm, i dont have crashes
01:13:51 <kajzer> i have like small gaps around windows, and when I press that numpad key, which should be disabled, then nly up and down gaps are no more
01:14:02 <kajzer> only*
01:14:14 <kajzer> pretty weird
01:14:46 × oogeek quits (~szz_@138.199.22.215) (Quit: leaving)
01:15:31 davve joins (davve@bsd.douchedata.com)
01:15:33 <kajzer> btw that xmonad config on pastebin works, you would have to comment out stuff and uncomment, like I showed in the picture
01:15:38 × entropie quits (~mit@ip5f59973a.dynamic.kabel-deutschland.de) (Quit: "")
01:15:50 × davve_ quits (davve@bsd.douchedata.com) (Read error: Connection reset by peer)
01:16:48 × dminuoso quits (~dminuoso@unaffiliated/dminuoso) (Quit: ZNC 1.7.5 - https://znc.in)
01:17:11 × rieper quits (~riepernet@sxbeta1.geo.uni-leipzig.de) (Remote host closed the connection)
01:17:23 entropie joins (~mit@ip5f59973a.dynamic.kabel-deutschland.de)
01:17:26 × tv quits (~tv@unaffiliated/tv) (Ping timeout: 240 seconds)
01:17:37 ADG1089_ joins (~aditya@122.163.193.183)
01:17:38 × ADG1089 quits (~aditya@122.163.193.183) (Remote host closed the connection)
01:18:18 rieper joins (~riepernet@sxbeta1.geo.uni-leipzig.de)
01:19:22 tv joins (~tv@unaffiliated/tv)
01:20:04 dminuoso joins (~dminuoso@static.88-198-218-68.clients.your-server.de)
01:32:54 × geekosaur quits (930099da@rrcs-147-0-153-218.central.biz.rr.com) (Quit: Connection closed)
01:34:02 geekosaur joins (930099da@rrcs-147-0-153-218.central.biz.rr.com)
01:34:35 × ADG1089_ quits (~aditya@122.163.193.183) (Quit: Konversation terminated!)
01:43:44 × kajzer quits (~kajzer@unaffiliated/kajzer) (Quit: WeeChat 3.1)
01:44:38 × entropie quits (~mit@ip5f59973a.dynamic.kabel-deutschland.de) (Ping timeout: 260 seconds)
01:50:22 entropie joins (~mit@ip5f59973a.dynamic.kabel-deutschland.de)
01:52:48 × mohab quits (~mohab@45.243.39.138) (*.net *.split)
01:52:50 × Natch quits (~Natch@c-e070e255.014-297-73746f25.bbcust.telenor.se) (*.net *.split)
01:52:53 × jameekim2 quits (~jameekim@mx.nodaplife.me) (*.net *.split)
01:52:53 × alex88 quits (~alex88@unaffiliated/alex88) (*.net *.split)
01:52:55 × st13g quits (~quassel@47.90.246.232) (*.net *.split)
01:52:55 × _ashbreeze_ quits (~mark@64.85.214.234.reverse.socket.net) (*.net *.split)
01:52:58 × pdxleif quits (~pdxleif@ec2-54-68-166-10.us-west-2.compute.amazonaws.com) (*.net *.split)
01:52:58 × dweller quits (~dweller@178.62.146.60) (*.net *.split)
01:52:59 × kidel quits (~kidel@kidel.wtf) (*.net *.split)
01:52:59 × marens quits (~quassel@unaffiliated/marens) (*.net *.split)
01:54:01 mohab joins (~mohab@45.243.39.138)
01:54:01 Natch joins (~Natch@c-e070e255.014-297-73746f25.bbcust.telenor.se)
01:54:01 jameekim2 joins (~jameekim@mx.nodaplife.me)
01:54:01 alex88 joins (~alex88@unaffiliated/alex88)
01:54:01 st13g joins (~quassel@47.90.246.232)
01:54:01 _ashbreeze_ joins (~mark@64.85.214.234.reverse.socket.net)
01:54:01 kidel joins (~kidel@kidel.wtf)
01:54:01 pdxleif joins (~pdxleif@ec2-54-68-166-10.us-west-2.compute.amazonaws.com)
01:54:01 marens joins (~quassel@unaffiliated/marens)
01:54:01 dweller joins (~dweller@178.62.146.60)
01:55:12 hd joins (0e8bae32@14.139.174.50)
01:57:38 × mohab quits (~mohab@45.243.39.138) (Ping timeout: 246 seconds)
02:01:11 mohab joins (~mohab@45.243.39.138)
02:03:31 × hd quits (0e8bae32@14.139.174.50) (Quit: Connection closed)
02:10:04 × Natch quits (~Natch@c-e070e255.014-297-73746f25.bbcust.telenor.se) (Read error: Connection reset by peer)
02:14:27 Natch joins (~Natch@c-e070e255.014-297-73746f25.bbcust.telenor.se)
02:23:33 × theDon quits (~td@muedsl-82-207-238-245.citykom.de) (Ping timeout: 265 seconds)
02:25:06 theDon joins (~td@muedsl-82-207-238-051.citykom.de)
02:33:03 × geekosaur quits (930099da@rrcs-147-0-153-218.central.biz.rr.com) (Ping timeout: 240 seconds)
02:56:26 × mohab quits (~mohab@45.243.39.138) (Ping timeout: 260 seconds)
03:26:42 mohab joins (~mohab@45.243.39.138)
03:59:15 × mohab quits (~mohab@45.243.39.138) (Ping timeout: 265 seconds)
04:12:52 × evanjs quits (~evanjs@075-129-098-007.res.spectrum.com) (Read error: Connection reset by peer)
04:14:16 evanjs joins (~evanjs@075-129-098-007.res.spectrum.com)
05:12:35 <sundbry> Hi fellas, does anyone know how I can program more than 10 workspaces on my xmonad?
05:13:29 <Solid> ?tell geekosaur the only thing wrong I can see is that the statusBar config applies the docks modifier twice, but that has nothing to do with keybindings...
05:13:29 <lambdabot> Consider it noted.
05:15:12 <Solid> sundbry: XConfig has a `workspaces` field, so you can just do `main = xmonad $ def { workspaces = ["1", "2", "however many you like"] }`
05:15:45 <sundbry> how would the key bindings be set for that?
05:16:37 <Solid> that depends on which keys you want to use for things beyond 1-9 :)
05:16:52 <sundbry> This looks like a clue https://hackage.haskell.org/package/xmonad-contrib-0.16/docs/XMonad-Layout-IndependentScreens.html if I can decipher this Haskell :D
05:17:05 <Solid> it's definitely the wrong module
05:17:10 <sundbry> probably just alt-shift-1,2...0
05:17:16 <sundbry> so another 10
05:17:54 <Solid> you could do that, but that's the default keybindings for shifting windows to workspaces
05:18:05 <sundbry> whoops yes you are right
05:18:41 <sundbry> maybe <windows-key> -n
05:23:47 <Solid> you can probably just take the default definition of how to switch workspaces and add that to it
05:37:58 <Solid> interesting to see that someone actually uses meta as their modifier key though
05:49:31 × growpotkin quits (~growpotki@130-45-30-154.dyn.grandenetworks.net) (Quit: ZNC 1.8.2 - https://znc.in)
05:50:33 def_jam joins (~eblip@unaffiliated/eblip)
05:52:23 × eblip quits (~eblip@unaffiliated/eblip) (Ping timeout: 268 seconds)
05:57:16 × davemq quits (~davemq@99-179-0-50.lightspeed.austtx.sbcglobal.net) (Ping timeout: 252 seconds)
06:03:48 mohab joins (~mohab@45.243.39.138)
06:05:12 davemq joins (~davemq@99-179-0-50.lightspeed.austtx.sbcglobal.net)
06:09:36 thc202 joins (~thc202@unaffiliated/thc202)
06:13:01 × mohab quits (~mohab@45.243.39.138) (Ping timeout: 260 seconds)
06:14:00 mohab joins (~mohab@156.223.41.37)
06:16:53 × wonko7 quits (~wonko7@62.115.229.50) (Quit: See You Space Cowboy..)
06:30:20 cfricke joins (~cfricke@unaffiliated/cfricke)
07:03:59 × mohab quits (~mohab@156.223.41.37) (Ping timeout: 252 seconds)
07:11:39 mohab joins (~mohab@41.44.63.66)
07:54:20 notis joins (~notis@185.51.134.229)
07:56:51 kelnoky joins (~shao@ip1f128ba7.dynamic.kabel-deutschland.de)
08:07:28 mc47 joins (~yecinem@89.246.239.190)
08:14:41 Liskni_si has alt+F1-F12 and mod+F1-F12 which gives me 24 workspaces
08:19:53 Solid just uses the prompt for anything beyond 9 because there's no way he could remember 24 things :>
08:20:06 <Solid> out of curiosity, what do you have on mod + 0-9 then?
08:30:48 <Liskni_si> switching between windows
08:31:07 <Liskni_si> (window groups, actually)
08:31:31 × kelnoky quits (~shao@ip1f128ba7.dynamic.kabel-deutschland.de) (Quit: WeeChat 3.1)
08:34:42 <Liskni_si> I kind of understand why people use 0-9 instead of the F-keys, though; these modern laptop keyboards are crap and no longer have proper dedicated F-keys
08:35:16 <Liskni_si> mine still does, luckily, but I have no idea what I'm going to do once the old intel CPU is no longer good enough :-/
08:55:54 kajzer joins (~kajzer@unaffiliated/kajzer)
09:13:10 oogeek joins (~szz_@138.199.22.215)
09:14:47 stefur joins (~stefur@h-240-34.A328.priv.bahnhof.se)
09:41:45 pmj joins (~pm@p4fe156fa.dip0.t-ipconnect.de)
09:49:17 pmj parts (~pm@p4fe156fa.dip0.t-ipconnect.de) ("WeeChat 3.1")
09:58:21 pmj joins (~pm@p4fe156fa.dip0.t-ipconnect.de)
10:00:06 × oogeek quits (~szz_@138.199.22.215) (Ping timeout: 240 seconds)
10:02:15 oogeek joins (~szz_@84.17.34.151)
11:11:18 × pmj quits (~pm@p4fe156fa.dip0.t-ipconnect.de) (Remote host closed the connection)
11:56:34 geekosaur joins (930099da@rrcs-147-0-153-218.central.biz.rr.com)
12:27:54 yiufung joins (~user@183178189045.ctinets.com)
13:05:44 kelnoky joins (~shao@ip1f128ba7.dynamic.kabel-deutschland.de)
13:19:11 wonko7 joins (~wonko7@62.115.229.50)
13:35:16 × rieper quits (~riepernet@sxbeta1.geo.uni-leipzig.de) (Quit: No Ping reply in 180 seconds.)
13:35:23 rieper joins (~riepernet@sxbeta1.geo.uni-leipzig.de)
13:41:41 × kelnoky quits (~shao@ip1f128ba7.dynamic.kabel-deutschland.de) (Quit: WeeChat 3.1)
14:04:09 × cfricke quits (~cfricke@unaffiliated/cfricke) (Ping timeout: 245 seconds)
14:16:57 × wonko7 quits (~wonko7@62.115.229.50) (Ping timeout: 265 seconds)
14:32:51 seschwar joins (~seschwar@unaffiliated/seschwar)
14:41:12 rekahsoft joins (~rekahsoft@38.29.28.2)
14:48:27 wonko7 joins (~wonko7@62.115.229.50)
14:57:13 × mc47 quits (~yecinem@89.246.239.190) (Read error: Connection reset by peer)
14:58:55 growpotkin joins (~growpotki@130-45-30-154.dyn.grandenetworks.net)
15:06:46 × oogeek quits (~szz_@84.17.34.151) (Quit: leaving)
15:09:54 kelnoky joins (~shao@ip1f128ba7.dynamic.kabel-deutschland.de)
15:16:47 cfricke joins (~cfricke@unaffiliated/cfricke)
15:23:11 × wonko7 quits (~wonko7@62.115.229.50) (Ping timeout: 240 seconds)
15:27:22 × rieper quits (~riepernet@sxbeta1.geo.uni-leipzig.de) (Quit: No Ping reply in 180 seconds.)
15:27:36 × cfricke quits (~cfricke@unaffiliated/cfricke) (Quit: WeeChat 3.1)
15:27:38 rieper joins (~riepernet@sxbeta1.geo.uni-leipzig.de)
15:40:03 × geekosaur quits (930099da@rrcs-147-0-153-218.central.biz.rr.com) (Quit: Connection closed)
15:42:06 oogeek joins (~szz_@84.17.34.151)
15:43:10 <oogeek> kajzer So I have tested your config. I can reproduce your problem witht that config. Also, when I tried to use debugKeyEvents, my Xorg just crashes again.
15:47:55 <oogeek> kajzer I think maybe the problem is related to xmodmap itself. Not sure.
15:51:41 × oogeek quits (~szz_@84.17.34.151) (Quit: leaving)
15:51:58 geekosaur joins (930099da@rrcs-147-0-153-218.central.biz.rr.com)
15:52:05 × mohab quits (~mohab@41.44.63.66) (Ping timeout: 260 seconds)
16:01:57 <kajzer> Yeah, the problem is definetely present, don't know about xmodmap itself, when I needed to find how to disable keyboard buttons that was the only method I could find, at least that's what people are using, and it works great, I had no problems with xmodmap for years, now why Xmonad is not respecting that, is the question
16:03:10 <kajzer> I mean it does respect it, depends on how you configure it, there are several methods to do the same thing
16:05:19 <Solid> kajzer: can you try that statusBar config but without the extra `docks` combinator?
16:05:51 <Solid> it doesn't make much sense, but I do wonder
16:06:27 <kajzer> sure, in a min
16:08:51 <kajzer> I think I tried that but will do it again now
16:08:59 <kajzer> it doesn't matter
16:11:00 <kajzer> yeah i just tested it, same thing without docks, it reacts to the disabled key
16:12:24 <kajzer> i took two screenshots, one is what the desktop looks like when it's normal, and the second what pressing that disabled key does
16:13:45 wonko7 joins (~wonko7@62.115.229.50)
16:13:54 <kajzer> https://imgur.com/a/JpzSpKp
16:14:40 <kajzer> first one is normal, second one you can see, it kinda moves the window up, left and right there are still gaps, but it etends the window up and down
16:15:03 <kajzer> when you press disabled key, don't matter which one, it's the same with all disabled keys
16:16:25 <geekosaur> thta looks like more or less mod-b. makes some sense for that to be the issue, makes little sense that disabled keys should be mapped to it
16:19:06 <geekosaur> hm. if you add XMonad.Hooks.ManageDebug to your config and use debugManageHookOn, does the problem move to that?
16:20:00 <kajzer> I wouldn't know how to do that
16:20:19 <geekosaur> that is, instead of toggling strut avoidance, does it start dumping manageHook information?
16:20:40 oogeek joins (~szz_@45.135.186.22)
16:22:41 <kajzer> have to research how to do that
16:23:09 <oogeek> Solid On my side, with config from kajzer, my Xorg will crash if I use debugKeyEvents in handleEventHook. I tried to comment out some of the source code of debugKeyEvents and it stops crashing. So I think I can probably try some more and see if a specific line in debugKeyEvents (maybe with xmodmap) cause the crash
16:24:02 <geekosaur> probably yet another spot where the X11 bindings don't check for a NULL return, we run into those every so often
16:24:20 <geekosaur> mostly with the debug code becuase it exercises more of X11 :)
16:24:30 <oogeek> Yeah, i
16:24:37 × oogeek quits (~szz_@45.135.186.22) (Client Quit)
16:25:28 oogeek joins (~szz_@45.135.186.22)
16:27:47 <kajzer> geekosaur: instead of avoidstruts I put debugManageHookOn in that place ?
16:28:38 <geekosaur> no, that goes with docks, ewmhFullscreen, ewmh
16:29:07 <geekosaur> and it takes a key sequence in EZConfig style, like "M-C-d" for meta-control-d
16:29:25 <kajzer> ok
16:31:21 mohab joins (~mohab@45.243.116.81)
16:31:47 <oogeek> geekosaur what about debugManageHook, is that more useful in such case of kajzer?
16:32:51 <geekosaur> no, I specificlaly want the key sequence
16:33:10 <geekosaur> to be added in, to see if their xmonad starts running that iinstead of mod-b
16:34:00 <geekosaur> and it needs to be added in after statusBar adds in the mod-b sequence
16:34:23 <kajzer> i dont use ezconfig, i'm stuck at that part , can you please type the command for that binding
16:34:36 <geekosaur> I gave you an example
16:35:03 <kajzer> i tried this , ((modm, xK_b ), debugManageHookOn)
16:35:07 <geekosaur> you do not need ezconfig, you need to pass debugManageHookOn a String like "M-C-d"
16:35:14 <geekosaur> oh lord
16:35:16 <Solid> debugManageHookOn "M-C-d"
16:35:18 <Solid> :)
16:35:31 <kajzer> lol guys, i'm new to xmonad
16:35:33 <geekosaur> what has that to do with the place where docks, ewmh, ewmhFullscreen are?
16:35:41 <kajzer> nah i placed that
16:35:50 <kajzer> but you said i need to bind key
16:36:10 <geekosaur> no, this binds the key itself., that's the whole point
16:36:18 <kajzer> ah ok
16:36:25 <geekosaur> it's binding a key *after* statusBar binds the key that is getting run
16:36:32 <kajzer> but do i need ezconfig ?
16:36:35 <geekosaur> so I can see if it starts running that key instead
16:36:46 <geekosaur> no, you do not need ezconfig
16:37:55 <kajzer> ok i just added debugManageHook where the docks and other stuff is
16:38:04 <kajzer> confused about debugManageHookOn part
16:39:03 <geekosaur> you do not add debugManageHook
16:39:14 <geekosaur> yoou add: debugManageHookOn "M-C-d"
16:39:56 <kajzer> ok done, so i press that key and then what
16:40:07 <geekosaur> no, you do not  press that key
16:40:20 <oogeek> I have a stupid question: where can I find the output of debugManageHook?
16:40:45 <geekosaur> you look to see if the problem you have been having goes away, and ideally check the session log (usually ~/.xsession-errors) to see if it's producing output
16:41:05 <kajzer> ok problem is still present
16:41:07 <oogeek> kajzer What you should do is to test the error config as it is, and check as geekosaur as mentioned
16:41:20 <geekosaur> which would indicate that instead of the unbound key running the old "last key bound", it is now running the new "last key bound"
16:41:59 <geekosaur> I don't care about the manageHook as such here, I just want a different key to be the last one bound by your config
16:42:08 <geekosaur> which is currently the one added by statusBar
16:42:09 <kajzer> xsession-errors was not generated
16:42:36 <kajzer> oogeek: im doing that
16:42:51 <geekosaur> it owuldn't have been generated, it shoudl have been there already. some systems suppress the log entirely, some move it under journalctl (and I can't help you figure that one out)
16:43:24 <kajzer> ok ill try to find it in other locations
16:43:46 <kajzer> how about Xorg.log ?
16:43:58 <geekosaur> no, that's the system log not the session log
16:44:13 <Solid> what distro are you on?
16:44:18 <kajzer> gentoo
16:44:31 <Solid> they probably let you do it yourself :P
16:44:43 <kajzer> lol
16:45:02 <Solid> I have something like `exec startx >& ~/.xsession.errors` somewhere in a .profile file
16:45:57 <geekosaur> https://forums.gentoo.org/viewtopic-t-1051280-start-0.html
16:46:16 <geekosaur> they use journald by default but there's a way to re-enable .xsession-errors
16:46:34 <geekosaur> there's some journalctl command to dump the log but idek
16:46:44 <Solid> ah I see
16:46:54 <kajzer> reading it
16:47:08 <Solid> wait isn't that a systemd thing
16:47:16 <geekosaur> yes
16:47:29 <Solid> I thought gentoo was on openrc
16:47:35 <kajzer> i dont use display managers and systemd
16:47:49 <geekosaur> then your session log is on the first virtual console
16:47:57 <geekosaur> ctrl-alt-f1 probably
16:48:06 <kajzer> it's not in /home
16:48:06 <geekosaur> alt-f7 to get back to your x11 session
16:48:56 <kajzer> anyway , i get it, ill try to find it and will let you know
16:55:10 <kajzer> hmm , you see, I'm using startx, just that, maybe I need to use startx 1>~/.log/xsession-errors 2>&1 &
16:56:00 <geekosaur> yes. or for now switch back to the text console like I just told you
16:56:07 <geekosaur> ctrl-alt-f1
16:56:14 <geekosaur> then alt-f7 usually to get back
16:56:32 <kajzer> reading this https://wiki.gentoo.org/wiki/X_without_Display_Manager
16:57:07 <kajzer> i think i have VT's disabled, anywaay ctrl-alt-f1 doesnt work
16:57:23 <kajzer> havent tried that in a long time
16:59:03 <kajzer> well, i guess ill have to quit from X and try to start it with that log file
16:59:10 <kajzer> gimme a min
16:59:52 × kajzer quits (~kajzer@unaffiliated/kajzer) (Quit: WeeChat 3.1)
17:01:24 kajzer joins (~kajzer@unaffiliated/kajzer)
17:01:43 <kajzer> ok i see the file now
17:02:39 <kajzer> so I pressed the disabled button, that thing happened but I think nothing was added
17:02:48 <kajzer> added to .xsession-errors
17:02:53 <geekosaur> sigh
17:04:36 × oogeek quits (~szz_@45.135.186.22) (Quit: leaving)
17:04:44 <kajzer> yeah
17:04:53 <kajzer> tried ti few more times, nothing
17:04:56 <kajzer> it*
17:09:31 <kajzer> there's this : Bad _NET_DESKTOP with data[0]=-1
17:11:15 <geekosaur> that's unrelated
17:11:22 <kajzer> yeah
17:11:28 <geekosaur> we don't support ewmh-style copyToAll yet
17:12:04 <kajzer> well, that was fun, but really it's ok, i found how to configure it and don't have that issue
17:12:20 <kajzer> it's fine by me
17:15:01 <heck-to-the-gnom> What's the difference between ewmh-style copyToAll and regular copyToAll?
17:15:14 <heck-to-the-gnom> regular being how XMonad does it currently
17:16:42 <geekosaur> ewmh does that _NET_WM_DESKTOP thing, xmonad's copyToAll is designbed to be done from a keybinding or manageHook and I haven't figured out how to get it working from presumably the eventHook yet
17:17:57 <geekosaur> so I have another question after looking that config over again. the keybinding parameter to statusBar is specified as `def`. *whose* `def`?? I don't see an `instance Default` for its type in release xmonad-contrib
17:18:22 <heck-to-the-gnom> Ah, I see, an API-like variant, rather than a user decided one.
17:18:57 <geekosaur> maybe we've been barking up the wrong tree all this time, especially if it's inheriting some odd Default instance from somewhere and it's affecting other things too
17:19:26 <kajzer> geekosaur: I took that from this tutorial https://github.com/xmonad/xmonad/blob/f8973eefda4cbb5c618c92ab7711854a139980e1/tutorial.md
17:20:33 <kajzer> except he used statusbarprop, and i couldnt get that to work, even with git version
17:21:11 <geekosaur> suddenly I want hls to be working, for the first time, so I could point it at that `ddef` and see where it's coming from
17:21:53 <kajzer> brb
17:21:57 × kajzer quits (~kajzer@unaffiliated/kajzer) (Quit: WeeChat 3.1)
17:23:20 pmj joins (~pmj@ipbcc2919d.dynamic.kabel-deutschland.de)
17:23:49 kajzer joins (~kajzer@unaffiliated/kajzer)
17:34:53 × incertia quits (~incertia@d4-50-26-103.nap.wideopenwest.com) (Quit: ZNC 1.7.5 - https://znc.in)
17:35:46 incertia joins (~incertia@d4-50-26-103.nap.wideopenwest.com)
17:48:40 sfreimuth joins (49e72037@c-73-231-32-55.hsd1.ca.comcast.net)
17:48:41 × pmj quits (~pmj@ipbcc2919d.dynamic.kabel-deutschland.de) (Ping timeout: 240 seconds)
17:59:20 <geekosaur> are you nready for this? I think I figured out what's up
17:59:41 <geekosaur> that `def` expands to `const (0,0)` and every unbound key is mapped to it
18:00:05 <geekosaur> this is why I personally dislike `def` and won't use it unless forced
18:00:26 <geekosaur> of course we're deprercating direct access so I'm forced in the case of xmonad…
18:04:48 × geekosaur quits (930099da@rrcs-147-0-153-218.central.biz.rr.com) (Quit: Connection closed)
18:05:42 geekosaur joins (930099da@rrcs-147-0-153-218.central.biz.rr.com)
18:07:47 pmj joins (~pmj@ipbcc2919d.dynamic.kabel-deutschland.de)
18:10:44 × kelnoky quits (~shao@ip1f128ba7.dynamic.kabel-deutschland.de) (Quit: WeeChat 3.1)
18:15:22 <geekosaur> one hidden bug here is in `bindKeys` in core, which doesn't know that 0 is an invalid KeySym so it goes ahead and binds any KeyCode whose KeySym is 0 to it
18:17:32 <heck-to-the-gnom> ^ that's interesting
18:21:01 × mohab quits (~mohab@45.243.116.81) (Ping timeout: 268 seconds)
18:21:30 mohab joins (~mohab@156.223.72.6)
18:22:04 <geekosaur> so anyway the fix for this is to replace that `def` in the parameters to `statusBar` with a proper function that takes an `XConfig`, extracts the `modMask`, and tuples it with an appropriate `KeySym`
18:22:23 <geekosaur> (no, `def` cannot be forced to "do the right thing" here, that's why `def` is bad)
18:23:53 <geekosaur> you are forced to accept someone else's idea of what "the right thing" is, in this case an `instance Default b => a -> b where def = const def`
18:25:05 × thc202 quits (~thc202@unaffiliated/thc202) (Quit: thc202)
18:30:43 <kajzer> glad you found the source of the problem
18:33:52 × pmj quits (~pmj@ipbcc2919d.dynamic.kabel-deutschland.de) (Ping timeout: 240 seconds)
18:48:03 × mohab quits (~mohab@156.223.72.6) (Remote host closed the connection)
18:54:04 pmj joins (~pmj@ipbcc2919d.dynamic.kabel-deutschland.de)
18:57:01 mohab joins (~mohab@156.223.72.6)
19:03:01 geekosaur files a bug for the bindKeys part, since it's not possible to prevent the real failure but it should be possible to at least filter out the result
19:05:58 <geekosaur> https://github.com/xmonad/xmonad/issues/293
19:22:11 × wonko7 quits (~wonko7@62.115.229.50) (Ping timeout: 240 seconds)
19:26:19 × stefur quits (~stefur@h-240-34.A328.priv.bahnhof.se) (Quit: Lost terminal)
19:33:16 thc202 joins (~thc202@unaffiliated/thc202)
19:38:06 × pmj quits (~pmj@ipbcc2919d.dynamic.kabel-deutschland.de) (Ping timeout: 240 seconds)
19:38:26 × thc202 quits (~thc202@unaffiliated/thc202) (Quit: thc202)
19:48:11 × sfreimuth quits (49e72037@c-73-231-32-55.hsd1.ca.comcast.net) (Quit: Connection closed)
19:51:08 pmj joins (~pmj@ipbcc2919d.dynamic.kabel-deutschland.de)
19:55:32 ADG1089 joins (~aditya@27.58.164.109)
19:55:53 <ADG1089> M-q is not working for me since few days, how can i debug?
20:00:21 <Liskni_si> ADG1089: look into .xsession-errors or journalctl or wherever stderr goes in your setup
20:00:35 <novasenco> ADG1089, (1) make sure it's actually mapped with :verbose nmap <m-q> (2) in insert mode type <c-v><m-q> and make sure you see <M-q> inserted (3) try nvim -Nu NONE +"nnoremap <m-q> :echo 'hello'<cr>" then see if <m-q> echo's "hello" (4) make sure $TERM is unchanged - unless you're using tmux, for example; then it should be tmux-256color (5) file bug report
20:01:21 <novasenco> wrong channel! I thought this was #neovim
20:01:49 <novasenco> doo doo doo... nothing to see here *waves hands over dramatically*
20:02:35 <ADG1089> I created this mapping to test `( "M-u" , spawn "xmessage hello;if type xmonad; then xmessage $(xmonad --recompile && xmonad --restart); else xmessage xmonad not in \\$PATH: \"$PATH\"; fi; xmessage bye;")`
20:02:48 <ADG1089> I see both hello and bye messages but xmonad does not restart :((
20:04:36 <ADG1089> uuQ
20:04:43 × ADG1089 quits (~aditya@27.58.164.109) (Remote host closed the connection)
20:05:23 <heck-to-the-gnom> try running `xmonad --recompile` in a terminal
20:05:27 <heck-to-the-gnom> see if it fails
20:05:44 <heck-to-the-gnom> if it fails, and you don't have the proper log hook, it'll seem like nothing happened
20:06:19 <novasenco> they quittededed. presumably, they got it to work? the world may never know
20:07:06 <heck-to-the-gnom> no leave message appeared on my screen
20:07:19 <geekosaur> ← ADG1089 has left (Remote host closed the connection)
20:07:28 <geekosaur> showed here
20:07:34 <heck-to-the-gnom> huh, didn't show up on matrix
20:07:40 <heck-to-the-gnom> it usually does
20:07:45 ADG1089 joins (~aditya@27.58.164.109)
20:07:53 <novasenco> -!- ADG1089 (~aditya@27.58.164.109) has joined #xmonad
20:08:09 <novasenco> the world may just yet know! all is not lost
20:08:58 <ADG1089> hmm
20:09:23 <novasenco> ADG1089, did you resolve your problem?
20:09:41 <ADG1089> no i couldn't
20:09:51 <ADG1089> thinking i should just ignore and type it in terminal
20:10:04 <geekosaur> try xmonad --recompile in the terminal
20:11:34 ServerStatsDisco joins (serverstat@gateway/shell/matrix.org/x-oxgvtvxuexgkqkan)
20:12:17 <ADG1089> it's working in terminal though https://bpa.st/3YIQ
20:12:38 × pmj quits (~pmj@ipbcc2919d.dynamic.kabel-deutschland.de) (Ping timeout: 268 seconds)
20:12:47 <geekosaur> but did it actually restart?
20:12:56 <ADG1089> yes it did
20:14:19 <geekosaur> odd
20:14:56 <ADG1089> i even tried with <xdotool key "Super_L+q"> which doesn't restart
20:15:17 <heck-to-the-gnom> `("M-q", spawn "xmonad --restart")` - this' what I usually run, I don't bother with `--recompile`, since XMonad detects when to recompile intelligently.
20:16:16 <geekosaur> did you get anything from the middle xmessage?
20:16:44 <ADG1089> wait a second, i have ~/.cabal/bin/xmonad linked to /usr/bin/xmonad
20:16:52 <ADG1089> former is in my terminal path which is working
20:16:56 <ADG1089> latter is not working
20:17:50 <ADG1089> it says <xmonad: ghc: runProcess: runInteractiveProcess: exec: does not exist (No such file or directory)>
20:18:23 <heck-to-the-gnom> Ah, a PATH problem.
20:18:24 <geekosaur> so $PATH is set wrong and you're defeating the PATH check with the symlink
20:18:48 <ADG1089> i installed with cabal and it could not find it so i symlinked to /usr/bin
20:19:38 <geekosaur> so now it probably can't find ghc
20:20:02 <heck-to-the-gnom> whatever your login shell is, ensure that that can see ghc
20:20:23 <heck-to-the-gnom> this means modifying your `.profile`
20:20:25 <geekosaur> part of this problem is that only login shells can see it and X11 isn't running a login shell
20:20:42 <geekosaur> it only does so on Debian derivatives, last I checked
20:21:00 <ADG1089> i need to symlink ~/.ghcup/bin/ghc then
20:21:05 <ADG1089> idk why it broke
20:21:42 <ADG1089> thanks guys! M-q is back again
20:21:46 × s00pcan quits (~chris@075-133-056-178.res.spectrum.com) (Ping timeout: 240 seconds)
20:22:00 <ADG1089> today i just found about gsimplecal, it's really great
20:22:15 × geekosaur quits (930099da@rrcs-147-0-153-218.central.biz.rr.com) (Quit: Connection closed)
20:22:16 <ADG1089> i integrated it to activate on clicking on my xmobar calendar
20:22:32 geekosaur joins (930099da@rrcs-147-0-153-218.central.biz.rr.com)
20:23:56 s00pcan joins (~chris@107.181.165.217)
20:28:01 <heck-to-the-gnom> <ADG1089 "i need to symlink ~/.ghcup/bin/g"> This' a fairly temporary solution, e.g copying over your config files to another computer likely won't work. fix: modifying your `.xinitrc` to source `.profile`, or something else.
20:28:11 × rekahsoft quits (~rekahsoft@38.29.28.2) (Ping timeout: 260 seconds)
20:36:01 kelnoky joins (~shao@ip1f128ba7.dynamic.kabel-deutschland.de)
21:02:37 × ADG1089 quits (~aditya@27.58.164.109) (Remote host closed the connection)
21:02:45 × mohab quits (~mohab@156.223.72.6) (Remote host closed the connection)
21:08:30 glowpelt joins (~myst@focks.pw)
21:08:32 glowpelt is now known as Guest55803
21:24:05 × Guest55803 quits (~myst@focks.pw) (Quit: WeeChat 2.9)
21:24:41 mystfox joins (~myst@focks.pw)
21:25:10 × mystfox quits (~myst@focks.pw) (Client Quit)
21:25:56 mystfox joins (~myst@focks.pw)
21:26:12 mystfox is now known as glowpelt
21:27:30 navi_se joins (~gian@host-92-19-224-137.static.as13285.net)
22:00:20 × seschwar quits (~seschwar@unaffiliated/seschwar) (Quit: :wq)
22:05:37 × electrocat quits (~michiel@revan.derhaeg.be) (Ping timeout: 252 seconds)
22:05:45 electrocat joins (~michiel@revan.derhaeg.be)
22:05:48 × deebo quits (~deebo@stonebay32.com) (Ping timeout: 265 seconds)
22:06:12 × spydon quits (~spydon@188.226.230.107) (Ping timeout: 240 seconds)
22:06:28 spydon joins (~spydon@188.226.230.107)
22:07:14 deebo joins (~deebo@stonebay32.com)
22:07:43 × evanjs quits (~evanjs@075-129-098-007.res.spectrum.com) (Quit: ZNC 1.8.2 - https://znc.in)
22:10:03 evanjs joins (~evanjs@075-129-098-007.res.spectrum.com)
22:31:06 × kelnoky quits (~shao@ip1f128ba7.dynamic.kabel-deutschland.de) (Quit: WeeChat 3.1)
22:39:21 × geekosaur quits (930099da@rrcs-147-0-153-218.central.biz.rr.com) (Quit: Connection closed)
22:40:03 geekosaur joins (930099da@rrcs-147-0-153-218.central.biz.rr.com)
22:55:19 <Liskni_si> Just saw a new haskell foundation logo idea on the HF Slack (https://store.lisk.in/tmp/hf-logo-200-alpha.png) and got inspired and created a couple ideas for xmonad of my own: https://store.lisk.in/tmp/xmonad-logo1.svg, https://store.lisk.in/tmp/xmonad-logo2.svg, https://store.lisk.in/tmp/xmonad-logo3.svg
22:56:00 <Liskni_si> Not entirely sure I like them more than the ideas that you guys posted here a couple weeks ago, just wanted to see what it'd look like :-)
22:59:50 rekahsoft joins (~rekahsoft@cpe0008a20f982f-cm64777d666260.cpe.net.cable.rogers.com)
23:01:04 <Liskni_si> (Just a recap what the other logo ideas were: https://i.imgur.com/JuVb7Tr.png, https://i.imgur.com/JuVb7Tr.png, https://i.imgur.com/sYDJezE.png, https://matrix.org/_matrix/media/r0/download/matrix.org/YpsQesmiscaeQoKbRRFFmbEd/xmonad-logo-v1.svg, https://matrix.org/_matrix/media/r0/download/matrix.org/SKfBsDYUWdMvIjwwJUbGXHJh/xmonad-logo-v2.svg)
23:12:48 × geekosaur quits (930099da@rrcs-147-0-153-218.central.biz.rr.com) (Quit: Connection closed)
23:18:52 × rekahsoft quits (~rekahsoft@cpe0008a20f982f-cm64777d666260.cpe.net.cable.rogers.com) (Ping timeout: 240 seconds)
23:22:51 × navi_se quits (~gian@host-92-19-224-137.static.as13285.net) (Ping timeout: 246 seconds)
23:44:08 geekosaur joins (930099da@rrcs-147-0-153-218.central.biz.rr.com)
23:46:51 <geekosaur> welp. having a second monitor was nice for the 3 hours it lasted
23:47:01 <geekosaur> (machine hangs if I plug it in now, sigh)
23:56:30 mc47 joins (~yecinem@89.246.239.190)
23:58:34 <mc47> Liskni_si I like number 3! maybe we could have a vote or sth with the community, if we ever decide to change the logo
23:58:40 × mc47 quits (~yecinem@89.246.239.190) (Client Quit)

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