Home liberachat/#xmonad: Logs Calendar

Logs on 2023-02-08 (liberachat/#xmonad)

00:29:49 × patrl quits (~patrl@user/patrl) (Quit: WeeChat 3.8)
01:52:55 werneta joins (~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net)
02:33:26 <ectospasm> I finally fixed my DisplayLink setup in X.org, and I'm trying to resurrect my multiheaded setup in XMonad. Here is what I have so far: https://git.eldon.me/trey/XMonad/src/branch/multiheaded-fixup/xmonad.hs
02:33:41 unclechu joins (~unclechu@2001:470:69fc:105::354)
02:34:09 <ectospasm> I had this working some time ago, but hadn't really played with it in years (ever since the evdi DisplayLink kernel driver was so far behind the current stable Linux kernel).
02:34:25 <ectospasm> Now I've finally fixed that problem, and I'd like to revamp my multiheaded setup.
02:34:52 <ectospasm> I usually run this laptop in single-screen mode, and I'd like to keep that part functioning.
02:35:23 <ectospasm> My current issues: I can't remember how to set up workspaces for multiple screens (I have comments and the vestiges of my previous setup)
02:36:06 <ectospasm> I also have a big gap at the bottom for some conky CLI system view stuff. I only want that on my primary laptop monitor, don't know where to start to eliminate these gaps on the external monitors.
02:36:31 <ectospasm> The main issue is the workspaces for now. I found this: https://www.reddit.com/r/xmonad/comments/o0drvz/multiple_workspace_swap_for_multiple_monitors/
02:37:11 <ectospasm> But that is using an XMonad.Actions package I haven't yet used (I've just imported it without using it in my current working branch)
02:38:36 <ectospasm> My first order of business is to move my workspace named "shell" to monitor 2 (which I believe is the one physically to the right of the primary laptop screen).
02:41:54 <ectospasm> I admit, my Haskell is always perennially rusty, if it's any good at all. I did manage to write that activateMyTerminal function, but it's probably not the greatest way to do that.
02:42:25 <ectospasm> wrote it yesterday*
03:03:07 × banc quits (banc@gateway/vpn/protonvpn/banc) (Ping timeout: 248 seconds)
03:20:51 banc joins (banc@gateway/vpn/protonvpn/banc)
03:41:11 × terrorjack quits (~terrorjac@2a01:4f8:1c1e:4e8c::) (Quit: The Lounge - https://thelounge.chat)
03:43:27 terrorjack joins (~terrorjac@2a01:4f8:1c1e:4e8c::)
03:50:11 beastwick joins (~beastwick@pool-74-102-103-88.nwrknj.fios.verizon.net)
03:52:03 <beastwick> hello all, I am working with Dynamic Workspaces in addition to the 1 - 9 default spaces. Is it possible to manually set a newly created workspace's index? Basically I would like to create/add a new named space and set that workspace's index to say 1, so I can use a hotkey to jump to it.
03:52:25 <beastwick> I don't mind if the original "1" workspace loses its associated hotkey.
04:01:54 × td_ quits (~td@i5387092C.versanet.de) (Ping timeout: 260 seconds)
04:03:38 td_ joins (~td@i53870902.versanet.de)
04:40:56 kayvank joins (~user@52-119-115-185.PUBLIC.monkeybrains.net)
04:41:30 × kayvank quits (~user@52-119-115-185.PUBLIC.monkeybrains.net) (Client Quit)
04:52:37 kayvank joins (~user@52-119-115-185.PUBLIC.monkeybrains.net)
04:53:04 × kayvank quits (~user@52-119-115-185.PUBLIC.monkeybrains.net) (Client Quit)
04:55:00 <ectospasm> I'm not sure about assigning numbers to workspaces, all of my workspaces are named. They're dynamic, but I rarely ever delete or add any.
04:55:51 <ectospasm> I also just switch to them by name, rather than hotkey.
05:46:43 × [Leary] quits (~Leary]@user/Leary/x-0910699) (Remote host closed the connection)
05:48:09 [Leary] joins (~Leary]@user/Leary/x-0910699)
06:28:42 <galactic_starfis> <[Leary]> "vents into sequences of model..." <- sounds epic
06:29:44 <galactic_starfis> ectospasm and beastwick, I also am interested in what you're after, I'll get back to you if I figure that out
06:36:42 × jao quits (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) (Ping timeout: 268 seconds)
07:18:01 × werneta quits (~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net) (Ping timeout: 268 seconds)
07:19:30 werneta joins (~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net)
08:25:25 × yosafbridge quits (~yosafbrid@static.38.6.217.95.clients.your-server.de) (Quit: Leaving)
08:33:31 yosafbridge joins (~yosafbrid@static.38.6.217.95.clients.your-server.de)
08:34:39 × xacktm quits (~xacktm@user/xacktm) (Ping timeout: 260 seconds)
08:41:03 xacktm joins (~xacktm@user/xacktm)
08:49:33 cfricke joins (~cfricke@user/cfricke)
08:56:31 × ft quits (~ft@p508dbcc4.dip0.t-ipconnect.de) (Quit: leaving)
09:58:40 × jludwig quits (~justin@li657-110.members.linode.com) (Read error: Connection reset by peer)
10:01:12 jludwig joins (~justin@li657-110.members.linode.com)
10:10:53 × jludwig quits (~justin@li657-110.members.linode.com) (Quit: ZNC - https://znc.in)
10:11:55 jludwig joins (~justin@li657-110.members.linode.com)
10:15:16 × jludwig quits (~justin@li657-110.members.linode.com) (Client Quit)
10:23:28 mc47 joins (~mc47@xmonad/TheMC47)
10:23:48 themc47 joins (~mc47@xmonad/TheMC47)
10:23:59 × themc47 quits (~mc47@xmonad/TheMC47) (Client Quit)
11:16:20 jludwig joins (~justin@li657-110.members.linode.com)
12:13:36 × jludwig quits (~justin@li657-110.members.linode.com) (Quit: ZNC - https://znc.in)
12:52:58 jludwig joins (~justin@li657-110.members.linode.com)
13:28:10 <geekosaur> re workspaces, you would have to rename the existing workspace before you could rename your new one. see https://hackage.haskell.org/package/xmonad-0.17.1/docs/XMonad-StackSet.html#v:renameTag
13:33:56 <geekosaur> (workspace "numbers" are just default names; nothing special. I don't even use them, I provide names for all my workspaces)
14:55:24 jao joins (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net)
16:00:12 × unclechu quits (~unclechu@2001:470:69fc:105::354) (Quit: You have been kicked for being idle)
17:02:02 patrl joins (~patrl@user/patrl)
17:02:07 × werneta quits (~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net) (Remote host closed the connection)
17:12:14 <beastwick> galactic_starfish, taking a break from figuring that out, trying to not pay attention to indices atm - sort of driving my self nuts that way, but it is something I will look into again soon, so i'll keep you updated. So far go to empty/move to empty and listing all open windows is helping a lot
17:12:39 unclechu joins (~unclechu@2001:470:69fc:105::354)
17:33:41 kayvank joins (~user@52-119-115-185.PUBLIC.monkeybrains.net)
17:40:23 × cfricke quits (~cfricke@user/cfricke) (Quit: WeeChat 3.8)
17:58:22 × kayvank quits (~user@52-119-115-185.PUBLIC.monkeybrains.net) (Remote host closed the connection)
18:02:01 × patrl quits (~patrl@user/patrl) (Quit: WeeChat 3.8)
18:08:20 × jeeeun quits (~jeeeun@78.40.148.178) (Quit: The Lounge - https://thelounge.chat)
18:11:57 jeeeun joins (~jeeeun@78.40.148.178)
18:30:02 <beastwick> actually, I do need some help, actual haskell here
18:30:07 <beastwick> since i'm not very good
18:30:28 <beastwick> in additionalKeysP, I am trying to do something like: , ("M-C-" ++ [n], setWorkspaceIndex [n] | n <- ['1'..'9'])
18:30:48 <beastwick> i want to create a keybind for 1-9 to set the workspace index, any ideas?
18:31:02 <beastwick> error: parse error on input `|`
18:31:49 <geekosaur> you can't do it that way; a list comprehension is a separate list, not something you can embed in an existing one
18:33:02 <beastwick> ah is there where a ++ [] comes in handy?
18:33:04 <geekosaur> `++ [ ("M-C-" ++ [n], setWorkspaceIndex [n] | n <- ['1'..'9'] ]`
18:33:21 <beastwick> this*, lol 'there where'
18:33:42 <geekosaur> https://github.com/geekosaur/xmonad.hs/blob/skkukuk/xmonad.hs#L258-L265 is another example
18:34:59 <beastwick> hmm it still doesn't like the where |
18:35:06 <beastwick> xmonad.hs:68:43: error: parse error on input `|`
18:35:45 <geekosaur> @where paste
18:35:45 <lambdabot> Help us help you: please paste full code, input and/or output at e.g. https://paste.tomsmeding.com
18:36:30 <beastwick> https://paste.tomsmeding.com/04jXdsh1
18:37:07 <geekosaur> you're missing the closing parenthesis on the tuple
18:37:27 <geekosaur> oh, because I dropped it in mine, sorry
18:37:32 <beastwick> that's ok
18:37:35 <geekosaur> `++ [ ("M-C-" ++ [n], setWorkspaceIndex [n]) | n <- ['1'..'9'] ]`
18:37:42 <beastwick> ty :) let me try
18:39:19 <beastwick> ouch it really didn't like that, https://paste.tomsmeding.com/9lnVeHoJ
18:39:29 <beastwick> yeah this is a bit beyond me now, type error looks like
18:40:51 <geekosaur> yeh, you need extra parentheses like mine has (the github paste) so it appends to the list passed to `additionalKeysP` instead of trying to append to your config
18:41:43 <geekosaur> in mine, the open paren is on line 203 and the close paren on line 265
18:46:40 <geekosaur> I think we've talked about changing the precedence of `additionalKeysP`, but never actually did it
18:50:06 Yeuuuuuuu[m] is now known as qzedcvfe[m]
18:54:50 ft joins (~ft@p508dbcc4.dip0.t-ipconnect.de)
19:05:41 <beastwick> ok, i'll review your gist
19:11:52 <geekosaur> liskin, Solid, mc47: at one point we discussed dropping the precedence of infix `additionalKeysP` and friends to 4. does anyone recall why we didn't?
19:24:28 rekahsoft joins (~rekahsoft@bras-base-orllon1122w-grc-05-174-88-194-86.dsl.bell.ca)
19:24:35 × rekahsoft quits (~rekahsoft@bras-base-orllon1122w-grc-05-174-88-194-86.dsl.bell.ca) (Remote host closed the connection)
19:29:11 rekahsoft joins (~rekahsoft@bras-base-orllon1122w-grc-05-174-88-194-86.dsl.bell.ca)
19:30:03 <geekosaur> nothing in issues or PRs about it, unfortunately; I think we only discussed it in here
19:31:40 <geekosaur> found discussion in my log, we concluded about what I just said and then did nothing about it
19:33:31 × rekahsoft quits (~rekahsoft@bras-base-orllon1122w-grc-05-174-88-194-86.dsl.bell.ca) (Ping timeout: 248 seconds)
19:39:33 kayvank joins (~user@52-119-115-185.PUBLIC.monkeybrains.net)
19:42:55 <beastwick> geekosaur, this compiles, but it seems to not have any effect https://paste.tomsmeding.com/DlBbEFKU
19:43:14 <beastwick> pressing M-C-1..9 doesn't change the workspace index
19:43:18 <geekosaur> on the phone, will have to wait a bit, sorry
19:43:22 <beastwick> np
19:48:16 × kayvank quits (~user@52-119-115-185.PUBLIC.monkeybrains.net) (Quit: ERC 5.4 (IRC client for GNU Emacs 28.1))
19:48:50 kayvank joins (~user@52-119-115-185.public.monkeybrains.net)
19:50:18 werneta joins (~werneta@137.79.219.74)
19:53:34 × kayvank quits (~user@52-119-115-185.public.monkeybrains.net) (Client Quit)
19:54:00 <geekosaur> okay, that's going to run once for each combination of tag and index
19:54:55 kayvank joins (~user@52-119-115-185.PUBLIC.monkeybrains.net)
19:55:19 <geekosaur> you probably need something like: `[("M-C-" ++ show x, setWorkspaceIndex x) | x <- [1..9]]`
19:55:20 × kayvank quits (~user@52-119-115-185.PUBLIC.monkeybrains.net) (Client Quit)
19:55:49 kayvank joins (~user@52-119-115-185.PUBLIC.monkeybrains.net)
19:56:04 <beastwick> using this as ref `removeKeysP` ["M-S-" ++ [n] | n <- ['1'..'9']]
20:00:10 <geekosaur[m]> > [(n,x) | n <- ['1'..'9'], x <- [1..9]]
20:00:12 <lambdabot> [('1',1),('1',2),('1',3),('1',4),('1',5),('1',6),('1',7),('1',8),('1',9),('2...
20:01:19 <beastwick> oh what
20:01:28 <beastwick> the first element in the pair should increment no?
20:02:01 <geekosaur[m]> Cartesian product
20:02:14 <beastwick> > [(n,x) | n <- [1..9], x <- [1..9]]
20:02:15 <lambdabot> [(1,1),(1,2),(1,3),(1,4),(1,5),(1,6),(1,7),(1,8),(1,9),(2,1),(2,2),(2,3),(2,...
20:02:20 <beastwick> oh it is
20:02:30 <beastwick> oh I see why what I did is bad
20:03:04 <beastwick> however, it still has no effect lol
20:03:47 <beastwick> I did not convert this, as I saw no need since my default keybinds of 1 - 9 are setup, would this be part of the prob? zip (zip (repeat (modm)) [xK_1..xK_9]) (map (withWorkspaceIndex W.greedyView) [1..]) This is from the DynamicWorkspaces module
20:04:03 <beastwick> not sure why I would need to do that
20:05:39 <geekosaur> that just changes the default keybinds to go by your assigned workspace index instead of by the order of workspaces in `workspaces`. you may want it, yes
20:06:20 <beastwick> that looks a bit tougher to convert to additionalKeysP, but i'll try
20:09:08 <geekosaur> second `zip` becomes `map (("M-" ++) . show . subtract 48`, I think
20:09:22 <beastwick> [("M-" ++ show x, withWorkspaceIndex W.greedyView x) | x <- [1..9]])
20:09:22 <geekosaur> wait, dropped a close paren
20:09:27 <geekosaur> second `zip` becomes `map (("M-" ++) . show . subtract 48)`, I think
20:10:32 <beastwick> ok my M-<1-9> keys seem to not work now, I think I need to unbind the originals
20:10:44 <geekosaur> this should replace them
20:12:09 <mc47> geekosaur: I don't recall that
20:13:51 <geekosaur> I apparently only discussed it with Solid in channel
20:14:33 <geekosaur> https://paste.tomsmeding.com/X8KYGl28
20:20:03 <beastwick> geekosaur, ok removing the original binds, and including the new binds works, but it seems like I need to manually set each workspace to an index
20:23:34 <beastwick> this is the working config https://paste.tomsmeding.com/aONGGndu
20:23:39 <beastwick> awesome
20:24:28 <geekosaur> well yes, that's the downside of doing things by index
20:24:45 <geekosaur> I'm wondering if you maybe just want to change to named workspaces instead of using the default numbers
20:25:07 <beastwick> yeah, I think I am conflicted about how to approach my workspaces lol
20:25:25 <beastwick> i like both the dynamic workspaces, but now i'm wondering if I just need an extra set
20:25:32 <beastwick> F1 - F12 or w/e
20:25:32 <geekosaur> https://github.com/geekosaur/xmonad.hs/blob/skkukuk/xmonad.hs#L59-L61 and https://github.com/geekosaur/xmonad.hs/blob/skkukuk/xmonad.hs#L133
20:25:45 <beastwick> and the ability to name them
20:25:54 <beastwick> or rename them
20:26:25 <geekosaur> and maybe up the number of keys used, yes. I use keys xK_1 through xK_equals (which sadly can't be specified as a simple range)
20:26:39 <beastwick> can F1 - F12 be ranged?
20:26:39 <geekosaur> https://github.com/geekosaur/xmonad.hs/blob/skkukuk/xmonad.hs#L261
20:26:42 <beastwick> or I have to do each one
20:26:43 <geekosaur> yes
20:27:02 <geekosaur> [xK_F1 .. xK_F12] is fine
20:27:11 <beastwick> nice
20:27:28 <geekosaur> may need an import, lemme check
20:27:53 <geekosaur> no, no extra import needed
20:28:27 <geekosaur> ghci> [xK_F1 .. xK_F12]
20:28:28 <geekosaur> [65470,65471,65472,65473,65474,65475,65476,65477,65478,65479,65480,65481]
21:42:48 × kayvank quits (~user@52-119-115-185.PUBLIC.monkeybrains.net) (Remote host closed the connection)
21:43:24 kayvank joins (~user@52-119-115-185.PUBLIC.monkeybrains.net)
21:52:07 × kayvank quits (~user@52-119-115-185.PUBLIC.monkeybrains.net) (Quit: ERC 5.4 (IRC client for GNU Emacs 28.1))
21:52:37 kayvank joins (~user@52-119-115-185.PUBLIC.monkeybrains.net)
21:53:12 × kayvank quits (~user@52-119-115-185.PUBLIC.monkeybrains.net) (Remote host closed the connection)
21:53:36 kayvank joins (~user@52-119-115-185.PUBLIC.monkeybrains.net)
22:22:56 × mc47 quits (~mc47@xmonad/TheMC47) (Remote host closed the connection)
22:38:30 <kayvank> is there a way to force xmobar to a specific monitor/display?
22:40:25 <geekosaur> -x displayNumber
22:44:15 <xmonadtrack> New xmonad-contrib branch created: pull/799 (1 commit) https://github.com/xmonad/xmonad-contrib/pull/799
23:01:53 patrl joins (~patrl@user/patrl)
23:04:31 × patrl quits (~patrl@user/patrl) (Client Quit)
23:42:55 × kayvank quits (~user@52-119-115-185.PUBLIC.monkeybrains.net) (Ping timeout: 248 seconds)

All times are in UTC on 2023-02-08.