Home liberachat/#xmonad: Logs Calendar

Logs on 2021-11-26 (liberachat/#xmonad)

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

All times are in UTC on 2021-11-26.