2021/11/26

2021-11-26 00:00:24 +0000 <Vermoot> but tbh I went back to (KeyMask, KeySym), and defined a custom keymask for meh
2021-11-26 00:00:31 +0000 <Vermoot> , ("C-S-M1-e", bindFirst [(className =? "discord", sendKey mod1Mask xK_Up)
2021-11-26 00:00:31 +0000 <Vermoot> , (pure True , sendKey mehMask xK_e)])
2021-11-26 00:00:45 +0000 <Vermoot> This is much more readable, and I actually understand it haha
2021-11-26 00:02:15 +0000 <geekosaur> yeh
2021-11-26 00:02:42 +0000 <geekosaur> that was why I suggested just using the KeyMask and KeySym to start with
2021-11-26 00:02:56 +0000 <geekosaur> sometimes being clever just isn't worth it
2021-11-26 00:10:06 +0000 <Vermoot> Well that definitely is a good tick in my todo list. Per-app shortcuts is done.
2021-11-26 00:10:19 +0000 <Vermoot> Thank you very much for your help, now it's time for me to go to bed
2021-11-26 00:10:22 +0000 <Vermoot> o/
2021-11-26 00:40:56 +0000noex(~noex@2600:8804:1280:aa0:5857:94a:25de:c513) (Quit: my dad's not a phone!)
2021-11-26 00:41:21 +0000noex(~null@2600:8804:1280:aa0:5857:94a:25de:c513)
2021-11-26 00:58:57 +0000mvk(~mvk@2607:fea8:5cc1:fa00::4702)
2021-11-26 01:24:31 +0000catman(~catman@user/catman) (Ping timeout: 250 seconds)
2021-11-26 02:34:42 +0000catman(~catman@user/catman)
2021-11-26 02:44:33 +0000catman(~catman@user/catman) (Quit: WeeChat 3.4-dev)
2021-11-26 02:46:59 +0000catman(~catman@user/catman)
2021-11-26 03:01:36 +0000benin(~benin@183.82.179.164) (Ping timeout: 245 seconds)
2021-11-26 03:02:02 +0000benin(~benin@183.82.179.164)
2021-11-26 03:03:41 +0000banc(banc@gateway/vpn/airvpn/banc) (Ping timeout: 245 seconds)
2021-11-26 03:10:58 +0000catman(~catman@user/catman) (Quit: WeeChat 3.4-dev)
2021-11-26 03:14:16 +0000catman(~catman@user/catman)
2021-11-26 03:22:12 +0000banc(banc@gateway/vpn/airvpn/banc)
2021-11-26 03:24:12 +0000td_(~td@94.134.91.22) (Ping timeout: 256 seconds)
2021-11-26 03:26:09 +0000td_(~td@94.134.91.33)
2021-11-26 03:43:07 +0000gruntsplatter(~sogens@gateway/vpn/pia/sogens)
2021-11-26 03:49:13 +0000catman(~catman@user/catman) (Quit: WeeChat 3.4-dev)
2021-11-26 04:01:17 +0000catman(~catman@user/catman)
2021-11-26 04:11:37 +0000gruntsplatter(~sogens@gateway/vpn/pia/sogens) (Quit: WeeChat 3.3)
2021-11-26 04:22:31 +0000catman_(~catman@user/catman)
2021-11-26 04:23:03 +0000catman(~catman@user/catman) (Killed (platinum.libera.chat (Nickname regained by services)))
2021-11-26 04:23:03 +0000catman_catman
2021-11-26 06:30:13 +0000qbt(~qbt@user/edun)
2021-11-26 06:39:56 +0000srk(~sorki@user/srk) (Ping timeout: 245 seconds)
2021-11-26 06:57:01 +0000benin(~benin@183.82.179.164) (Ping timeout: 245 seconds)
2021-11-26 06:59:57 +0000benin(~benin@183.82.179.164)
2021-11-26 07:23:19 +0000Solidnow remembers that he wanted to redo EZConfigs parsing to use a wrapped ReadP with sane behaviour
2021-11-26 07:23:41 +0000 <Solid> it's nice that we can get a genuinely commutative parser, but it's just a pain to use in practice
2021-11-26 07:24:02 +0000 <Solid> but since EZConfigs parsers are exported, that'd be a breaking change :/
2021-11-26 08:52:33 +0000cfricke(~cfricke@user/cfricke)
2021-11-26 09:17:38 +0000allbery_b(~geekosaur@xmonad/geekosaur)
2021-11-26 09:17:38 +0000geekosaur(~geekosaur@xmonad/geekosaur) (Killed (NickServ (GHOST command used by allbery_b)))
2021-11-26 09:17:41 +0000allbery_bgeekosaur
2021-11-26 09:19:01 +0000mc47(~mc47@xmonad/TheMC47)
2021-11-26 09:38:55 +0000srk(~sorki@user/srk)
2021-11-26 11:14:54 +0000 <Vermoot> Is there a smart/easy way to have a keybind do something, but also pass the keybind through?
2021-11-26 11:15:49 +0000 <Vermoot> Kind of like `clickJustFocuses = false` for a keybind. You *do* do an action, but also pass the keybind to the focused window
2021-11-26 11:20:37 +0000 <Vermoot> For now I just sendKey the binding, but I'd prefer a solution that doesn't require me to modify it for different bindings
2021-11-26 11:41:04 +0000 <geekosaur> there is not; once the X server upgrades the passive grab to an active one, all keys go to xmonad and the best you can do is sendKey
2021-11-26 11:43:29 +0000 <Vermoot> ok
2021-11-26 11:43:35 +0000 <Vermoot> That'll do then
2021-11-26 11:47:46 +0000vanvik4(~vanvik@82.194.204.210)
2021-11-26 11:48:53 +0000smashgra_(~smashgrab@bare.metal.computer)
2021-11-26 11:49:04 +0000jsoo_(~znc@irc.refl.club)
2021-11-26 11:51:25 +0000Eoco_(~ian@x-160-94-179-157.acm.umn.edu)
2021-11-26 11:54:57 +0000dschrempf(~dominik@070-207.dynamic.dsl.fonira.net)
2021-11-26 11:55:34 +0000eblip(~eb0t@90.199.243.141)
2021-11-26 11:55:59 +0000qbt(~qbt@user/edun) (Ping timeout: 260 seconds)
2021-11-26 11:55:59 +0000jsoo(~znc@irc.refl.club) (Ping timeout: 260 seconds)
2021-11-26 11:55:59 +0000rundown(~eb0t@90.199.243.141) (Ping timeout: 260 seconds)
2021-11-26 11:55:59 +0000Eoco(~ian@x-160-94-179-157.acm.umn.edu) (Ping timeout: 260 seconds)
2021-11-26 11:56:00 +0000vanvik(~vanvik@82.194.204.210) (Ping timeout: 260 seconds)
2021-11-26 11:56:00 +0000smashgrab(~smashgrab@bare.metal.computer) (Ping timeout: 260 seconds)
2021-11-26 11:56:01 +0000vanvik4vanvik
2021-11-26 12:04:00 +0000qbt(~qbt@user/edun)
2021-11-26 12:04:22 +0000qbt(~qbt@user/edun) (Remote host closed the connection)
2021-11-26 12:04:39 +0000qbt(~qbt@user/edun)
2021-11-26 12:16:11 +0000benin(~benin@183.82.179.164) (Ping timeout: 245 seconds)
2021-11-26 12:28:13 +0000benin(~benin@183.82.179.164)
2021-11-26 12:46:21 +0000cfricke(~cfricke@user/cfricke) (Ping timeout: 250 seconds)
2021-11-26 12:47:39 +0000cfricke(~cfricke@user/cfricke)
2021-11-26 13:53:53 +0000mc47(~mc47@xmonad/TheMC47) (Remote host closed the connection)
2021-11-26 14:28:20 +0000eblip(~eb0t@90.199.243.141) (Quit: WeeChat 3.0)
2021-11-26 15:25:24 +0000dschrempf(~dominik@070-207.dynamic.dsl.fonira.net) (Quit: WeeChat 3.3)
2021-11-26 15:53:30 +0000seschwar(~seschwar@user/seschwar)
2021-11-26 16:44:46 +0000qbt(~qbt@user/edun) (Quit: Leaving.)
2021-11-26 16:47:45 +0000cfricke(~cfricke@user/cfricke) (Quit: WeeChat 3.3)
2021-11-26 17:11:19 +0000qbt(~qbt@user/edun)
2021-11-26 17:16:16 +0000qbt(~qbt@user/edun) (Quit: Leaving.)
2021-11-26 17:22:37 +0000geekosaur(~geekosaur@xmonad/geekosaur) (Remote host closed the connection)
2021-11-26 17:24:18 +0000geekosaur(~geekosaur@xmonad/geekosaur)
2021-11-26 17:54:03 +0000benin(~benin@183.82.179.164) (Quit: The Lounge - https://thelounge.chat)
2021-11-26 17:54:54 +0000benin(~benin@183.82.179.164)
2021-11-26 18:02:07 +0000geekosaur(~geekosaur@xmonad/geekosaur) (Remote host closed the connection)
2021-11-26 18:06:14 +0000geekosaur(~geekosaur@xmonad/geekosaur)
2021-11-26 18:10:49 +0000benin(~benin@183.82.179.164) (Quit: The Lounge - https://thelounge.chat)
2021-11-26 18:13:58 +0000benin(~benin@183.82.179.164)
2021-11-26 18:17:42 +0000benin(~benin@183.82.179.164) (Client Quit)
2021-11-26 18:18:13 +0000kiyit63504[m](~kiyit6350@2001:470:69fc:105::1:3e8a)
2021-11-26 18:27:31 +0000vanvik(~vanvik@82.194.204.210) (Quit: Later)
2021-11-26 18:27:53 +0000vanvik(~vanvik@82.194.204.210)
2021-11-26 18:32:31 +0000catman(~catman@user/catman) (Quit: WeeChat 3.4-dev)
2021-11-26 18:40:01 +0000catman(~catman@user/catman)
2021-11-26 19:32:08 +0000MrNobody_0000000(~MrNobody@user/mrnobody-0000000/x-9129771)
2021-11-26 19:46:16 +0000 <FOSSHuman[m]> How would I create a keybind with additionalKeysP that can shift all windows in the focused workspace to another one? I've looked at some other configs that do this, but they used myKeys to do this + a Zipper function and a list from 0-9... Is there a way to do some kind of list comprehension in additionalKeysP??
2021-11-26 19:47:47 +0000 <FOSSHuman[m]> FOSSHuman[m]: (IIRC)
2021-11-26 19:49:41 +0000 <geekosaur> I wouldn't use a list comprehension, I'd just get the focused workspace and shift each window in {focus, up, down}
2021-11-26 20:37:11 +0000VarikValefor[m](~varikvale@2001:470:69fc:105::a5d) (Ping timeout: 250 seconds)
2021-11-26 20:37:24 +0000VarikValefor[m](~varikvale@2001:470:69fc:105::a5d)
2021-11-26 20:51:59 +0000mc47(~mc47@xmonad/TheMC47)
2021-11-26 20:56:09 +0000cyr4x3(~cyr4x3@139.47.118.87)
2021-11-26 21:10:37 +0000 <Vermoot> Can't you just cobble something together with `map` and `Stack`, allowing you to move every window in the stack with one function call?
2021-11-26 21:12:10 +0000 <geekosaur> hm, a Stack is Traversable… that might be crazy enough to work
2021-11-26 21:12:24 +0000 <Vermoot> I have no idea what that means, but alright :D
2021-11-26 21:12:49 +0000 <geekosaur> you can traverse the Window-s in a Stack
2021-11-26 21:14:03 +0000 <geekosaur> although maybe fold would be good enough, z is the original StackSet and f is either shiftWin or flip shiftWin, I forget which
2021-11-26 21:15:20 +0000 <geekosaur> :t foldr
2021-11-26 21:15:21 +0000 <lambdabot> Foldable t => (a -> b -> b) -> b -> t a -> b
2021-11-26 21:16:21 +0000dschrempf(~dominik@070-207.dynamic.dsl.fonira.net)
2021-11-26 21:18:31 +0000 <geekosaur> windows (\ss -> foldr shiftWin ss ((stack . workspace . current) ss)) -- maybe?
2021-11-26 21:19:02 +0000 <geekosaur> no, that's missing the destination
2021-11-26 21:19:23 +0000 <geekosaur> \tag -> windows (\ss -> foldr (shiftWin tag) ss ((stack . workspace . current) ss)) -- maybe?
2021-11-26 21:19:33 +0000 <geekosaur> where tag is the destination workspace
2021-11-26 21:21:36 +0000 <geekosaur> ofc if you always want the same tag you can remove the \tag -> and hardcode the tag in the shiftWin
2021-11-26 21:25:50 +0000 <geekosaur> missing a lot of W. and I get a type error after fixing it :(
2021-11-26 21:29:33 +0000 <geekosaur> *Main W> :t windows (\ss -> foldr (W.shiftWin "2") ss ((W.integrate' . W.stack . W.workspace . W.current) ss))
2021-11-26 21:29:33 +0000 <geekosaur> windows (\ss -> foldr (W.shiftWin "2") ss ((W.integrate' . W.stack . W.workspace . W.current) ss))
2021-11-26 21:29:33 +0000 <geekosaur> :: X ()
2021-11-26 21:30:01 +0000 <geekosaur> replace "2" with your chosen tag
2021-11-26 21:43:10 +0000 <geekosaur> FOSSHuman[m], ^^
2021-11-26 21:54:29 +0000alternateved(~user@staticline-31-183-149-3.toya.net.pl)
2021-11-26 22:18:49 +0000cyr4x3(~cyr4x3@139.47.118.87) (Quit: WeeChat 2.3)
2021-11-26 22:47:26 +0000dschrempf(~dominik@070-207.dynamic.dsl.fonira.net) (Quit: WeeChat 3.3)
2021-11-26 23:18:46 +0000seschwar(~seschwar@user/seschwar) (Quit: :wq)
2021-11-26 23:25:56 +0000catman(~catman@user/catman) (Quit: WeeChat 3.4-dev)
2021-11-26 23:26:51 +0000mc47(~mc47@xmonad/TheMC47) (Remote host closed the connection)
2021-11-26 23:29:08 +0000mzabani(~mzabani@187.101.29.17)
2021-11-26 23:29:33 +0000mzabani(~mzabani@187.101.29.17) (Client Quit)
2021-11-26 23:29:53 +0000mzabani(~mzabani@187.101.29.17)
2021-11-26 23:34:59 +0000catman(~catman@user/catman)
2021-11-26 23:40:38 +0000mzabani(~mzabani@187.101.29.17) (Quit: Client closed)
2021-11-26 23:57:42 +0000MrNobody_0000000(~MrNobody@user/mrnobody-0000000/x-9129771) (Ping timeout: 276 seconds)