Logs: liberachat/#xmonad
| 2022-08-04 16:32:18 | <Guest8311> | I'm trying to understand both the blocks so that I can clean this one: |
| 2022-08-04 16:32:20 | <Guest8311> | ("M-w", submap . M.fromList $ |
| 2022-08-04 16:32:20 | <Guest8311> | [ ((m, k), windows $ f i) |
| 2022-08-04 16:32:21 | <Guest8311> | | (i, k) <- zip myWorkspaces [xK_1 .. xK_9] |
| 2022-08-04 16:32:21 | <Guest8311> | , (f, m) <- [(W.greedyView, 0), (W.shift, shiftMask)] |
| 2022-08-04 16:32:22 | <Guest8311> | -- ((modm, xK_p), toggleWS), |
| 2022-08-04 16:32:22 | <Guest8311> | ]), |
| 2022-08-04 16:32:26 | <Guest8311> | but I just can't |
| 2022-08-04 16:33:04 | <Guest8311> | In the above block I want to remove the submap of moving windows to a workspace and add in that submap a binding "p" to move to the previous workspace |
| 2022-08-04 16:33:35 | <geekosaur> | you can't really do the previous workspace thing in there |
| 2022-08-04 16:34:31 | <Guest8311> | so if I create another block of the same submap just to switch to previous workspace then does that create a conflict? |
| 2022-08-04 16:35:23 | <geekosaur> | it'll overwrite the other one |
| 2022-08-04 16:35:32 | <Guest8311> | ugh |
| 2022-08-04 16:35:36 | <Guest8311> | so not possible? |
| 2022-08-04 16:35:37 | <geekosaur> | you need to let additionalKeysP do the submap creation for them to be coalesced |
| 2022-08-04 16:36:05 | <Guest8311> | Okay I'll add that |
| 2022-08-04 16:37:22 | <Guest8311> | but |
| 2022-08-04 16:37:30 | <Guest8311> | um I've already imported ezconfig |
| 2022-08-04 16:37:53 | × | sogens quits (~sogens@211.30.173.20) (Ping timeout: 252 seconds) |
| 2022-08-04 16:37:56 | <Guest8311> | do I need to explicitly import `additionalkeysP`? and does that mean I can't use emacs style? |
| 2022-08-04 16:40:27 | → | sogens joins (~sogens@211.30.173.20) |
| 2022-08-04 16:41:09 | <geekosaur> | https://paste.tomsmeding.com/XS0j6WyU |
| 2022-08-04 16:41:32 | <geekosaur> | you're already usingt additionalKeysP, you'll just be using it a bit more than you were |
| 2022-08-04 16:42:16 | <geekosaur> | the thing I pasted is what goes at the end of your current additionalKeysP list |
| 2022-08-04 16:43:37 | × | benin0 quits (~benin@183.82.25.146) (Ping timeout: 268 seconds) |
| 2022-08-04 16:44:26 | <geekosaur> | hm, slightly wrong, that's prev window not prev ws |
| 2022-08-04 16:44:46 | <geekosaur> | CycleRecentWS or CycleWS depending on how you define "previous" |
| 2022-08-04 16:45:17 | <Guest8311> | , ("M-w p", rotAllUp) -- import XMonad.Actions.RotSlaves |
| 2022-08-04 16:45:18 | <Guest8311> | ] |
| 2022-08-04 16:45:18 | <Guest8311> | ++ |
| 2022-08-04 16:45:19 | <Guest8311> | [ ("M-w " ++ k, windows $ W.greedyView i) |
| 2022-08-04 16:45:19 | <Guest8311> | | (i, k) <- zip myWorkspaces ["1" .. "9"] |
| 2022-08-04 16:45:20 | <Guest8311> | ] |
| 2022-08-04 16:45:26 | <Guest8311> | this block goes exactly where? |
| 2022-08-04 16:45:35 | <geekosaur> | please don't paste like that directly into the channel |
| 2022-08-04 16:45:40 | <geekosaur> | we have a pastebin |
| 2022-08-04 16:45:43 | <geekosaur> | @where paste |
| 2022-08-04 16:45:43 | <lambdabot> | Help us help you: please paste full code, input and/or output at e.g. https://paste.tomsmeding.com |
| 2022-08-04 16:45:53 | <Guest8311> | okay sorry |
| 2022-08-04 16:46:02 | <geekosaur> | \anyway I can't tell you exactly without seeing the rest of your config |
| 2022-08-04 16:46:57 | <Guest8311> | https://pastebin.com/hrfnRHBv |
| 2022-08-04 16:47:01 | × | sogens quits (~sogens@211.30.173.20) (Quit: WeeChat 3.5) |
| 2022-08-04 16:47:04 | <Guest8311> | my current config state |
| 2022-08-04 16:48:38 | <geekosaur> | anyway it';s slightly wrong, as I said, you don;'t want rotAllUp, you want either (moveTo Prev hiddenWS) (from XMonad.Actions.CycleWS) or toggleRecentWS (from XMonad.Actions.CycleRecentWS) |
| 2022-08-04 16:48:53 | <geekosaur> | sigh. did you have to use that pastebin when I pointed you at a saner one? |
| 2022-08-04 16:49:02 | <geekosaur> | I mean, did you even look at the result? |
| 2022-08-04 16:49:37 | <Guest8311> | oh I didn't take a look... I thought the actual pastebin thing... its a little too popular |
| 2022-08-04 16:50:04 | <Guest8311> | https://paste.tomsmeding.com/F7dbWmIi |
| 2022-08-04 16:52:27 | <geekosaur> | it's practically unreadable for haskell code, sorry |
| 2022-08-04 16:52:33 | <geekosaur> | I'm patching up what you sent |
| 2022-08-04 16:52:42 | <geekosaur> | you misunderstood what I meant somewhat |
| 2022-08-04 16:53:28 | <geekosaur> | https://paste.tomsmeding.com/9Q55yHIc |
| 2022-08-04 16:54:19 | <geekosaur> | you don't put it inside the list (except the toggleRecentWS part), you append it to the list |
| 2022-08-04 16:54:53 | <geekosaur> | I assumed toggleRecentWS because you turn out to already be doing the other one with M-<L> and M-<R> |
| 2022-08-04 16:57:49 | <Guest8311> | the part we appended to the list |
| 2022-08-04 16:57:55 | <Guest8311> | doesn't compile |
| 2022-08-04 16:59:35 | <Guest8311> | https://imgur.com/XvDULLI |
| 2022-08-04 16:59:42 | <Guest8311> | This is the error |
| 2022-08-04 16:59:58 | <Guest8311> | changing it to emacs style doesn't solve it |
| 2022-08-04 17:01:17 | <geekosaur[m]> | It wouldn't. Hold on a few minutes |
| 2022-08-04 17:01:55 | <Guest8311> | okay |
| 2022-08-04 17:11:54 | <geekosaur> | https://paste.tomsmeding.com/PveoOU9m |
| 2022-08-04 17:12:02 | → | sogens joins (~sogens@211.30.173.20) |
| 2022-08-04 17:12:04 | <geekosaur> | (it's not perl :/) |
| 2022-08-04 17:14:58 | <Guest8311> | do i really need both: |
| 2022-08-04 17:14:59 | <Guest8311> | import XMonad.Actions.CycleWS |
| 2022-08-04 17:14:59 | <Guest8311> | import XMonad.Actions.CycleRecentWS |
| 2022-08-04 17:15:12 | <geekosaur> | yes, they do different things |
| 2022-08-04 17:15:21 | <Guest8311> | okay |
| 2022-08-04 17:15:41 | <geekosaur> | you already have M-<L> and M-<R> to switch to the previous/next workspace by number |
| 2022-08-04 17:16:02 | <Guest8311> | no |
| 2022-08-04 17:16:17 | <Guest8311> | they just instantly switch to the next or previous workspace |
| 2022-08-04 17:16:32 | <geekosaur> | yes |
| 2022-08-04 17:16:50 | <geekosaur> | then what did you want M-w p to do? |
| 2022-08-04 17:17:01 | <Guest8311> | to switch to recent on |
| 2022-08-04 17:17:14 | <Guest8311> | suppose i switch from 1 to 6 |
| 2022-08-04 17:17:20 | <geekosaur> | right, that's what toggleRecentWS from CycleRecentWS does |
| 2022-08-04 17:17:25 | <Guest8311> | then to go back to 1 i just press m-w p |
| 2022-08-04 17:18:04 | <geekosaur> | by "by number" I meant that if you were on "5" M-<R> would go to "6" |
| 2022-08-04 17:18:19 | <Guest8311> | oh yea |
| 2022-08-04 17:18:30 | <Guest8311> | but that would be like switching one by one |
| 2022-08-04 17:18:40 | <Guest8311> | sometimes m-w p would be more convenient |
| 2022-08-04 17:18:49 | <Guest8311> | btw, have you ever seen this: https://github.com/xmonad/xmonad/issues/152#issuecomment-362716434 |
| 2022-08-04 17:18:56 | <geekosaur> | yes, that's why I assumes that was what you wanted and brought in toggleRecentWS |
| 2022-08-04 17:19:33 | <geekosaur> | I've seen every issue in the tracker, since I'm the primary maintainer 🙂 |
| 2022-08-04 17:19:53 | <Guest8311> | oh |
| 2022-08-04 17:19:58 | <Guest8311> | you're the maintainer |
| 2022-08-04 17:20:02 | <geekosaur> | sadly nobody has packaged that up as a contrib, it just gets copied around in people's xmonad.hs files |
| 2022-08-04 17:20:09 | <Guest8311> | how do you even get time for all this |
| 2022-08-04 17:20:33 | <Guest8311> | but is there a cleaner way to do it? |
| 2022-08-04 17:20:55 | <Guest8311> | a packaged contrib also would've been more convenient |
| 2022-08-04 17:22:19 | <sogens[m]1> | installing arch linux so i can steal distrotubes xmonad config |
| 2022-08-04 17:22:32 | <sogens[m]1> | because im not a pro programmer who can make sick layouts |
| 2022-08-04 17:23:29 | <geekosaur> | it looks pretty clean to me as it is, aside from the Eq glitch mentioned later on (which isn't readily fixable without breaking all other uses of Decoration) |
| 2022-08-04 17:23:52 | <Guest8311> | Eq glitch? |
| 2022-08-04 17:24:20 | <Guest8311> | do you mean where the windows start disappearing and there's decoration artifacts on the screen? |
| 2022-08-04 17:24:22 | <geekosaur> | https://github.com/xmonad/xmonad/issues/152#issuecomment-447585325 |
| 2022-08-04 17:25:35 | <Guest8311> | oh that |
| 2022-08-04 17:27:47 | <geekosaur> | decoration artifacts would probably be https://github.com/xmonad/xmonad-contrib/issues/343 and related issues, where layout cleanup messages don't get sent to inactive layouts |
| 2022-08-04 17:28:06 | <geekosaur> | we're still working on that one |
All times are in UTC.