Logs: liberachat/#xmonad
| 2022-08-04 09:32:36 | × | Guest8343 quits (~Guest83@1.39.30.16) (Ping timeout: 252 seconds) |
| 2022-08-04 09:35:31 | → | sogens[m]1 joins (~sogensmat@2001:470:69fc:105::1:20a1) |
| 2022-08-04 09:37:22 | <sogens[m]1> | hello all love xmonad even though im currently using boring gnome |
| 2022-08-04 09:37:41 | × | qbt quits (~qbt@user/edun) (Ping timeout: 252 seconds) |
| 2022-08-04 09:44:59 | × | sogens quits (~sogens@gateway/vpn/pia/sogens) (Quit: WeeChat 3.5) |
| 2022-08-04 09:45:10 | → | sogens joins (~sogens@gateway/vpn/pia/sogens) |
| 2022-08-04 09:45:24 | <diep> | Also, I have a terminal window with this WM_CLASS attribute <"Alacritty", "nnn"> and I fail to write a match using `className` |
| 2022-08-04 09:45:41 | × | sogens quits (~sogens@gateway/vpn/pia/sogens) (Client Quit) |
| 2022-08-04 09:45:47 | <diep> | WM_CLASS(STRING) = "Alacritty", "nnn" |
| 2022-08-04 09:45:52 | → | sogens joins (~sogens@gateway/vpn/pia/sogens) |
| 2022-08-04 09:46:40 | <diep> | How Im suppose to write the matcher? Like `className =? "Alacritty, nnn"` doesnt work |
| 2022-08-04 09:50:51 | <Solid> | diep: className matches on the second string of WM_CLASS |
| 2022-08-04 09:51:07 | <Solid> | appName matches on the first |
| 2022-08-04 09:51:57 | <diep> | hmm this is not clear in the doc, but thx! Now the question is, how can I write this in haskell xD |
| 2022-08-04 09:52:12 | <diep> | to combine both matchs? |
| 2022-08-04 09:57:01 | <Solid> | something like `appName =? "Alacritty" <&&> className =? "nnn" --> doSomethingIdon'tKnow` should work |
| 2022-08-04 09:57:17 | <Solid> | and contributions wrt improving docs always welcome :) |
| 2022-08-04 09:58:58 | <diep> | big thx! For doc contribution, I'll check for it ;) |
| 2022-08-04 10:03:03 | × | redgloboli quits (~redglobol@user/redgloboli) (Quit: ...enter the matrix...) |
| 2022-08-04 10:12:59 | × | sogens quits (~sogens@gateway/vpn/pia/sogens) (Remote host closed the connection) |
| 2022-08-04 10:15:34 | → | sogens joins (~sogens@211.30.173.20) |
| 2022-08-04 10:16:23 | → | sogens2 joins (~sogens@gateway/vpn/pia/sogens) |
| 2022-08-04 10:20:27 | × | sogens quits (~sogens@211.30.173.20) (Ping timeout: 245 seconds) |
| 2022-08-04 10:40:37 | → | qbt joins (~qbt@user/edun) |
| 2022-08-04 11:23:47 | × | sogens2 quits (~sogens@gateway/vpn/pia/sogens) (Ping timeout: 245 seconds) |
| 2022-08-04 11:25:47 | → | sogens2 joins (~sogens@211.30.173.20) |
| 2022-08-04 11:50:39 | → | Guest8343 joins (~Guest83@1.39.30.16) |
| 2022-08-04 11:51:08 | <Guest8343> | I'm trying to convert my old key map from `additionalKeys` to emacs style |
| 2022-08-04 11:51:31 | <Guest8343> | but I'm confused what I should do here: |
| 2022-08-04 11:51:44 | <Guest8343> | ```hs |
| 2022-08-04 11:51:44 | <Guest8343> | ((modm, xK_w), submap . M.fromList $ |
| 2022-08-04 11:51:45 | <Guest8343> | [ ((m, k), windows $ f i) |
| 2022-08-04 11:51:45 | <Guest8343> | | (i, k) <- zip (XMonad.workspaces conf) [xK_1 .. xK_9] |
| 2022-08-04 11:51:46 | <Guest8343> | , (f, m) <- [(W.greedyView, 0), (W.shift, shiftMask)] |
| 2022-08-04 11:51:46 | <Guest8343> | ]) |
| 2022-08-04 11:51:47 | <Guest8343> | ``` |
| 2022-08-04 11:52:19 | <Guest8343> | Anyone here? |
| 2022-08-04 11:55:45 | <sogens[m]1> | today I found out to quit emacs you just do the same thing you do in vim |
| 2022-08-04 11:55:54 | <sogens[m]1> | and to save too!!! |
| 2022-08-04 11:56:05 | <Guest8343> | huh? |
| 2022-08-04 11:56:50 | <sogens[m]1> | sorry I cant help you |
| 2022-08-04 11:56:58 | <Guest8343> | I was asking how do I convert the above submap I made for switching workspaces to emacs style |
| 2022-08-04 11:57:50 | × | logzet quits (~quassel@2001:9e8:e50d:7a00:dabb:c1ff:fed3:a1b9) (Ping timeout: 240 seconds) |
| 2022-08-04 11:58:28 | <Solid> | depends on how deeply you want to do this; if it's just for type-checking purposes then changing the first (modm, xK_w) to "M-w" should be enough |
| 2022-08-04 11:59:54 | <Guest8343> | so i still need to import submap right? |
| 2022-08-04 12:00:59 | <Solid> | yes |
| 2022-08-04 12:04:53 | <Solid> | something like http://ix.io/46E2 would only use EZConfig syntax (since that actually supports submaps ootb), but I don't think it's necessarily more readable in this case |
| 2022-08-04 12:06:28 | <Guest8343> | Solid actually I was creating my new config from scratch as the old one was a big mess |
| 2022-08-04 12:06:35 | <Guest8343> | so I have a problem here |
| 2022-08-04 12:07:41 | <Guest8343> | Solid https://pastebin.com/aXsiSkbQ |
| 2022-08-04 12:08:08 | <Guest8343> | This is the current state of my config. How should I go about adding my old workspace switching submap to my new config? |
| 2022-08-04 12:09:31 | <Guest8343> | hey guys? |
| 2022-08-04 12:13:24 | <Solid> | well, first of all you probably don't want `keys = myKeys` since that would override _all_ of the default bindings |
| 2022-08-04 12:14:24 | <Solid> | try something like http://ix.io/46E6 |
| 2022-08-04 12:14:53 | <Solid> | might need to import qualified Data.Map as M as well |
| 2022-08-04 12:16:11 | <geekosaur> | Solid, you got those reversed |
| 2022-08-04 12:17:42 | <geekosaur> | Guest8343, see https://github.com/geekosaur/xmonad.hs/blob/skkukuk/xmonad.hs#L231-L236 |
| 2022-08-04 12:17:51 | <geekosaur> | but use greedyView instead if view |
| 2022-08-04 12:17:54 | <geekosaur> | *of |
| 2022-08-04 12:18:43 | <Solid> | geekosaur: huh? |
| 2022-08-04 12:19:05 | <geekosaur> | I think "Alacritty" is the className? |
| 2022-08-04 12:21:03 | <geekosaur> | quite the active overnight |
| 2022-08-04 12:21:16 | <Solid> | I would also intuitively assume that but they posted `WM_CLASS(STRING) = "Alacritty", "nnn"` |
| 2022-08-04 12:21:19 | <alternateved> | sogens[m]1: I guess that depends if you use evil mode |
| 2022-08-04 12:21:26 | <Solid> | and className definitely gets the second string in WM_CLASS |
| 2022-08-04 12:21:52 | <Guest8343> | geekosaur currently facing this error: https://imgur.com/95kM3cD |
| 2022-08-04 12:22:32 | <alternateved> | Solid: how is your health? Is it better now? |
| 2022-08-04 12:22:50 | <geekosaur> | you probably shouldn't have called your list `workspaces`. since you did, you have to use `Main.workspaces` there |
| 2022-08-04 12:23:23 | <Solid> | alternateved: yeah all I have is a very light cough now, otherwise I'm all good; thanks for asking :) |
| 2022-08-04 12:23:38 | <alternateved> | Oh, that is great to hear |
| 2022-08-04 12:24:01 | <geekosaur> | Jade1, at the moment KDE and MATE are the best desktop environments to use xmonad with. but KDE needs a patch (https://github.com/xmonad/xmonad/issues/174) |
| 2022-08-04 12:24:02 | <alternateved> | s/hear/read |
| 2022-08-04 12:24:27 | <geekosaur> | I'm actively maintaining the MATE integration, since I use it myself |
| 2022-08-04 12:25:37 | <Guest8343> | geekosaur hey it is working now but just to make sure it's correct: https://pastebin.com/DkaF8Zba |
| 2022-08-04 12:26:07 | <Guest8343> | and i didn't understand it's context with https://github.com/geekosaur/xmonad.hs/blob/d60036ffd53c32d20452a5eef963c0f8503f20da/xmonad.hs#L231-L236 |
| 2022-08-04 12:27:04 | <geekosaur> | looks correct to me |
| 2022-08-04 12:27:19 | <geekosaur> | and I was showing how I do the list comprehension in emacs-keys mode |
| 2022-08-04 12:27:45 | <Guest8343> | Should I make changes similar to yours or is mine |
| 2022-08-04 12:27:54 | <geekosaur> | yours is fine |
| 2022-08-04 12:28:18 | <geekosaur> | mine has a few more workspaces, and I don't use a submap |
| 2022-08-04 12:28:30 | <Guest8343> | and also out of the context, I don't know haskell. I just read and edit code. So should I learn a little haskell right now? |
| 2022-08-04 12:28:59 | <geekosaur> | it can help, but most people set up their config once and never touch it again so it may not help much 🙂 |
| 2022-08-04 12:29:03 | <geekosaur> | @where books |
| 2022-08-04 12:29:03 | <lambdabot> | See `LYAH',`RWH',`YAHT',`SOE',`HR',`PIH',`TFwH',`wikibook',`PCPH',`HPFFP',`FSAF',`HftVB',`HTAC',`TwT',`FoP',`PFAD',`WYAH',`non-haskell-books'. Also <https://www.vex.net/~trebla/haskell/learn-sources. |
| 2022-08-04 12:29:03 | <lambdabot> | html>,<https://www.extrema.is/articles/haskell-books> |
| 2022-08-04 12:29:30 | <geekosaur> | hm, pity that url gets broken in the middle |
| 2022-08-04 12:29:48 | <Guest8343> | vex |
| 2022-08-04 12:29:50 | <Guest8343> | ya |
| 2022-08-04 12:29:59 | <Guest8343> | I'll pick one short book |
| 2022-08-04 12:30:10 | <Guest8343> | or maybe if there's a nice blog |
| 2022-08-04 12:30:35 | <Guest8343> | btw, do you think the way distrotube configures his xmonad is a little terrible? |
| 2022-08-04 12:31:13 | <evilop> | a little? |
| 2022-08-04 12:31:56 | <Guest8343> | umm... kinda.. cause I've followed his way of doing things quite a few times and my config started becoming a big mess so I've started doing things from scratch now |
| 2022-08-04 12:32:41 | <Guest8343> | It got really broken when I started using Deocration for "one sided border" after taking a look at leary's comment on github |
| 2022-08-04 12:32:56 | <Guest8343> | Is there a better way to do "one sided border"? |
| 2022-08-04 12:33:10 | <alternateved> | My opinion is that the best route is doing things from scratch - this gives you the least issues as you understand what you are doing |
| 2022-08-04 12:33:41 | <Guest8343> | one sided border as show here: https://github.com/xmonad/xmonad/issues/152#issuecomment-362716434 |
| 2022-08-04 12:33:54 | <alternateved> | If you use someone's config, you could get lost pretty quickly if you would want to change something |
| 2022-08-04 12:34:05 | <Guest8343> | alternateved agreed. same goes for my vim journey. |
| 2022-08-04 12:35:12 | <alternateved> | Also, I think it is much more valuable to get to know things by yourself without taking such shortcuts |
All times are in UTC.