Logs: liberachat/#xmonad
| 2022-03-11 13:52:00 | <geekosaur> | main =xmonad def { terminal= "alacritty", … } |
| 2022-03-11 13:52:24 | <ArshiaAghaei[m]> | Alright ty |
| 2022-03-11 13:57:45 | <ArshiaAghaei[m]> | windows W.swapMaster works as the new keybinding method call? |
| 2022-03-11 14:06:15 | <geekosaur> | that's the original one for mod-enter. the one you want is https://github.com/xmonad/xmonad/blob/master/src/XMonad/Config.hs#L187 |
| 2022-03-11 14:06:28 | <geekosaur> | you may want to move swapMaster somewhere else |
| 2022-03-11 14:06:45 | <geekosaur> | (although tbh I've never used that binding except during testing) |
| 2022-03-11 14:09:02 | <geekosaur> | if you're wondering, terminal is a configuration option because various contribs also use it |
| 2022-03-11 14:09:16 | <geekosaur> | there's a spawnInTerminal somewhere, for example |
| 2022-03-11 14:10:08 | <ArshiaAghaei[m]> | geekosaur: Yeah but does that remove that specific binding? |
| 2022-03-11 14:10:19 | <geekosaur> | overrides it, yes |
| 2022-03-11 14:10:27 | <geekosaur> | you're replacing bindings |
| 2022-03-11 14:10:29 | <ArshiaAghaei[m]> | Alright good then |
| 2022-03-11 14:10:35 | <ArshiaAghaei[m]> | ty |
| 2022-03-11 14:12:27 | <ArshiaAghaei[m]> | XMonad just doesn't run now |
| 2022-03-11 14:12:33 | <ArshiaAghaei[m]> | Lemme show the xmonad.hs |
| 2022-03-11 14:13:00 | <geekosaur> | you might also run xmonad --recompile in a terminal and pastebin the output |
| 2022-03-11 14:13:11 | <geekosaur> | @where paste |
| 2022-03-11 14:13:11 | <lambdabot> | Help us help you: please paste full code, input and/or output at e.g. https://paste.tomsmeding.com |
| 2022-03-11 14:14:30 | ArshiaAghaei[m] | sent a hs code block: https://libera.ems.host/_matrix/media/r0/download/libera.chat/17a14a79ff9dfc1dae5a2515d3c258a71552ea7c |
| 2022-03-11 14:14:54 | <ArshiaAghaei[m]> | I did copy paste what was on that website |
| 2022-03-11 14:15:31 | <lyiriyah[m]> | Can you paste your xmonad.hs https://paste.tomsmeding.com |
| 2022-03-11 14:15:53 | <geekosaur> | (1) it was conf, not c (2) and right, that won't work with additionalKeysP because it isn't passed the configuration. |
| 2022-03-11 14:15:54 | <lyiriyah[m]> | * your xmonad.hs here: https://paste.tomsmeding.com |
| 2022-03-11 14:17:05 | <ArshiaAghaei[m]> | https://paste.tomsmeding.com/SdPqrjOC |
| 2022-03-11 14:17:27 | <geekosaur> | you may be better off just listing youtr terminal there rather than trying to retrieve it fromthe config; otherwise you need to refactor so your config record is a binding you can refer to |
| 2022-03-11 14:21:23 | <ArshiaAghaei[m]> | <geekosaur> "(1) it was conf, not c (2) and..." <- How do I fix that? |
| 2022-03-11 14:21:43 | → | dschrempf joins (~dominik@2a02:8389:100:e100:b354:d491:299f:8d) |
| 2022-03-11 14:22:52 | <geekosaur> | what I just said, just put your terminal there: `spawn "alacritty"` or whatever instead of `spawn $ terminal conf` |
| 2022-03-11 14:23:08 | <ArshiaAghaei[m]> | oh I gotcha |
| 2022-03-11 14:23:51 | <Solid> | `spawn $ terminal myConfig` should probably work (but for kind of evil reasons) |
| 2022-03-11 14:24:48 | <ArshiaAghaei[m]> | Seems to have compiled |
| 2022-03-11 14:24:48 | <ArshiaAghaei[m]> | ty |
| 2022-03-11 14:25:48 | <ArshiaAghaei[m]> | It just crashes again |
| 2022-03-11 14:26:06 | <ArshiaAghaei[m]> | [arshia@arshia-pc ~]$ xmonad --recompile |
| 2022-03-11 14:26:06 | <ArshiaAghaei[m]> | XMonad will use stack ghc --stack-yaml "/home/arshia/.config/xmonad/stack.yaml" to recompile. |
| 2022-03-11 14:26:06 | <ArshiaAghaei[m]> | XMonad recompiling (forced). |
| 2022-03-11 14:26:06 | <ArshiaAghaei[m]> | XMonad recompilation process exited with success! |
| 2022-03-11 14:26:14 | <ArshiaAghaei[m]> | Even tho this is the result |
| 2022-03-11 14:26:36 | <lyiriyah[m]> | That is just for compiling the config, not starting it. |
| 2022-03-11 14:26:48 | <lyiriyah[m]> | Just start xmonad as normal |
| 2022-03-11 14:27:12 | <ArshiaAghaei[m]> | [arshia@arshia-pc ~]$ xmonad... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/85948aff4fe059372fa11ecc45b19a33f1b7572a) |
| 2022-03-11 14:27:28 | <lyiriyah[m]> | ... |
| 2022-03-11 14:27:35 | <lyiriyah[m]> | Are you in a TTY? |
| 2022-03-11 14:27:44 | <ArshiaAghaei[m]> | What is a TTY? |
| 2022-03-11 14:27:45 | <Solid> | just press M-q :) |
| 2022-03-11 14:27:58 | <ArshiaAghaei[m]> | I'm on XFCE |
| 2022-03-11 14:28:03 | <ArshiaAghaei[m]> | I edited the file from there |
| 2022-03-11 14:28:14 | <geekosaur> | tty is short for terminal |
| 2022-03-11 14:28:27 | <ArshiaAghaei[m]> | Then tried to load xmonad from lightdm |
| 2022-03-11 14:28:30 | <geekosaur> | you can'trun xmonbad from a terminal; it needs to be started by the X session |
| 2022-03-11 14:28:48 | <lyiriyah[m]> | ^ |
| 2022-03-11 14:29:05 | <ArshiaAghaei[m]> | I compiled xmonad from source |
| 2022-03-11 14:29:14 | <ArshiaAghaei[m]> | Then added /applications/xmonad.desktop |
| 2022-03-11 14:29:24 | <ArshiaAghaei[m]> | And /xsession/xminad.desktop |
| 2022-03-11 14:29:29 | <geekosaur> | right, that tells an X session how to run xmonad |
| 2022-03-11 14:30:04 | <ArshiaAghaei[m]> | s/xminad/xmonad/ |
| 2022-03-11 14:30:06 | <lyiriyah[m]> | ArshiaAghaei[m]: LightDM reads from /usr/share/xsessions, not /usr/share/xsession |
| 2022-03-11 14:30:14 | <ArshiaAghaei[m]> | lyiriyah[m]: oop |
| 2022-03-11 14:30:22 | <geekosaur> | if you run xmonad from a terminal, either you get an error from openDisplay because no X server is running, or you get that "attempt to access resource denied" because a window manager is already running |
| 2022-03-11 14:30:32 | <geekosaur> | you can use `xmonad --restart` or just press mod-q |
| 2022-03-11 14:30:36 | <ArshiaAghaei[m]> | [arshia@arshia-pc ~]$ ls /usr/share/xsessions/ |
| 2022-03-11 14:30:36 | <ArshiaAghaei[m]> | xfce.desktop xmonad.desktop |
| 2022-03-11 14:30:53 | <ArshiaAghaei[m]> | geekosaur: I'm using XFCE atm |
| 2022-03-11 14:31:11 | <ArshiaAghaei[m]> | Mod-q won't work on XFCE |
| 2022-03-11 14:31:12 | <geekosaur> | also some display managers need to be restarted beforethey'llsee new sessions |
| 2022-03-11 14:31:29 | <geekosaur> | right, that won't restart you into xmonad anyway if you're in xfce |
| 2022-03-11 14:31:46 | <ArshiaAghaei[m]> | I logged out |
| 2022-03-11 14:31:48 | <geekosaur> | nor will the other one. you would have to log out and select the xmonad session |
| 2022-03-11 14:31:53 | <ArshiaAghaei[m]> | Chose xmonad |
| 2022-03-11 14:31:56 | <ArshiaAghaei[m]> | And it crashes |
| 2022-03-11 14:32:09 | <geekosaur> | unless you can configure xfce to transfer you over, but iirc it doesn't support thsat |
| 2022-03-11 14:32:13 | <ArshiaAghaei[m]> | geekosaur: I have already done it |
| 2022-03-11 14:32:21 | <geekosaur> | crashes how? |
| 2022-03-11 14:32:43 | <ArshiaAghaei[m]> | InspIIRC deameon failed to laod |
| 2022-03-11 14:32:47 | <ArshiaAghaei[m]> | And then back to lightdm |
| 2022-03-11 14:33:03 | <geekosaur> | and what's in the xmonad.desktop file? it doesn't support various shell-based shortcuts like ~ |
| 2022-03-11 14:33:27 | <ArshiaAghaei[m]> | [arshia@arshia-pc xsessions]$ cat xmonad.desktop... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/338e5c7aaafd6ef62594cf0030aa87559efff817) |
| 2022-03-11 14:34:00 | <lyiriyah[m]> | Try changing the Exec= line to read /home/arshia/.local/bin/xmonad |
| 2022-03-11 14:34:01 | <ArshiaAghaei[m]> | [arshia@arshia-pc applications]$ cat xmonad.desktop... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/22bde826fdc9eb436a258f8f08e9b5aaa6e185ad) |
| 2022-03-11 14:34:09 | <geekosaur> | ok, so where is xmonad installed? that will only look for /bin/xmonad and /usr/bin/xmonad |
| 2022-03-11 14:34:32 | <ArshiaAghaei[m]> | [arshia@arshia-pc ~]$ which xmonad |
| 2022-03-11 14:34:32 | <ArshiaAghaei[m]> | /home/arshia/.local/bin/xmonad |
| 2022-03-11 14:34:36 | <ArshiaAghaei[m]> | I suppose that's why |
| 2022-03-11 14:34:41 | <geekosaur> | right, so you must specify that path |
| 2022-03-11 14:34:58 | <ArshiaAghaei[m]> | So exec=pathtothat |
| 2022-03-11 14:35:12 | × | dschrempf quits (~dominik@2a02:8389:100:e100:b354:d491:299f:8d) (Quit: WeeChat 3.3) |
| 2022-03-11 14:35:12 | <lyiriyah[m]> | Yes |
| 2022-03-11 14:35:25 | <geekosaur> | when it's strarting your session it has not read any of your shellconfiguration etc., it expects the session to do that |
| 2022-03-11 14:35:58 | × | bfrk quits (~Thunderbi@2001:9e8:36d:4f00:9fd8:b7b4:631b:9e64) (Ping timeout: 260 seconds) |
| 2022-03-11 14:39:48 | <ArshiaAghaei[m]> | Well I finally managed to load it |
| 2022-03-11 14:43:49 | <ArshiaAghaei[m]> | But the default keys are not loading apparently |
| 2022-03-11 14:44:07 | <ArshiaAghaei[m]> | lemme check the imports on xmonad.hs |
| 2022-03-11 14:44:40 | <geekosaur> | default keys don't come from imports, they come from `def` and it would have failed to compile if that was missing |
| 2022-03-11 14:45:17 | <geekosaur> | what key are you trying to use? |
| 2022-03-11 14:51:29 | <ArshiaAghaei[m]> | M-p was not working for some reason |
| 2022-03-11 14:51:34 | <ArshiaAghaei[m]> | Had to add it myself |
| 2022-03-11 14:51:36 | <ArshiaAghaei[m]> | for dmeny |
| 2022-03-11 14:51:40 | <ArshiaAghaei[m]> | * for dmenu |
| 2022-03-11 14:51:59 | <ArshiaAghaei[m]> | Also my master width and color doesn't chage |
| 2022-03-11 14:52:04 | <ArshiaAghaei[m]> | focusedBorderColor = "#94e7e7" |
All times are in UTC.