Home liberachat/#xmonad: Logs Calendar

Logs: liberachat/#xmonad

←Prev  Next→ 184,639 events total
2024-11-10 20:49:07 down200 joins (~down200@shell.lug.mtu.edu)
2024-11-10 20:52:24 yaslam joins (~yaslam@user/yaslam)
2024-11-10 21:12:33 × tv quits (~tv@user/tv) (Read error: Connection reset by peer)
2024-11-10 21:14:47 tv joins (~tv@user/tv)
2024-11-10 21:47:59 × ash3en quits (~Thunderbi@2a03:7846:b6eb:101:93ac:a90a:da67:f207) (Quit: ash3en)
2024-11-10 23:04:45 × tremon quits (~tremon@83.80.159.219) (Quit: getting boxed in)
2024-11-10 23:35:13 werneta joins (~werneta@syn-071-083-160-242.res.spectrum.com)
2024-11-11 01:28:55 × werneta quits (~werneta@syn-071-083-160-242.res.spectrum.com) (Quit: leaving)
2024-11-11 02:14:22 werneta joins (~werneta@syn-071-083-160-242.res.spectrum.com)
2024-11-11 03:46:29 × td_ quits (~td@i53870914.versanet.de) (Ping timeout: 248 seconds)
2024-11-11 03:48:16 td_ joins (~td@i5387091E.versanet.de)
2024-11-11 06:47:32 × werneta quits (~werneta@syn-071-083-160-242.res.spectrum.com) (Ping timeout: 272 seconds)
2024-11-11 07:49:55 × ft quits (~ft@p4fc2a216.dip0.t-ipconnect.de) (Quit: leaving)
2024-11-11 09:40:24 × ElKowar quits (~ElKowar@srv-fin.xware-gmbh.de) (Quit: Ping timeout (120 seconds))
2024-11-11 09:40:47 ElKowar joins (~ElKowar@srv-fin.xware-gmbh.de)
2024-11-11 10:30:32 × Miroboru quits (~myrvoll@178-164-114.82.3p.ntebredband.no) (Quit: Lost terminal)
2024-11-11 10:37:00 Miroboru joins (~myrvoll@178-164-114.82.3p.ntebredband.no)
2024-11-11 13:33:24 T_X_ joins (~T_X@diktynna.open-mesh.org)
2024-11-11 13:33:41 × T_X quits (~T_X@diktynna.open-mesh.org) (Read error: Connection reset by peer)
2024-11-11 17:16:55 ash3en joins (~Thunderbi@2a03:7846:b6eb:101:93ac:a90a:da67:f207)
2024-11-11 17:31:59 ft joins (~ft@p4fc2a216.dip0.t-ipconnect.de)
2024-11-11 18:24:20 × ft quits (~ft@p4fc2a216.dip0.t-ipconnect.de) (Quit: Lost terminal)
2024-11-11 18:26:24 ft joins (~ft@p4fc2a216.dip0.t-ipconnect.de)
2024-11-11 20:13:57 × ash3en quits (~Thunderbi@2a03:7846:b6eb:101:93ac:a90a:da67:f207) (Remote host closed the connection)
2024-11-12 01:00:54 × td_ quits (~td@i5387091E.versanet.de) (Ping timeout: 260 seconds)
2024-11-12 01:02:17 td_ joins (~td@i53870914.versanet.de)
2024-11-12 01:37:37 beastwick joins (~brian@user/beastwick)
2024-11-12 01:39:00 <beastwick> Hi, curious if I can convert the code for dynamic workspace keys to work with a submap. So something like meta - h -> a function that generates the code for the submaps, specically A-Z keys. I have done it without a submap, but I still don't have a good grip on Haskell.
2024-11-12 01:39:25 <beastwick> basically want A-Z under a submap to dynamically assign hotkeys to the workspace.
2024-11-12 01:41:09 <geekosaur> dynamically assigning keys isn't really a thing in xmonad
2024-11-12 01:42:05 <geekosaur> you can rerun the code to bind keys in X11 but you can't change the mapping that it will rebind without restarting xmonad
2024-11-12 01:43:57 <beastwick> so, zip (zip (repeat (modm)) [xK_1..xK_9]) (map (withNthWorkspace W.greedyView) [0..]) can't be rewritten to return a structure that can be supplied to , ((modm, xK_a), submap . M.fromList $ [ ...
2024-11-12 01:44:40 <geekosaur> is that actually what you want? ypou made it sound like you wanted a keymap to be dynamically added when you dynamically ad a workspace
2024-11-12 01:44:51 <geekosaur> that can't be done without restarting xmonad
2024-11-12 01:45:07 <beastwick> don't mind restarting, trying to add to my config
2024-11-12 01:45:20 <beastwick> no not when I add a workspace
2024-11-12 01:45:29 <beastwick> when xmonad loads, from the config
2024-11-12 01:46:09 <beastwick> basically, I want the submap to be a set of keys, A-Z that can be assigned to a workspace, or used to switch to a workspace.
2024-11-12 01:46:13 <geekosaur> mm, actually I think it's hatrder than that because (a) once added, can't be removed because it's a function and you can't inspect functions (b) `xmonad` never returns, you exit by exiting the program, so you would have to actually edit your config somehoew
2024-11-12 01:46:24 <geekosaur> xmonad really isn't designed for this use case
2024-11-12 01:46:33 <beastwick> I think I am not explaning this well.
2024-11-12 01:46:42 <beastwick> https://hackage.haskell.org/package/xmonad-contrib-0.13/docs/XMonad-Actions-DynamicWorkspaces.html#g:1
2024-11-12 01:46:54 <beastwick> has an example of setting up keys
2024-11-12 01:47:25 <beastwick> I want to setup a submap, because I don't have enough keys and if I use a differnt modifier key just for those keys like alt - it affects other programs
2024-11-12 01:47:27 <beastwick> https://xmonad.github.io/xmonad-docs/xmonad-contrib/XMonad-Actions-Submap.html
2024-11-12 01:48:20 <beastwick> basically under a submap I want my full keyboard of a-z so I can assign hotkeys to workspaces
2024-11-12 01:48:30 <beastwick> I like using a-z for mnemonics
2024-11-12 01:48:55 <geekosaur> submap takes the same parameters as keys, you don't need to change the code at all, just pass it to M.fromList
2024-11-12 01:49:20 <geekosaur> I thought you wanted to create a new submap for each added workspace
2024-11-12 01:49:31 <beastwick> no, although that sounds interesting
2024-11-12 01:49:33 <beastwick> haha
2024-11-12 01:50:20 <geekosaur> I do much the same thing although I'm not adding workspaces, I use submaps for related actions (BSP operations, my window debugging functions, things like that)
2024-11-12 01:50:51 <geekosaur> also I use additionalKeysP so it's just a prefix rather than a separate manual submap definition
2024-11-12 01:52:06 <beastwick> hmmm, how to pass to M.fromList, just M.fromList ++ zip (zip (repeat (0)) [xK_1..xK_9]) (map (withWorkspaceIndex W.greedyView) [1..]) ? something like that?
2024-11-12 01:52:22 <geekosaur> no, you don't need the ++
2024-11-12 01:52:42 <geekosaur> M.fromList $ zip …
2024-11-12 01:53:20 <beastwick> this is where my haskell falls apart :( M.fromList $ zip (zip (repeat (modm)) [xK_1..xK_9]) (map (withWorkspaceIndex W.greedyView) [1..]) zip (zip (repeat (modm .|. controlMask)) [xK_1..xK_9]) (map (setWorkspaceIndex) [1..]) ?
2024-11-12 01:53:34 <beastwick> well modm becomes 0
2024-11-12 01:54:07 <geekosaur> and you want the second ++ to combine the two zips
2024-11-12 01:54:15 <beastwick> okay, that makes sense
2024-11-12 01:54:19 <beastwick> cool, gonna try
2024-11-12 01:54:22 <beastwick> excited!
2024-11-12 01:54:35 <geekosaur> what you don't want is the first one because you are not concatenating with fromList, you are passing the (combined) list to it
2024-11-12 01:55:16 <geekosaur> you may need some parens to limit what the $ applies to also, but I think the one you need around the top level keybind is enough
2024-11-12 01:58:09 <beastwick> well it compiled without error, bbs testing
2024-11-12 02:01:58 <beastwick> geekosaur you're the best
2024-11-12 02:06:05 <beastwick> much thanks again
2024-11-12 03:31:57 × td_ quits (~td@i53870914.versanet.de) (Ping timeout: 252 seconds)
2024-11-12 03:33:54 td_ joins (~td@i5387092B.versanet.de)
2024-11-12 03:42:18 × terrorjack4 quits (~terrorjac@2a01:4f8:c17:dc9f::) (Quit: The Lounge - https://thelounge.chat)
2024-11-12 03:45:16 terrorjack4 joins (~terrorjac@2a01:4f8:c17:dc9f::)
2024-11-12 04:40:31 piele joins (~piele@tbonesteak.creativeserver.net)
2024-11-12 05:31:20 × zawaken quits (~zawaken@user/zawaken) (Ping timeout: 244 seconds)
2024-11-12 05:35:15 zawaken joins (~zawaken@user/zawaken)
2024-11-12 08:15:07 × haskellbridge quits (~hackager@syn-024-093-192-219.res.spectrum.com) (Ping timeout: 264 seconds)
2024-11-12 08:15:42 haskellbridge joins (~hackager@syn-024-093-192-219.res.spectrum.com)
2024-11-12 08:27:45 alp joins (~alp@2001:861:e3d6:8f80:a99a:73f2:3cc3:6a6c)
2024-11-12 08:54:43 Guest66 joins (~Guest66@130.225.10.121)
2024-11-12 08:55:03 × Guest66 quits (~Guest66@130.225.10.121) (Client Quit)
2024-11-12 09:03:49 × ft quits (~ft@p4fc2a216.dip0.t-ipconnect.de) (Quit: leaving)
2024-11-12 11:43:06 todi_away is now known as todi
2024-11-12 12:57:23 × L29Ah quits (~L29Ah@wikipedia/L29Ah) (Read error: Connection reset by peer)
2024-11-12 12:57:58 L29Ah joins (~L29Ah@wikipedia/L29Ah)
2024-11-12 14:33:27 × alp quits (~alp@2001:861:e3d6:8f80:a99a:73f2:3cc3:6a6c) (Ping timeout: 246 seconds)
2024-11-12 17:51:12 alp joins (~alp@2001:861:e3d6:8f80:46dd:be45:db8:fbc7)
2024-11-12 18:09:49 ash3en joins (~Thunderbi@2a03:7846:b6eb:101:93ac:a90a:da67:f207)
2024-11-12 19:11:07 × ash3en quits (~Thunderbi@2a03:7846:b6eb:101:93ac:a90a:da67:f207) (Quit: ash3en)
2024-11-12 19:39:26 ash3en joins (~Thunderbi@2a03:7846:b6eb:101:93ac:a90a:da67:f207)
2024-11-12 20:07:29 ft joins (~ft@p4fc2a216.dip0.t-ipconnect.de)
2024-11-12 20:29:20 × ash3en quits (~Thunderbi@2a03:7846:b6eb:101:93ac:a90a:da67:f207) (Quit: ash3en)
2024-11-13 00:04:52 yuzu joins (~yuzu@2800:484:2482:7000:8185:93f7:e30f:cb00)
2024-11-13 00:13:07 × yuzu quits (~yuzu@2800:484:2482:7000:8185:93f7:e30f:cb00) (Quit: Client closed)
2024-11-13 00:31:32 × L29Ah quits (~L29Ah@wikipedia/L29Ah) (Ping timeout: 252 seconds)
2024-11-13 01:45:57 <beastwick> hi again, curious, where should I look if I want to run a function to affect a screen opposite of the one I am currently focused?
2024-11-13 01:51:31 <beastwick> oh maybe Actions.OnScreen
2024-11-13 02:03:13 <geekosaur> I have 3. Which one's "opposite"?
2024-11-13 02:04:04 <geekosaur> but, you may want https://hackage.haskell.org/package/xmonad-0.18.0/docs/XMonad-Operations.html#v:screenWorkspace
2024-11-13 02:05:55 <geekosaur> (xmonad doesn't really do screens as such, you almost always want the workspace on the screen)
2024-11-13 02:23:37 yaslam_ joins (~yaslam@user/yaslam)
2024-11-13 02:24:23 × yaslam quits (~yaslam@user/yaslam) (Ping timeout: 265 seconds)

All times are in UTC.