Home freenode/#xmonad: Logs Calendar

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

00:19:55 × geekosaur quits (930099da@rrcs-147-0-153-218.central.biz.rr.com) (Quit: Ping timeout (120 seconds))
00:26:11 geekosaur joins (930099da@rrcs-147-0-153-218.central.biz.rr.com)
00:32:24 × mc47 quits (~yecinem@89.246.239.190) (Remote host closed the connection)
00:40:13 mohab joins (~mohab@45.243.72.186)
00:42:27 × mohab quits (~mohab@45.243.72.186) (Read error: Connection reset by peer)
00:45:54 × davemq quits (~davemq@99-179-0-50.lightspeed.austtx.sbcglobal.net) (Quit: ZNC 1.8.2 - https://znc.in)
00:50:49 davemq joins (~davemq@99-179-0-50.lightspeed.austtx.sbcglobal.net)
00:52:11 × davemq quits (~davemq@99-179-0-50.lightspeed.austtx.sbcglobal.net) (Read error: Connection reset by peer)
00:53:18 davemq joins (~davemq@99-179-0-50.lightspeed.austtx.sbcglobal.net)
01:40:43 × geekosaur quits (930099da@rrcs-147-0-153-218.central.biz.rr.com) (Ping timeout: 240 seconds)
01:45:32 × Hash quits (~Hash@unaffiliated/hash) (Quit: WeeChat 3.1)
01:46:29 Hash joins (~Hash@unaffiliated/hash)
02:14:46 mohab joins (~mohab@45.243.72.186)
02:17:49 × kajzer quits (~kajzer@unaffiliated/kajzer) (Quit: WeeChat 3.1)
02:24:06 × theDon quits (~td@94.134.91.246) (Ping timeout: 240 seconds)
02:26:23 theDon joins (~td@muedsl-82-207-238-245.citykom.de)
03:07:13 × thunderrd quits (~thunderrd@183.182.114.223) (Remote host closed the connection)
03:21:42 × mohab quits (~mohab@45.243.72.186) (Remote host closed the connection)
04:23:53 thunderrd joins (~thunderrd@183.182.114.223)
05:12:41 thc202 joins (~thc202@unaffiliated/thc202)
05:44:27 mohab joins (~mohab@45.243.72.186)
06:03:19 cfricke joins (~cfricke@unaffiliated/cfricke)
06:11:34 × growpotkin quits (~growpotki@130-45-30-154.dyn.grandenetworks.net) (Quit: ZNC 1.8.2 - https://znc.in)
07:07:33 × vanvik quits (~nimor@82.194.204.210) (Quit: Ping timeout (120 seconds))
07:08:01 vanvik joins (~nimor@82.194.204.210)
07:35:06 notis joins (~notis@185.51.134.229)
08:01:17 × evanjs quits (~evanjs@075-129-098-007.res.spectrum.com) (Read error: Connection reset by peer)
08:03:02 evanjs joins (~evanjs@075-129-098-007.res.spectrum.com)
08:09:48 eblip joins (~eblip@unaffiliated/eblip)
08:12:11 × eb0t quits (~eblip@unaffiliated/eblip) (Ping timeout: 265 seconds)
08:15:54 × xsperry quits (~as@unaffiliated/xsperry) ()
08:30:18 × dminuoso quits (~dminuoso@static.88-198-218-68.clients.your-server.de) (Changing host)
08:30:18 dminuoso joins (~dminuoso@unaffiliated/dminuoso)
08:37:43 oogeek joins (~szz_@138.199.22.215)
08:39:36 <oogeek> I have encountered a problem: that is, I can not use "xdotool windowactivate windowId" to switch focus between windows from the same workspace. However, I can switch to other windows by it. Is there any workaround or suggestions?
08:40:24 <oogeek> I have checked the _NET_ACTIVATE_WINDOW_ attribute and it shows that it is correctly set
08:49:11 <oogeek> By correctly set I mean that it does not change when doing "xdotool windowactivate windowId", but change when focus is changed.
08:51:17 heatwave joins (~heatwave@198.8.81.52)
08:53:35 <oogeek> The weird thing is that when I use "xdotool windowfocus windowId", I can switch focus and type some text in another window, however, it shows that the original window is still under focus. And the mouse disappears.
08:54:01 <oogeek> When I try to kill the focus, the original window got killed.
08:57:46 <oogeek> I also tried to set "focusFollowMouse" to False, but it does not help.
09:02:55 <Liskni_si> sounds a bit like #396/#399
09:03:15 <Liskni_si> (mostly because it works absolutely fine here, because I'm running #399)
09:03:37 <oogeek> Liskni_si Actually I take a look at your config, and "copy a bit" :) I think the config looks well though.
09:03:49 <oogeek> Thanks, let me go and try it.
09:38:35 × ericsagnes quits (~ericsagne@2405:6580:0:5100:1f8e:c408:8077:5927) (Ping timeout: 250 seconds)
09:45:05 kajzer joins (~kajzer@unaffiliated/kajzer)
09:53:26 ericsagnes joins (~ericsagne@i220-108-228-29.s42.a013.ap.plala.or.jp)
10:04:09 cyr4x3 joins (~cyr4x3@139.47.119.53)
10:11:11 gazler_ is now known as gazler
10:23:51 × Hash quits (~Hash@unaffiliated/hash) (Ping timeout: 260 seconds)
10:24:11 mc47 joins (~yecinem@89.246.239.190)
10:34:12 Hash joins (~Hash@unaffiliated/hash)
11:11:44 × heatwave quits (~heatwave@198.8.81.52) (Quit: WeeChat 3.1)
11:19:31 ADG1089 joins (~aditya@122.163.193.183)
11:35:05 × ADG1089 quits (~aditya@122.163.193.183) (Remote host closed the connection)
11:35:30 ADG1089 joins (~aditya@122.163.193.183)
11:54:06 × novas0x2a quits (~blah@157-131-126-102.fiber.dynamic.sonic.net) (Read error: Connection reset by peer)
11:55:06 novas0x2a joins (~blah@157-131-126-102.fiber.dynamic.sonic.net)
12:09:43 × ADG1089 quits (~aditya@122.163.193.183) (Remote host closed the connection)
12:37:46 × oogeek quits (~szz_@138.199.22.215) (Ping timeout: 240 seconds)
12:40:02 oogeek joins (~szz_@84.17.34.151)
12:44:26 × oogeek quits (~szz_@84.17.34.151) (Ping timeout: 240 seconds)
12:46:25 oogeek joins (~szz_@45.135.186.22)
12:50:50 <oogeek> A interesting question: How many 'fmap' do you use in a line of code for xmonad/xmonad-contrib? If so, what is the biggest number?
12:50:55 <oogeek> s/A/An
12:53:44 geekosaur joins (930099da@rrcs-147-0-153-218.central.biz.rr.com)
13:08:40 <oogeek> I just use four 'fmap' and one 'mapM' in a line of code. Haha, I think it is less readable to put it like <$>, IMO.
13:09:19 <dminuoso> oogeek: Hard to say in general.
13:09:45 <dminuoso> I sometimes find myself writing `fmap2 = fmap . fmap` kind of code in some situations.
13:09:54 <dminuoso> (This tends to happen often in tests for some reasons)
13:09:59 <kajzer> I have a problem with xmodmap, i need to disable few keys, and that works, but xmonad still registers those press events, although not defined in the xmonad config, it extends the windows on press
13:11:01 <oogeek> dminuoso I was dealing with something like this: X [[[char]]]
13:11:22 <dminuoso> oogeek: Why the triple nested list?
13:12:22 <oogeek> So I take it from X [[Window]] -> X [[String]], using getName from NamedWorkspace
13:12:24 <geekosaur> (.:) is defined for some people for (fmap . fmap) (try it with fmap = (.))
13:12:43 <oogeek> Oh cool, haven't heard that.
13:12:47 <dminuoso> geekosaur: I think you've got that wired up wrong way around.
13:13:11 <geekosaur> wouldn;'t surprise me, I'm still waking up
13:13:27 <dminuoso> Or.. dunno. I havent seen `(.:) = fmap . fmap` but rather as `(.:) = (.) . (.)`
13:13:39 <dminuoso> (I know the former subsumes the latter as a more general case, but still)
13:13:39 <geekosaur> point was it['s the same thing
13:13:42 <dminuoso> Yeah
13:14:03 <dminuoso> oogeek: Or, you could use newtypes as well.
13:14:05 <geekosaur> the function functor warps minds
13:14:16 <oogeek> kajzer So have you tried to use something like 'removeKeys' from XMonad.Util.EZConfig
13:14:36 <dminuoso> oogeek: say `newtype KeyMap = KeyMap [[a]] deriving Functor`
13:14:38 <kajzer> oogeek: no, didn't know aobut that, will take a look now
13:14:44 <kajzer> about*
13:14:53 <dminuoso> (This needs -XDerivingFunctor of course)
13:15:25 <geekosaur> kajzer, it is all too common for people to start from a config which inherits all the defaults and then overwrites them with the defaults (often from some other version, which can cause obscure bugs)
13:15:45 <geekosaur> so then this happens, you remove what you think is the key binding but the default is still there
13:16:59 <oogeek> I think I have learned way more this week than last few weeks. At least I successfully wrap my head aroud fmap, mapM, forM, concatMap,...
13:17:42 <oogeek> dminuoso I think I have seen (.:) from a module of xmonad-contrib, don't know where it is now.
13:20:47 <dminuoso> oogeek: You can define it just on the spot.
13:22:35 <oogeek> Yeah thanks.
13:28:09 × davemq quits (~davemq@99-179-0-50.lightspeed.austtx.sbcglobal.net) (Read error: Connection reset by peer)
13:28:12 <geekosaur> might be a candidate for X.Prelude also
13:28:41 davemq joins (~davemq@99-179-0-50.lightspeed.austtx.sbcglobal.net)
13:43:38 <mc47> I think it's added there, I used it in X.H.DynamicLog as far as I remember
14:37:44 ADG1089 joins (~aditya@122.163.193.183)
14:39:59 seschwar joins (~seschwar@unaffiliated/seschwar)
14:48:09 × oogeek quits (~szz_@45.135.186.22) (Read error: Connection reset by peer)
14:50:17 × friki quits (~friki@friki.cat) (Quit: %friki%)
14:50:43 friki joins (~friki@friki.cat)
14:50:47 oogeek joins (~szz_@45.135.186.22)
14:55:46 × friki quits (~friki@friki.cat) (Ping timeout: 240 seconds)
14:59:38 <kajzer> oogeek: 'removeKeys' doesn't help, I guess it's something in the config, but I really can't tell what, those keys aren't defined for anything, it's NumPad basically that I always disable with xmodmap, but Xmonad is ignoring xmodmap or it's a bug, I tried loading just simple default config with only 5 lines, and yeah those keys are disabled then
15:02:17 <geekosaur> pc-type hardware does weird things with the numpad. xmonad does handle numlock specially but otherwise shouldn't handle the numpad any differently from other keys
15:04:32 friki joins (~friki@friki.cat)
15:04:55 × geekosaur quits (930099da@rrcs-147-0-153-218.central.biz.rr.com) (Quit: Connection closed)
15:05:16 geekosaur joins (930099da@rrcs-147-0-153-218.central.biz.rr.com)
15:19:27 × mohab quits (~mohab@45.243.72.186) (Ping timeout: 265 seconds)
15:19:51 × geekosaur quits (930099da@rrcs-147-0-153-218.central.biz.rr.com) (Quit: Connection closed)
15:20:34 rieper|net is now known as rieper
15:20:53 × rieper quits (~riepernet@sxbeta1.geo.uni-leipzig.de) (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
15:21:07 rieper joins (~riepernet@sxbeta1.geo.uni-leipzig.de)
15:22:25 geekosaur joins (930099da@rrcs-147-0-153-218.central.biz.rr.com)
15:29:40 <geekosaur> if it matters, the special handling is that X11 passes through NumLock in the modifier mask, so xmonad strips it before checking which key event it received. if you need it to not do this, you can set (iirc) `numberlockMask` to 0 in the state
15:30:08 <geekosaur> startupHook: puts numberlockMask 0
15:32:29 <oogeek> geekosaur Is there any resource to understand xmonad's handling of keys and keystrokes, I have read the source code of X.H.DebugKeyEvents, but I think I need more materials to understand it. Especially the codes. Can you give any suggestions?
15:32:39 mohab joins (~mohab@45.243.72.186)
15:32:58 <kajzer> geekosaur: what's the import for puts ?
15:33:13 <geekosaur> Control.Monad.State
15:33:58 <kajzer> nope
15:33:59 <geekosaur> oogeek, most of the important code is in https://github.com/xmonad/xmonad/blob/master/src/XMonad/Main.hs
15:34:10 <geekosaur> hold on
15:35:24 <oogeek> Thanks, I plan to read a whole bunch of xmonad source code this summer. :)
15:35:31 <geekosaur> oh roight, no simplistic way to do that because record updates aren't first class :/
15:35:47 <geekosaur> (see also people askingabout microlens support…)
15:36:10 <kajzer> ok if you remember how to do that this or some other way please do let me know
15:36:19 <kajzer> ok
15:36:27 <geekosaur> st <- get; put (st { numberlockMask = 0 })
15:36:44 <geekosaur> use whatever name you want for `st` there
15:36:55 <oogeek> I have another question, what does the type "DISPLAY" actually means, I understand what Window means, and have checked it up, but no DISPLAY. I am especially confused about something like withDisplay ...
15:37:52 <oogeek> it claims that it is Display (Ptr Display)
15:38:00 <kajzer> geekosaur: it's still enabled
15:39:04 <geekosaur> a Display is an X server, consisting of one or more Screens (although X11's notion of Screen is historical, leading to the root window hack that is used these days instead of what some call "zaphod mode")
15:39:54 <geekosaur> in Haskell it's a pointer to a struct returned by xlib (hence Ptr)
15:40:23 <geekosaur> kajzer, what exactly are you trying to do?
15:40:37 <oogeek> geekosaur Thanks a lot. So if I want to read its source code, do I need to read about the X11 library for related stuff?
15:40:46 <oogeek> The X11 library for xmonad
15:40:58 <kajzer> disable some nimpad keys, say for example just 0 on numkeypad
15:41:04 <kajzer> numpad*
15:41:23 <kajzer> I used dwm before Xmonad, switched recently, and there xmopad works
15:41:37 <kajzer> xmodmap*
15:42:14 <geekosaur> that mostly assumes you've read the actual X11 manual, I suggest familiarizing yourself with https://tronche.com/gui/x/
15:42:41 <kajzer> in Xmonad with xmodmap the key is disabled but it odes something with window and that key is not in the config at all
15:42:51 <kajzer> does*
15:43:06 <geekosaur> xmonad doesnt do anything with numpad keys, that I'm aware of
15:43:28 <geekosaur> pretty sure we don't map any of xP_KP_*
15:43:36 <oogeek> geekosaur Thanks again. There are too much contents for me. So I guess I will read xmonad/xmonad-contrib source code first, then touch the manual later.
15:44:15 <kajzer> geekosaur: ok, not a big deal, I'll maybe try to figure it out later
15:44:51 <geekosaur> can't imagine what it would be doing with a window, if anythingit would switch workspaces
15:45:02 <geekosaur> hm, I guess conceivably shift to workspace
15:45:04 growpotkin joins (~growpotki@130-45-30-154.dyn.grandenetworks.net)
15:45:17 <kajzer> it extends it , enalrge it a little , over the xmobar, i have two bars
15:45:22 <kajzer> enlarge*
15:45:28 <geekosaur> o.O
15:45:58 <oogeek> kajzer So it is like you disabled the keys but when you press it, there are still some actions?
15:46:08 <kajzer> exactly
15:46:23 <oogeek> So which version of xmonad xmonad-contrib you are using?
15:46:29 <kajzer> keys are not in the config and when i disable them with xmodmap this happens
15:46:58 <kajzer> non-git , 0.15 and 0.16
15:48:58 <kajzer> you can try that with xmodmap -e 'keycode 90='
15:49:14 <kajzer> that should disable 0 in numpad
15:50:27 <oogeek> Yeah, it is disabled.
15:51:05 <kajzer> right, but in my config it does something with gaps
15:51:22 <kajzer> when you press it , even though it's disabled
15:51:49 <kajzer> lemme disable spacing and try
15:52:47 <kajzer> nah it's not that, it still moves the window up
15:53:31 <oogeek> It is strange that xmodmap works well on my side. I use numpad a lot and I just disable 0 and 4.
15:53:34 <oogeek> Strange.
15:54:51 × oogeek quits (~szz_@45.135.186.22) (Quit: Lost terminal)
15:56:01 oogeek joins (~szz_@45.135.186.22)
16:03:45 × oogeek quits (~szz_@45.135.186.22) (Quit: leaving)
16:30:09 <kajzer> it's something in the main function, depends how you define it, actual config (keys, layouts, hooks etc.) don't matter
16:37:19 × ADG1089 quits (~aditya@122.163.193.183) (Quit: Konversation terminated!)
16:40:10 × mohab quits (~mohab@45.243.72.186) (Ping timeout: 265 seconds)
17:02:58 × notis quits (~notis@185.51.134.229) (Read error: Connection reset by peer)
17:06:37 notis joins (~notis@2a02:2149:8a44:5700:3fe0:286c:a70f:ba77)
17:08:54 × geekosaur quits (930099da@rrcs-147-0-153-218.central.biz.rr.com) (Quit: Connection closed)
17:13:16 geekosaur joins (930099da@rrcs-147-0-153-218.central.biz.rr.com)
17:32:43 × notis quits (~notis@2a02:2149:8a44:5700:3fe0:286c:a70f:ba77) (Ping timeout: 276 seconds)
17:33:55 notis joins (~notis@185.51.134.229)
17:48:52 × wonko7 quits (~wonko7@62.115.229.50) (Quit: See You Space Cowboy..)
17:49:20 wonko7 joins (~wonko7@62.115.229.50)
18:05:46 × notis quits (~notis@185.51.134.229) (Read error: Connection reset by peer)
18:06:12 × geekosaur quits (930099da@rrcs-147-0-153-218.central.biz.rr.com) (Quit: Connection closed)
18:18:18 geekosaur joins (930099da@rrcs-147-0-153-218.central.biz.rr.com)
18:41:07 × cyr4x3 quits (~cyr4x3@139.47.119.53) (Quit: WeeChat 2.3)
18:50:35 × thc202 quits (~thc202@unaffiliated/thc202) (Quit: thc202)
19:05:44 thc202 joins (~thc202@unaffiliated/thc202)
19:32:55 mohab joins (~mohab@45.243.80.178)
20:13:25 × geekosaur quits (930099da@rrcs-147-0-153-218.central.biz.rr.com) (Quit: Connection closed)
20:17:00 geekosaur joins (930099da@rrcs-147-0-153-218.central.biz.rr.com)
20:56:38 × geekosaur quits (930099da@rrcs-147-0-153-218.central.biz.rr.com) (Quit: Connection closed)
21:21:04 geekosaur joins (930099da@rrcs-147-0-153-218.central.biz.rr.com)
21:40:16 × mohab quits (~mohab@45.243.80.178) (Ping timeout: 260 seconds)
21:40:27 × cfricke quits (~cfricke@unaffiliated/cfricke) (Quit: WeeChat 3.1)
21:41:07 mohab joins (~mohab@41.237.251.184)
21:56:12 × mohab quits (~mohab@41.237.251.184) (Ping timeout: 240 seconds)
21:57:23 mohab joins (~mohab@45.243.39.138)
22:33:28 × seschwar quits (~seschwar@unaffiliated/seschwar) (Quit: :wq)
22:49:07 × mc47 quits (~yecinem@89.246.239.190) (Quit: Leaving)
22:52:21 ADG1089 joins (~aditya@122.163.193.183)
23:07:46 × mohab quits (~mohab@45.243.39.138) (Remote host closed the connection)
23:42:08 × thc202 quits (~thc202@unaffiliated/thc202) (Quit: thc202)

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