Logs: liberachat/#xmonad
| 2021-10-15 11:29:26 | <geekosaur> | ok, so you ignored my adding const twice |
| 2021-10-15 11:29:35 | <geekosaur> | also, please use a pastebin for large pastes |
| 2021-10-15 11:29:39 | <geekosaur> | @where pastre |
| 2021-10-15 11:29:39 | <lambdabot> | I know nothing about pastre. |
| 2021-10-15 11:29:41 | <geekosaur> | bah |
| 2021-10-15 11:29:46 | <geekosaur> | @where paste |
| 2021-10-15 11:29:46 | <lambdabot> | Help us help you: please paste full code, input and/or output at e.g. https://paste.tomsmeding.com |
| 2021-10-15 11:29:46 | <Solid> | :D |
| 2021-10-15 11:30:00 | ← | niemand parts (~niemand@p2e52f8e7.dip0.t-ipconnect.de) () |
| 2021-10-15 11:30:21 | <geekosaur> | const (M.fromList []) |
| 2021-10-15 11:30:24 | <Guest60> | sorry, my english isn't so good, what means const? |
| 2021-10-15 11:30:29 | <geekosaur> | the "const" is not decoration |
| 2021-10-15 11:30:33 | <geekosaur> | it's a function |
| 2021-10-15 11:30:36 | <geekosaur> | :t const |
| 2021-10-15 11:30:37 | <lambdabot> | a -> b -> a |
| 2021-10-15 11:31:01 | <Guest60> | wow, it works! |
| 2021-10-15 11:31:04 | <Guest60> | thanks a lot |
| 2021-10-15 11:31:06 | <geekosaur> | here it's shorthand for consuming and ignoring an additional argment |
| 2021-10-15 11:33:55 | <geekosaur> | what problem are you having that you need to disable the default bindings? any you specify will override the ones provided by default, so normally they shouldn't be a problem |
| 2021-10-15 11:35:07 | <Guest60> | i want to make custom bindings |
| 2021-10-15 11:35:57 | <Guest60> | i think defaults are some illogical |
| 2021-10-15 11:36:10 | × | cfricke quits (~cfricke@user/cfricke) (Quit: WeeChat 3.3) |
| 2021-10-15 11:37:37 | <geekosaur> | the defaults are a bit eclectic, I think the core ones come from vi |
| 2021-10-15 11:37:44 | <geekosaur> | hjkl |
| 2021-10-15 11:39:18 | <geekosaur> | xmonad kinda started out as assuming the user was fairly proficient in unix and its idiosyncrasies, and we're gradually cleaning that up as its user base has changed |
| 2021-10-15 11:39:50 | <geekosaur> | (sorry if I'm making you refer to a dictionary :) |
| 2021-10-15 11:40:53 | <Guest60> | uuuf yes |
| 2021-10-15 11:41:21 | <Guest60> | i don't know what mean eclectic in my language |
| 2021-10-15 11:41:45 | <alternateved> | Btw. where in the source code could you find keybindings? |
| 2021-10-15 11:41:51 | <alternateved> | Where are they defined? |
| 2021-10-15 11:42:13 | <geekosaur> | https://github.com/xmonad/xmonad/blob/master/src/XMonad/Config.hs |
| 2021-10-15 11:42:40 | <alternateved> | Thanks. I should've checked repo not docs then. |
| 2021-10-15 11:43:12 | <alternateved> | Weirdly enough, I was also thinking about unbinding some of them, so thanks Guest60 for bringing that up. |
| 2021-10-15 11:43:13 | <Solid> | If you want docs then just press M-? |
| 2021-10-15 11:43:50 | <geekosaur> | alternateved, there's also `removeKeys` and `removeKeysP` |
| 2021-10-15 11:44:03 | <geekosaur> | in XMonad.Util.EZConfig |
| 2021-10-15 11:44:05 | <Solid> | yeah these are good for unbinding some of them |
| 2021-10-15 11:44:42 | <Guest60> | geekosaur you advice helped omg |
| 2021-10-15 11:44:56 | <alternateved> | Oh, yeah, that would be even better. I only need to unbind the default modm + h,l |
| 2021-10-15 11:47:45 | <liskin> | Solid: https://www.phoronix.com/scan.php?page=news_item&px=X.Org-Server-21.1-RC2 |
| 2021-10-15 11:48:20 | <liskin> | so timing is still good I guess |
| 2021-10-15 11:48:34 | <Solid> | awesome |
| 2021-10-15 11:48:39 | <liskin> | Solid: thanks for the ping re #605, I'll work on it this afternoon |
| 2021-10-15 11:48:52 | <Solid> | well let's get it out by... the end of mid October :) |
| 2021-10-15 11:49:01 | <liskin> | (plants have survived, so I'm not as sad as I expected :-)) |
| 2021-10-15 11:49:08 | <Solid> | \o/ |
| 2021-10-15 11:49:45 | × | Guest60 quits (~Guest60@83.234.98.90) (Quit: Client closed) |
| 2021-10-15 11:52:17 | → | Guest43 joins (~Guest43@83.234.98.90) |
| 2021-10-15 11:53:23 | <Solid> | btw, any opinions on this https://github.com/xmonad/xmonad-web/pull/40 are most welcome (especially regarding the logo thingy) |
| 2021-10-15 11:53:27 | × | Guest43 quits (~Guest43@83.234.98.90) (Client Quit) |
| 2021-10-15 11:54:06 | → | cfricke joins (~cfricke@user/cfricke) |
| 2021-10-15 11:55:31 | × | berberman quits (~berberman@user/berberman) (Quit: ZNC 1.8.2 - https://znc.in) |
| 2021-10-15 11:55:33 | <liskin> | it's still in my inbox, but I have no strong opinions on any of that, so I decided it'd be best if I focused elsewhere :-/ |
| 2021-10-15 11:55:51 | → | berberman joins (~berberman@user/berberman) |
| 2021-10-15 11:56:42 | <Solid> | that's fair |
| 2021-10-15 11:57:44 | → | Guest23 joins (~Guest23@83.234.98.90) |
| 2021-10-15 12:02:54 | → | redgloboli joins (~redglobol@user/redgloboli) |
| 2021-10-15 12:21:47 | × | sagax quits (~sagax_nb@user/sagax) (Quit: Konversation terminated!) |
| 2021-10-15 12:53:33 | <Guest23> | i need help |
| 2021-10-15 12:53:35 | <Guest23> | again |
| 2021-10-15 12:53:37 | <Guest23> | https://pastebin.com/8R4PeFWR |
| 2021-10-15 12:54:50 | <geekosaur> | looks like you're missing a "qualified" on the import of XMonad.StackSet? |
| 2021-10-15 12:57:34 | <Guest23> | how did you guess omg |
| 2021-10-15 12:58:09 | <geekosaur> | because of your collision, and that it showed the StackSet import as "W" so you had that part right |
| 2021-10-15 12:58:17 | <geekosaur> | so just missing the "qualified" |
| 2021-10-15 12:58:39 | <Guest23> | thanks |
| 2021-10-15 12:59:04 | <geekosaur> | it is not unusual for modules to have overlapping names in them, so for example StackSet and Data.Map are both designed to be imported qualified, since both have collisions with other functions |
| 2021-10-15 12:59:32 | <Guest23> | intresting |
| 2021-10-15 12:59:35 | <geekosaur> | (Data.Map has *lots* of collisions with the list functions in the Prelude) |
| 2021-10-15 13:00:25 | <geekosaur> | the first thing everyone thinks of with that one is using abstraction to make the same functions work with Maps and lists, sadly that turns out to not work well *and* be fairly slow) |
| 2021-10-15 13:13:17 | → | dschrempf joins (~dominik@070-207.dynamic.dsl.fonira.net) |
| 2021-10-15 13:26:04 | <Guest23> | how to make switching between workspaces? |
| 2021-10-15 13:27:51 | <geekosaur> | are you the same one who asked how to clear your bindings earlier? this might be part of why we don't do that normally :) |
| 2021-10-15 13:29:21 | <geekosaur> | https://github.com/xmonad/xmonad/blob/master/src/XMonad/Config.hs#L229-L233 is how it's defined by default, but it's phrased as a somewhat fancy list comprehension |
| 2021-10-15 13:29:32 | <Guest23> | yyaaa thats me |
| 2021-10-15 13:29:42 | <geekosaur> | W.view or W.greedyView are the functions you use |
| 2021-10-15 13:29:46 | <Guest23> | i tried to make it like in basic conf |
| 2021-10-15 13:29:50 | <Guest23> | but errors |
| 2021-10-15 13:30:25 | <geekosaur> | there's also a fancier version in https://github.com/xmonad/xmonad-contrib/blob/master/XMonad/Actions/CycleWS.hs |
| 2021-10-15 13:31:04 | <geekosaur> | (no, you don't need to run the git version to get that, it's unchanged) |
| 2021-10-15 13:34:51 | <Guest23> | https://pastebin.com/qrGUWnDC |
| 2021-10-15 13:35:07 | <Guest23> | i remove conf and i have another error |
| 2021-10-15 13:36:57 | <alternateved> | You could just create your own list of workspaces. |
| 2021-10-15 13:37:38 | <Guest23> | i made myWorkspaces = [1..9] |
| 2021-10-15 13:38:15 | <alternateved> | | (i, k) <- zip myWorkspaces [xK_1 .. xK_9] |
| 2021-10-15 13:38:30 | <geekosaur> | I think almost everything expects workspace tags to be String, not numbers |
| 2021-10-15 13:38:37 | <geekosaur> | so map show [1..9] |
| 2021-10-15 13:38:50 | <alternateved> | Ah, right |
| 2021-10-15 13:39:06 | <geekosaur> | the conf error is because the default config builds the configuration separately so it can reference it like thta later |
| 2021-10-15 13:39:07 | <alternateved> | myWorkspaces = map show [1..9] |
| 2021-10-15 13:39:44 | <geekosaur> | *like that |
| 2021-10-15 13:40:34 | <alternateved> | I think Guest23 that you would have much better time with EZConfig module |
| 2021-10-15 13:41:01 | <Guest23> | i use EZConfig |
| 2021-10-15 13:41:26 | → | seschwar joins (~seschwar@user/seschwar) |
| 2021-10-15 13:41:39 | <Guest23> | i just don't know how to switch workspaces with EXConfig |
| 2021-10-15 13:41:44 | <geekosaur> | alternatived, the list comprehension doesn't fit well with EZConfig |
| 2021-10-15 13:42:05 | <alternateved> | Doesn't it? |
| 2021-10-15 13:42:27 | <geekosaur> | you can do it but it's more painful imo |
| 2021-10-15 13:42:35 | <alternateved> | https://pastebin.com/nnAF2d6K |
| 2021-10-15 13:42:41 | <alternateved> | I use something like that |
All times are in UTC.