Logs: liberachat/#xmonad
| 2022-08-04 12:35:53 | <alternateved> | But you know, there are different use-cases - some people just want to get something working and move on with their lives |
| 2022-08-04 12:44:13 | <alternateved> | Solid: you use X Emacs build and setDefaultCursor from X.U.Cursor, right? |
| 2022-08-04 12:44:53 | <Solid> | alternateved: yes |
| 2022-08-04 12:45:01 | <alternateved> | Did you ever had some situations where mouse pointer (cursor) gets colored pitch black? |
| 2022-08-04 12:45:17 | <alternateved> | Only in Emacs frame? |
| 2022-08-04 12:45:59 | <Solid> | mh, no, I've never had that happen |
| 2022-08-04 12:46:07 | <alternateved> | As lately I was trying the X build and this made mouse pointer unusable, when the Emacs theme is dark |
| 2022-08-04 12:46:22 | <alternateved> | Hmm |
| 2022-08-04 12:46:57 | <alternateved> | Haha, weirdly enough I have no such issues with pgtk build |
| 2022-08-04 12:47:35 | <Solid> | x) |
| 2022-08-04 12:47:37 | <alternateved> | At the same time, I cannot have floating scratchpad with pgtk build, while I could with X build |
| 2022-08-04 12:48:05 | <Solid> | i will note that I don't use GTK or something, I just build Emacs with lucid |
| 2022-08-04 12:48:06 | <alternateved> | I need to dig a bit what is causing the pointer color change only in Emacs |
| 2022-08-04 12:48:09 | <Solid> | so that may also have an effect |
| 2022-08-04 12:49:58 | <alternateved> | Oh, right |
| 2022-08-04 12:51:26 | <alternateved> | So `--with-x-toolkit=lucid` option, yes? |
| 2022-08-04 12:51:45 | <geekosaur> | mouse pointer will be up to the toolkit |
| 2022-08-04 12:51:49 | <alternateved> | I was using just simple `--with-x`, but I am not sure what exactly this does |
| 2022-08-04 12:52:14 | <Solid> | yeah `--with-x-toolkit=athena` (but i think lucid also works) |
| 2022-08-04 12:52:15 | <geekosaur> | it just enables things like frame support, using the Athena toolkit |
| 2022-08-04 12:52:21 | <alternateved> | Apart from the using X Window System |
| 2022-08-04 12:53:29 | <Guest8343> | I was rewriting my config from scratch and copied this line: |
| 2022-08-04 12:53:30 | <Guest8343> | `[ ((modMask .|. shiftMask, xK_Return), spawn $ XMonad.terminal conf)` |
| 2022-08-04 12:53:30 | <Guest8343> | but xmessage says "variable conf not in scope" |
| 2022-08-04 12:53:53 | <geekosaur> | correct, it won't be in scope using emacs-style |
| 2022-08-04 12:54:10 | <geekosaur> | it was originally extracted from the parameters to myKeys |
| 2022-08-04 12:55:07 | <geekosaur> | asks XMonad.terminal . config >>= spawn |
| 2022-08-04 12:55:11 | <Guest8343> | so should I just do: spawn "alacritty" instead of adding myTerminal=alacritty and then doing terminal=myTerminal? |
| 2022-08-04 12:55:57 | <evilop> | or just do terminal="alacritty" |
| 2022-08-04 12:56:12 | <Guest8343> | okay |
| 2022-08-04 12:56:22 | <geekosaur> | see the line with the >>= |
| 2022-08-04 12:56:40 | <geekosaur> | that's the equivalent for emacs-style, it extracts your terminal from the config and passes it to spawn |
| 2022-08-04 12:57:25 | <Guest8343> | so it extracts it from the line `myTerminal = "alacritty"`? |
| 2022-08-04 12:57:37 | <diep> | Hi again, I repost my previous question, Im using a namedscratchpad to spawn firefox, as floating, but the firefox spawns in a no floating window, here is the relevent config part https://paste.ofcode.org/yjDZgUpBSDpfCmd86kMuB3 Any idea about what can cause the problem? Please note that this scratchpad works correctly, the problem is just that the window is not floating |
| 2022-08-04 12:58:21 | <alternateved> | Is it really the title of the window? "stuff - Mozilla Firefox" |
| 2022-08-04 12:58:51 | <diep> | I replaced the real one by "stuff", this is not relevent |
| 2022-08-04 12:59:43 | <evilop> | firefox forking can make it a bit more complicated |
| 2022-08-04 13:00:00 | <diep> | When I press on the associated shortcut, it spawns/hides/shows/hides that window as expected, as far as I know |
| 2022-08-04 13:02:08 | <geekosaur> | the problem with browsers is nothing is set up whyen the window first spawns. chrome windows have a random string as the title (which is actually the component id of whatever manages new windows) until they're rendered. matching would work fine after that, but not when first spawned |
| 2022-08-04 13:02:48 | <geekosaur> | you need to use something like X.H.DynamicProperty to watch for the title being set afterward and float the window |
| 2022-08-04 13:04:14 | <geekosaur> | sadly, this also includes things that are mandatory-set at map time like class, name, role (that is, they ognore the "mandatory" and set them after mapping) |
| 2022-08-04 13:04:29 | <geekosaur> | which is all because it's all done by JS that doesn't run until after mapping |
| 2022-08-04 13:08:47 | → | jao joins (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) |
| 2022-08-04 13:09:24 | <diep> | humm looks too complicated for me, I think I'll give up on this xD |
| 2022-08-04 13:31:34 | × | Guest8343 quits (~Guest83@1.39.30.16) (Quit: Client closed) |
| 2022-08-04 13:34:49 | → | Guest833 joins (~Guest83@1.39.30.16) |
| 2022-08-04 13:35:25 | <Guest833> | geekosaur why does my current config expect me to use additionalKeys sytnax under the submap instead of string syntax? |
| 2022-08-04 13:36:24 | <geekosaur> | because that's how submap is defined. additionalKeysP syntax integrates submaps though |
| 2022-08-04 13:36:46 | <geekosaur> | https://github.com/geekosaur/xmonad.hs/blob/skkukuk/xmonad.hs#L199-L205 |
| 2022-08-04 13:38:17 | gdd1 | is now known as gdd |
| 2022-08-04 13:39:06 | <geekosaur> | so for example "M-C-cl" will automatically define M-C-c" as a submap and then define "l" as a key within it, and reuse that submap for the other ones starting with "M-C-c" |
| 2022-08-04 13:40:37 | <Guest833> | oh so i shouldn't be using M.fromlist but rather the emacs syntax all the way |
| 2022-08-04 13:40:57 | <geekosaur> | yep |
| 2022-08-04 13:41:13 | <geekosaur> | emacs syntax handles a bunch of things you'd otherwise have to do manually |
| 2022-08-04 13:41:26 | <geekosaur> | it's why we recommend it these days |
| 2022-08-04 13:42:35 | <Guest833> | ` ("M-s s", asks XMonad.terminal . config >>= spawn), |
| 2022-08-04 13:42:36 | <Guest833> | ` is this wrong |
| 2022-08-04 13:43:36 | <geekosaur> | oh, I may have missed some parens there. also that key sequence would be read as M-s space s |
| 2022-08-04 13:43:55 | <geekosaur> | asks (XMonad.terminal . config) >>= spawn |
| 2022-08-04 13:44:05 | <geekosaur> | (and no, you can't use $) |
| 2022-08-04 13:45:07 | <Guest833> | but |
| 2022-08-04 13:45:14 | <Guest833> | from the docs |
| 2022-08-04 13:45:22 | <Guest833> | , ("M-x y", spawn "xmessage 'yay!'") -- type mod+x then y to pop up 'yay!' |
| 2022-08-04 13:45:48 | <geekosaur> | *Main> :t asks (XMonad.terminal . config) >>= spawn |
| 2022-08-04 13:45:49 | <geekosaur> | asks (XMonad.terminal . config) >>= spawn |
| 2022-08-04 13:45:49 | <geekosaur> | :: (MonadReader XConf m, MonadIO m) => m () |
| 2022-08-04 13:46:18 | <geekosaur> | hm. maybe it does ignore spaces. I've always left them out |
| 2022-08-04 13:47:11 | <Guest833> | I didn't understand the above code you pasted |
| 2022-08-04 13:47:14 | <geekosaur> | right, explicit space is <Space>. carry on then |
| 2022-08-04 13:47:25 | <Guest833> | Where is that supposed to go and what does it do |
| 2022-08-04 13:47:40 | <geekosaur> | that was just showing that the code typechecks in ghci |
| 2022-08-04 13:48:01 | <geekosaur> | (cabal repl on my config) |
| 2022-08-04 13:48:33 | <geekosaur> | ":t" asks ghci the type of some expression |
| 2022-08-04 13:48:51 | <geekosaur> | it also works in lambdabot in here, but that doesn't and can't have xmonad loaded |
| 2022-08-04 13:49:38 | <Guest833> | I don't understand much |
| 2022-08-04 13:49:42 | <Guest833> | how should i be making this binding? |
| 2022-08-04 13:49:44 | <Guest833> | ("M-s s", launch my terminal), |
| 2022-08-04 13:50:24 | <geekosaur> | I would write it as: ("M-s s", asks (XMonad.terminal . config) >>= spawn) |
| 2022-08-04 13:51:02 | <geekosaur> | you don't really have to understand the "asks" part, suffice it that it's retrieving your config and looking up the "terminal" part |
| 2022-08-04 13:53:48 | × | alternateved quits (~user@staticline-31-183-149-36.toya.net.pl) (Remote host closed the connection) |
| 2022-08-04 13:54:11 | <Guest833> | geekosaur |
| 2022-08-04 13:54:12 | <Guest833> | main = xmonad $ def |
| 2022-08-04 13:54:12 | <Guest833> | { modMask = mod4Mask, |
| 2022-08-04 13:54:13 | <Guest833> | terminal = "alacritty" |
| 2022-08-04 13:54:13 | <Guest833> | } |
| 2022-08-04 13:54:15 | <Guest833> | correct? |
| 2022-08-04 13:54:23 | <geekosaur> | yes |
| 2022-08-04 13:54:24 | <Guest833> | btw, I'm very sorry to bother you so much |
| 2022-08-04 13:54:36 | <geekosaur> | that's fine, it's why I hang out in here |
| 2022-08-04 13:54:49 | <Guest833> | I need to configure my xmonad rn just enough to get it working and then I'll take time to learn some haskell |
| 2022-08-04 13:58:26 | × | evilop quits (~Urist@archlinux/op/MrElendig) (Quit: setting you up the bomb) |
| 2022-08-04 13:59:37 | → | MrElendig joins (~Urist@archlinux/op/MrElendig) |
| 2022-08-04 14:09:46 | → | Nahra joins (~user@static.161.95.99.88.clients.your-server.de) |
| 2022-08-04 14:10:28 | <quarkQuark[m]> | <geekosaur> "you don't really have to..." <- That's interesting. Currently I'm passing my config record to my keybindings definition as a parameter and calling `spawn (terminal config)` (to avoid annoying type signatures, I define the config with `where` in `main`. |
| 2022-08-04 14:10:28 | <quarkQuark[m]> | Would this `asks` function mean that I don't have to pass my config to my keybindings as a parameter, or am I misunderstanding? This would seem strange as otherwise my keybindings definition is pure. |
| 2022-08-04 14:10:58 | <quarkQuark[m]> | * That's interesting. Currently I'm passing my config record to my keybindings definition as a parameter and calling `spawn (terminal config)` (to avoid annoying type signatures, I define the config with `where` in `main`. |
| 2022-08-04 14:10:58 | <quarkQuark[m]> | Would this `asks` function mean that I don't have to pass my config to my keybindings as a parameter, or am I misunderstanding? This would seem strange as otherwise my keybindings definition is pure. |
| 2022-08-04 14:11:01 | <quarkQuark[m]> | * That's interesting. Currently I'm passing my config record to my keybindings definition as a parameter and calling `spawn (terminal config)` (to avoid annoying type signatures, I define the config with `where` in `main`. |
| 2022-08-04 14:11:01 | <quarkQuark[m]> | Would this `asks` function mean that I don't have to pass my config to my keybindings as a parameter, or am I misunderstanding? This would seem strange as otherwise my keybindings definition is pure. |
| 2022-08-04 14:11:12 | <quarkQuark[m]> | * That's interesting. Currently I'm passing my config record to my keybindings definition as a parameter and calling `spawn (terminal config)` (to avoid annoying type signatures, I define the config with `where` in `main`. |
All times are in UTC.