Logs on 2022-03-11 (liberachat/#xmonad)
| 00:03:09 | × | bfrk quits (~Thunderbi@i59F7ABAD.versanet.de) (Ping timeout: 252 seconds) |
| 00:05:07 | → | bfrk joins (~Thunderbi@2001:9e8:356:fe00:1928:a910:1b2f:d635) |
| 00:24:23 | → | _bfrk joins (~Thunderbi@2001:9e8:36d:4f00:9fd8:b7b4:631b:9e64) |
| 00:26:00 | × | bfrk quits (~Thunderbi@2001:9e8:356:fe00:1928:a910:1b2f:d635) (Ping timeout: 250 seconds) |
| 00:26:00 | _bfrk | is now known as bfrk |
| 00:46:48 | × | bla quits (~bla@79.191.74.122.ipv4.supernova.orange.pl) (Remote host closed the connection) |
| 01:26:53 | × | bfrk quits (~Thunderbi@2001:9e8:36d:4f00:9fd8:b7b4:631b:9e64) (Ping timeout: 256 seconds) |
| 01:37:00 | × | defjam quits (~eb0t@90.210.89.170) (Ping timeout: 240 seconds) |
| 01:39:04 | → | defjam joins (~eb0t@90.203.123.221) |
| 01:43:01 | → | benin joins (~benin@183.82.26.94) |
| 02:18:17 | × | mvk quits (~mvk@2607:fea8:5cc3:7e00::45ee) (Ping timeout: 240 seconds) |
| 02:32:51 | × | nomadxxxx3 quits (~lanomadx@208.91.64.217) (Ping timeout: 256 seconds) |
| 02:34:45 | → | nomadxx3 joins (~lanomadx@69.167.38.254) |
| 02:55:50 | → | ectospasm joins (~ectospasm@user/ectospasm) |
| 03:03:57 | × | banc quits (banc@gateway/vpn/airvpn/banc) (Ping timeout: 240 seconds) |
| 03:09:48 | × | td_ quits (~td@94.134.91.38) (Ping timeout: 240 seconds) |
| 03:11:48 | → | td_ joins (~td@94.134.91.18) |
| 03:29:19 | → | banc joins (banc@gateway/vpn/airvpn/banc) |
| 03:30:24 | × | zawaken quits (~zawaken@user/zawaken) (Ping timeout: 256 seconds) |
| 03:31:29 | → | zawaken joins (~zawaken@user/zawaken) |
| 03:55:31 | × | incertia quits (~incertia@207.98.163.88) (Ping timeout: 272 seconds) |
| 04:00:03 | × | haasn quits (~nand@haasn.dev) (Quit: ZNC 1.7.5+deb4 - https://znc.in) |
| 04:01:25 | → | haasn joins (~nand@haasn.dev) |
| 04:03:25 | → | incertia joins (~incertia@207.98.163.88) |
| 04:48:36 | × | jao quits (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) (Ping timeout: 256 seconds) |
| 07:12:42 | × | incertia quits (~incertia@207.98.163.88) (Ping timeout: 252 seconds) |
| 07:13:01 | → | incertia joins (~incertia@207.98.163.88) |
| 07:13:33 | → | bfrk joins (~Thunderbi@2001:9e8:36d:4f00:9fd8:b7b4:631b:9e64) |
| 07:14:44 | → | dschrempf joins (~dominik@2a02:8389:100:e100:d670:f073:3fe1:a27e) |
| 07:35:38 | × | twiclo1 quits (~twiclo@vpn.utahbroadband.com) (Quit: WeeChat 3.4) |
| 07:39:24 | → | Guest17 joins (~Guest17@185.183.97.187) |
| 07:41:24 | <Guest17> | hey Solid you online? wanted to ask something about mapping workspace keys to "asdf" letters using EZConfig, I have something like ("M-a", addName "workspace 1" $ (windows $ W.view "1")) |
| 07:54:59 | × | dschrempf quits (~dominik@2a02:8389:100:e100:d670:f073:3fe1:a27e) (Quit: WeeChat 3.3) |
| 07:55:23 | → | dschrempf joins (~dominik@2a02:8389:100:e100:d670:f073:3fe1:a27e) |
| 07:55:59 | <ArshiaAghaei[m]> | https://xmonad.org/TUTORIAL.html |
| 07:56:09 | <ArshiaAghaei[m]> | This looks very different to the xmonad.hs templates |
| 07:56:18 | <ArshiaAghaei[m]> | Which one is more up to date |
| 08:07:49 | <Solid> | ArshiaAghaei[m]: the tutorial is more up-to-date; you shouldn't really use the wiki anymore (and especially not the template!) |
| 08:07:58 | <Solid> | Guest17: ask away :) |
| 08:08:09 | <ArshiaAghaei[m]> | Solid: Thanks! |
| 08:11:56 | <Guest17> | Solid hi wanted to ask something about mapping workspace keys to "asdf" letters using EZConfig, I have something like ("M-a", addName "workspace 1" $ (windows $ W.view "1")) |
| 08:12:12 | <Guest17> | doesn't work though |
| 08:18:52 | <Solid> | what exactly does not work? |
| 08:20:32 | × | dschrempf quits (~dominik@2a02:8389:100:e100:d670:f073:3fe1:a27e) (Ping timeout: 240 seconds) |
| 08:21:44 | → | dschrempf joins (~dominik@2a02:8389:100:e100:1099:d420:1032:362c) |
| 08:31:07 | <Guest17> | pressing Mod-a doesn't switch to that workspace, does nothing. |
| 08:39:01 | <Solid> | Guest17: have you restarted xmonad? is your first workspace actually called "1"? |
| 08:41:14 | × | dschrempf quits (~dominik@2a02:8389:100:e100:1099:d420:1032:362c) (Ping timeout: 252 seconds) |
| 08:50:15 | → | mc47 joins (~mc47@xmonad/TheMC47) |
| 08:51:35 | <lyiriyah[m]> | <Guest17> "Solid hi wanted to ask something..." <- How are your workspaces defined? |
| 09:00:06 | × | unrooted quits (~unrooted@2001:470:69fc:105::a4a) (Quit: You have been kicked for being idle) |
| 09:00:17 | × | liskin[m] quits (~liskinmat@2001:470:69fc:105::768) (Quit: You have been kicked for being idle) |
| 09:05:41 | <Guest17> | Solid lyiriyah[m] oh, I though I was referring to workspace index instead of name, smh, thanks guys! |
| 09:05:56 | → | liskin[m] joins (~liskinmat@2001:470:69fc:105::768) |
| 09:07:07 | <Guest17> | ok now it works! |
| 09:08:29 | <Solid> | the workspace index _is_ the name of the workspace ;) |
| 09:08:50 | <Guest17> | thanks :) |
| 09:16:06 | <Guest17> | Solid what would be an elegant way to achieve something like DWM tags, currently I am using bringWindow functionality of XMonad when I need something by main window, I hate switching back and forth between workspaces, rather stay in one workspace and bring/send windows. Is there a way to send back the window I brought using bringWindow or I am |
| 09:16:07 | <Guest17> | thinking maybe CopyWindow function with prompt to select the window I want to bring and just delete it afterwards so it stays in it's original workspace? |
| 09:23:44 | <Solid> | that could work yeah |
| 09:23:59 | <Solid> | could probably reuse the prompt in X.P.Window for that and just switch out what to do after a match has been found |
| 09:25:19 | <Guest17> | thanks will take a look |
| 09:25:28 | <Guest17> | (y) |
| 09:31:01 | × | Guest17 quits (~Guest17@185.183.97.187) (Quit: Client closed) |
| 09:31:35 | × | jeeeun quits (~jeeeun@78.40.148.178) (Quit: The Lounge - https://thelounge.chat) |
| 09:32:10 | → | jeeeun joins (~jeeeun@78.40.148.178) |
| 10:39:07 | → | dschrempf joins (~dominik@2a02:8389:100:e100:bd3d:cf84:df7c:e927) |
| 11:24:52 | × | dschrempf quits (~dominik@2a02:8389:100:e100:bd3d:cf84:df7c:e927) (Ping timeout: 268 seconds) |
| 12:38:14 | <geekosaur> | there is https://hackage.haskell.org/package/xmonad-contrib-0.17.0/docs/XMonad-Actions-WindowBringer.html |
| 12:38:38 | <geekosaur> | oh, I see you found that |
| 13:48:20 | <ArshiaAghaei[m]> | How do I change the terminal shortcut to "M-Return" |
| 13:48:57 | <ArshiaAghaei[m]> | I can't seem to find the functions list |
| 13:49:10 | <ArshiaAghaei[m]> | also wanna change the default terminal |
| 13:49:28 | <geekosaur> | the default terminal is an entry in the config record |
| 13:49:32 | <Solid> | ArshiaAghaei[m]: it's in the EZConfig documentation: https://hackage.haskell.org/package/xmonad-contrib-0.17.0/docs/XMonad-Util-EZConfig.html#v:mkKeymap |
| 13:49:41 | <Solid> | tl;dr: "<Return>" |
| 13:50:41 | <ArshiaAghaei[m]> | How do I find mappings? |
| 13:50:47 | <ArshiaAghaei[m]> | Default ones |
| 13:50:57 | <ArshiaAghaei[m]> | Also change the default terminal to my own |
| 13:51:27 | <geekosaur> | https://github.com/xmonad/xmonad/blob/master/src/XMonad/Config.hs#L186-L239 this is the list of default bindings (using old style, not additionalKeysP) |
| 13:51:30 | <Solid> | You can press M-? to get an xmessage of the default bindings |
| 13:51:41 | <geekosaur> | terminal is just an entry in the record |
| 13:51:46 | <ArshiaAghaei[m]> | Solid: TY was looking for that |
| 13:52:00 | <geekosaur> | main =xmonad def { terminal= "alacritty", … } |
| 13:52:24 | <ArshiaAghaei[m]> | Alright ty |
| 13:57:45 | <ArshiaAghaei[m]> | windows W.swapMaster works as the new keybinding method call? |
| 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 |
| 14:06:28 | <geekosaur> | you may want to move swapMaster somewhere else |
| 14:06:45 | <geekosaur> | (although tbh I've never used that binding except during testing) |
| 14:09:02 | <geekosaur> | if you're wondering, terminal is a configuration option because various contribs also use it |
| 14:09:16 | <geekosaur> | there's a spawnInTerminal somewhere, for example |
| 14:10:08 | <ArshiaAghaei[m]> | geekosaur: Yeah but does that remove that specific binding? |
| 14:10:19 | <geekosaur> | overrides it, yes |
| 14:10:27 | <geekosaur> | you're replacing bindings |
| 14:10:29 | <ArshiaAghaei[m]> | Alright good then |
| 14:10:35 | <ArshiaAghaei[m]> | ty |
| 14:12:27 | <ArshiaAghaei[m]> | XMonad just doesn't run now |
| 14:12:33 | <ArshiaAghaei[m]> | Lemme show the xmonad.hs |
| 14:13:00 | <geekosaur> | you might also run xmonad --recompile in a terminal and pastebin the output |
| 14:13:11 | <geekosaur> | @where paste |
| 14:13:11 | <lambdabot> | Help us help you: please paste full code, input and/or output at e.g. https://paste.tomsmeding.com |
| 14:14:30 | ArshiaAghaei[m] | sent a hs code block: https://libera.ems.host/_matrix/media/r0/download/libera.chat/17a14a79ff9dfc1dae5a2515d3c258a71552ea7c |
| 14:14:54 | <ArshiaAghaei[m]> | I did copy paste what was on that website |
| 14:15:31 | <lyiriyah[m]> | Can you paste your xmonad.hs https://paste.tomsmeding.com |
| 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. |
| 14:15:54 | <lyiriyah[m]> | * your xmonad.hs here: https://paste.tomsmeding.com |
| 14:17:05 | <ArshiaAghaei[m]> | https://paste.tomsmeding.com/SdPqrjOC |
| 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 |
| 14:21:23 | <ArshiaAghaei[m]> | <geekosaur> "(1) it was conf, not c (2) and..." <- How do I fix that? |
| 14:21:43 | → | dschrempf joins (~dominik@2a02:8389:100:e100:b354:d491:299f:8d) |
| 14:22:52 | <geekosaur> | what I just said, just put your terminal there: `spawn "alacritty"` or whatever instead of `spawn $ terminal conf` |
| 14:23:08 | <ArshiaAghaei[m]> | oh I gotcha |
| 14:23:51 | <Solid> | `spawn $ terminal myConfig` should probably work (but for kind of evil reasons) |
| 14:24:48 | <ArshiaAghaei[m]> | Seems to have compiled |
| 14:24:48 | <ArshiaAghaei[m]> | ty |
| 14:25:48 | <ArshiaAghaei[m]> | It just crashes again |
| 14:26:06 | <ArshiaAghaei[m]> | [arshia@arshia-pc ~]$ xmonad --recompile |
| 14:26:06 | <ArshiaAghaei[m]> | XMonad will use stack ghc --stack-yaml "/home/arshia/.config/xmonad/stack.yaml" to recompile. |
| 14:26:06 | <ArshiaAghaei[m]> | XMonad recompiling (forced). |
| 14:26:06 | <ArshiaAghaei[m]> | XMonad recompilation process exited with success! |
| 14:26:14 | <ArshiaAghaei[m]> | Even tho this is the result |
| 14:26:36 | <lyiriyah[m]> | That is just for compiling the config, not starting it. |
| 14:26:48 | <lyiriyah[m]> | Just start xmonad as normal |
| 14:27:12 | <ArshiaAghaei[m]> | [arshia@arshia-pc ~]$ xmonad... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/85948aff4fe059372fa11ecc45b19a33f1b7572a) |
| 14:27:28 | <lyiriyah[m]> | ... |
| 14:27:35 | <lyiriyah[m]> | Are you in a TTY? |
| 14:27:44 | <ArshiaAghaei[m]> | What is a TTY? |
| 14:27:45 | <Solid> | just press M-q :) |
| 14:27:58 | <ArshiaAghaei[m]> | I'm on XFCE |
| 14:28:03 | <ArshiaAghaei[m]> | I edited the file from there |
| 14:28:14 | <geekosaur> | tty is short for terminal |
| 14:28:27 | <ArshiaAghaei[m]> | Then tried to load xmonad from lightdm |
| 14:28:30 | <geekosaur> | you can'trun xmonbad from a terminal; it needs to be started by the X session |
| 14:28:48 | <lyiriyah[m]> | ^ |
| 14:29:05 | <ArshiaAghaei[m]> | I compiled xmonad from source |
| 14:29:14 | <ArshiaAghaei[m]> | Then added /applications/xmonad.desktop |
| 14:29:24 | <ArshiaAghaei[m]> | And /xsession/xminad.desktop |
| 14:29:29 | <geekosaur> | right, that tells an X session how to run xmonad |
| 14:30:04 | <ArshiaAghaei[m]> | s/xminad/xmonad/ |
| 14:30:06 | <lyiriyah[m]> | ArshiaAghaei[m]: LightDM reads from /usr/share/xsessions, not /usr/share/xsession |
| 14:30:14 | <ArshiaAghaei[m]> | lyiriyah[m]: oop |
| 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 |
| 14:30:32 | <geekosaur> | you can use `xmonad --restart` or just press mod-q |
| 14:30:36 | <ArshiaAghaei[m]> | [arshia@arshia-pc ~]$ ls /usr/share/xsessions/ |
| 14:30:36 | <ArshiaAghaei[m]> | xfce.desktop xmonad.desktop |
| 14:30:53 | <ArshiaAghaei[m]> | geekosaur: I'm using XFCE atm |
| 14:31:11 | <ArshiaAghaei[m]> | Mod-q won't work on XFCE |
| 14:31:12 | <geekosaur> | also some display managers need to be restarted beforethey'llsee new sessions |
| 14:31:29 | <geekosaur> | right, that won't restart you into xmonad anyway if you're in xfce |
| 14:31:46 | <ArshiaAghaei[m]> | I logged out |
| 14:31:48 | <geekosaur> | nor will the other one. you would have to log out and select the xmonad session |
| 14:31:53 | <ArshiaAghaei[m]> | Chose xmonad |
| 14:31:56 | <ArshiaAghaei[m]> | And it crashes |
| 14:32:09 | <geekosaur> | unless you can configure xfce to transfer you over, but iirc it doesn't support thsat |
| 14:32:13 | <ArshiaAghaei[m]> | geekosaur: I have already done it |
| 14:32:21 | <geekosaur> | crashes how? |
| 14:32:43 | <ArshiaAghaei[m]> | InspIIRC deameon failed to laod |
| 14:32:47 | <ArshiaAghaei[m]> | And then back to lightdm |
| 14:33:03 | <geekosaur> | and what's in the xmonad.desktop file? it doesn't support various shell-based shortcuts like ~ |
| 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) |
| 14:34:00 | <lyiriyah[m]> | Try changing the Exec= line to read /home/arshia/.local/bin/xmonad |
| 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) |
| 14:34:09 | <geekosaur> | ok, so where is xmonad installed? that will only look for /bin/xmonad and /usr/bin/xmonad |
| 14:34:32 | <ArshiaAghaei[m]> | [arshia@arshia-pc ~]$ which xmonad |
| 14:34:32 | <ArshiaAghaei[m]> | /home/arshia/.local/bin/xmonad |
| 14:34:36 | <ArshiaAghaei[m]> | I suppose that's why |
| 14:34:41 | <geekosaur> | right, so you must specify that path |
| 14:34:58 | <ArshiaAghaei[m]> | So exec=pathtothat |
| 14:35:12 | × | dschrempf quits (~dominik@2a02:8389:100:e100:b354:d491:299f:8d) (Quit: WeeChat 3.3) |
| 14:35:12 | <lyiriyah[m]> | Yes |
| 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 |
| 14:35:58 | × | bfrk quits (~Thunderbi@2001:9e8:36d:4f00:9fd8:b7b4:631b:9e64) (Ping timeout: 260 seconds) |
| 14:39:48 | <ArshiaAghaei[m]> | Well I finally managed to load it |
| 14:43:49 | <ArshiaAghaei[m]> | But the default keys are not loading apparently |
| 14:44:07 | <ArshiaAghaei[m]> | lemme check the imports on xmonad.hs |
| 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 |
| 14:45:17 | <geekosaur> | what key are you trying to use? |
| 14:51:29 | <ArshiaAghaei[m]> | M-p was not working for some reason |
| 14:51:34 | <ArshiaAghaei[m]> | Had to add it myself |
| 14:51:36 | <ArshiaAghaei[m]> | for dmeny |
| 14:51:40 | <ArshiaAghaei[m]> | * for dmenu |
| 14:51:59 | <ArshiaAghaei[m]> | Also my master width and color doesn't chage |
| 14:52:04 | <ArshiaAghaei[m]> | focusedBorderColor = "#94e7e7" |
| 14:52:04 | <ArshiaAghaei[m]> | , borderWidth = 3 |
| 14:52:13 | <ArshiaAghaei[m]> | in myConfig I added these |
| 14:56:54 | → | jao joins (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) |
| 14:57:48 | <ArshiaAghaei[m]> | M-Q does not return error |
| 15:08:25 | <geekosaur> | can you pastebin your current xmonad.hs ? |
| 15:35:02 | → | bfrk joins (~Thunderbi@i59F7ABAD.versanet.de) |
| 15:37:52 | → | seschwar joins (~seschwar@user/seschwar) |
| 15:58:39 | × | bfrk quits (~Thunderbi@i59F7ABAD.versanet.de) (Ping timeout: 256 seconds) |
| 16:00:09 | × | liskin[m] quits (~liskinmat@2001:470:69fc:105::768) (Quit: You have been kicked for being idle) |
| 16:40:38 | → | twiclo joins (~twiclo@204.14.20.66.static.utbb.net) |
| 16:48:08 | <liskin> | Solid, mc47, geekosaur: I played with the new github projects a bit today: https://github.com/orgs/xmonad/projects/4 |
| 16:48:20 | → | liskin[m] joins (~liskinmat@2001:470:69fc:105::768) |
| 16:48:42 | <liskin> | feature-wise, it's really crap as it's missing a few features that the old projects had, but it looks nice |
| 16:49:09 | <mc47> | it does look nice, except for the labels tabs. that's ugly |
| 16:49:30 | <liskin> | milestone-grouping in the roadmap table and the ability to have multiple boards under one project is good |
| 16:49:47 | <mc47> | Agreed |
| 16:50:21 | <liskin> | mc47: I thought that perhaps if we reduced the number of labels we have and just had a few labels that actually provide some useful value, then it might not be too bad |
| 16:50:21 | <mc47> | (btw, I read the emails, I'll probably write my thoughts in the weekend, since I need to apply for some internships) |
| 16:50:38 | <mc47> | I think the UI could be better |
| 16:50:47 | <liskin> | hm, not sure what you mean then |
| 16:51:29 | <mc47> | I can't see all labels without resizing the column :D and yes, the labels have a low information density, but not sure how we can improve that |
| 16:52:20 | <liskin> | I'd start by deleting all labels and then add labels when we actually (think we) need them :-) |
| 17:04:32 | → | bfrk joins (~Thunderbi@2001:9e8:36d:4f00:9fd8:b7b4:631b:9e64) |
| 17:07:59 | <ArshiaAghaei[m]> | <geekosaur> "can you pastebin your current..." <- Sure |
| 17:10:34 | <ArshiaAghaei[m]> | https://pastebin.com/c22cubF8 |
| 17:11:31 | <ArshiaAghaei[m]> | <Print> doesn't work either |
| 17:11:47 | <ArshiaAghaei[m]> | Neither does M-n or M-N or M-T or M-t even |
| 17:12:56 | <geekosaur> | M-N and M-T won'twork because you don't have an unshifted key bound to the uppercase letters |
| 17:13:09 | <geekosaur> | if you want them shifted you have to say something like M-S-t |
| 17:13:35 | <geekosaur> | xmonad works with keys at a very low level (actually it does keycodes rather than key symbols) |
| 17:16:57 | <ArshiaAghaei[m]> | geekosaur: What about M-n and M-t |
| 17:17:01 | <ArshiaAghaei[m]> | They don't work either |
| 17:17:13 | <ArshiaAghaei[m]> | Or <Print> |
| 17:17:23 | <ArshiaAghaei[m]> | Being the print screen |
| 17:19:48 | <geekosaur> | the default bindings for M-n and M-t won't do anything normally. (M-n should really never do anything; arguably if you encounter a time when you need it, it's a bug.) |
| 17:20:08 | <geekosaur> | M-t tiles a floating window, so if you aren't focused on a floating window, it's a no-op |
| 17:21:55 | <geekosaur> | the <Print> binding probably needs unGrab, like the scrot binding |
| 17:22:34 | × | bfrk quits (~Thunderbi@2001:9e8:36d:4f00:9fd8:b7b4:631b:9e64) (Ping timeout: 260 seconds) |
| 17:30:16 | <ArshiaAghaei[m]> | And M-M |
| 17:30:17 | <ArshiaAghaei[m]> | <geekosaur> "the default bindings for M-n and..." <- M-v is occupied to? |
| 17:30:18 | <ArshiaAghaei[m]> | * And M-m |
| 17:31:27 | <geekosaur> | no binding for M-v. M-m focuses the master window |
| 17:31:33 | <ArshiaAghaei[m]> | I'm looking for keybindings for neovim and thunar |
| 17:31:58 | <geekosaur> | you can use the ones you had, you just have to specify them differently. |
| 17:32:16 | <geekosaur> | M-S-n and M-S-t instead of M-N and M-T |
| 17:32:18 | <ArshiaAghaei[m]> | How do I specify them differently? |
| 17:32:25 | <ArshiaAghaei[m]> | Oh OK |
| 17:34:41 | <ArshiaAghaei[m]> | , ("M-S-n", spawn "nvim") |
| 17:34:41 | <ArshiaAghaei[m]> | , ("M-S-t", spawn "thunar") |
| 17:34:41 | <ArshiaAghaei[m]> | |
| 17:34:43 | <ArshiaAghaei[m]> | Still the same |
| 17:35:13 | <ArshiaAghaei[m]> | [ ("<Print>", unGrab *> spawn "xfce4-screenshooter") |
| 17:35:27 | <ArshiaAghaei[m]> | * ```hs |
| 17:35:27 | <ArshiaAghaei[m]> | [ ("<Print>", unGrab *> spawn "xfce4-screenshooter") |
| 17:35:27 | <ArshiaAghaei[m]> | ``` |
| 17:35:33 | <ArshiaAghaei[m]> | It won't work too |
| 17:36:20 | → | Viejito joins (~Viejito@pool-108-46-30-53.nycmny.fios.verizon.net) |
| 17:36:53 | <geekosaur> | did you restart with mod-q ? |
| 17:37:04 | <ArshiaAghaei[m]> | Yeah |
| 17:37:22 | <ArshiaAghaei[m]> | Doesn't work |
| 17:40:22 | <geekosaur> | wonder if it works standalone like that |
| 17:41:32 | <geekosaur> | mm, on my system it wants the panel too |
| 17:42:12 | <Viejito> | Is it possible to conditionally pass through a key press? |
| 17:44:04 | <geekosaur> | not really |
| 17:44:32 | <geekosaur> | you can conditionally "fake" a keypress to try to pass it on, but many programs ignore synthetic events |
| 17:44:41 | <Viejito> | right, I was thinking that |
| 17:45:11 | <Viejito> | There is XMonad.Util.Paste.send_key but that sends a synthetic event |
| 17:46:12 | <Viejito> | I guess I'll try it, it might work. |
| 17:46:44 | <geekosaur> | you have to use the XTest extension to send a realone. it's disabled in the server by default for security reasons |
| 17:51:21 | <Viejito> | I want to use the same key to open a terminal and do something slightly smarter if I'm in emacs. But I think I can just invoke emacsclient from xmonad |
| 17:52:21 | → | Articus joins (~Articus@207.248.198.65) |
| 17:52:43 | <geekosaur> | xdotool manpage has a discussion of the issues with sending keypresses |
| 17:53:20 | <Viejito> | btw doing that requires to know on which server I'm running emacs. I see there is XMonad.Util.WindowProperties but it only allows matching of properties, it doesn't provide a way to read them |
| 17:55:57 | <geekosaur> | https://hackage.haskell.org/package/xmonad-0.17.0/docs/XMonad-ManageHook.html#v:getStringProperty |
| 17:56:14 | <Viejito> | right, I just found it. |
| 17:56:16 | <Viejito> | thanks |
| 17:57:18 | <geekosaur> | ArshiaAghaei[m], not sure what's going on there but I just tested binding <Print> to spawn xfce4-screenshooter and it worked (with the unGrab) |
| 17:57:26 | <ArshiaAghaei[m]> | Aight so virt manager wants a polkit |
| 17:57:39 | <ArshiaAghaei[m]> | And Idk how to set it on xmonad |
| 18:01:52 | × | Articus quits (~Articus@207.248.198.65) (Quit: Client closed) |
| 18:05:36 | <ArshiaAghaei[m]> | <geekosaur> "Arshia Aghaei, not sure what's..." <- Can I see your xmonad.hs? Maybe you're starting soemthing that I'm not |
| 18:10:31 | <geekosaur> | I'm starting a lot of things you aren't; I use cxmonad as window manager for MATE |
| 18:11:38 | <ArshiaAghaei[m]> | fair enough |
| 18:11:40 | <geekosaur> | you may need to use xmonad as xfce4's window manager for the right services to be started. https://wiki.haskell.org/Xmonad/Using_xmonad_in_XFCE (which may be out of date) |
| 18:12:25 | <ArshiaAghaei[m]> | I'll take a look but I hope I won't need to tbh |
| 18:12:32 | <ArshiaAghaei[m]> | I'd rather use xmonad sperately from xfce |
| 18:13:28 | → | Articus joins (~Articus@207.248.198.65) |
| 18:15:33 | <ArshiaAghaei[m]> | https://github.com/Axarva/dotfiles-2.0 |
| 18:15:41 | <ArshiaAghaei[m]> | Is this a good place? |
| 18:18:20 | <geekosaur> | \I have no clue :) |
| 18:18:20 | <geekosaur> | you can search for `xmonad.hs` on github and probably find a few dozen, including mine (but as I said, I run under MATE) |
| 18:18:20 | × | geekosaur quits (~geekosaur@xmonad/geekosaur) (Remote host closed the connection) |
| 18:20:10 | → | geekosaur joins (~geekosaur@xmonad/geekosaur) |
| 18:39:02 | <ArshiaAghaei[m]> | <geekosaur> "you can search for `xmonad.hs..." <- A lot of them use the old format tho |
| 18:39:05 | <ArshiaAghaei[m]> | That's the thing |
| 18:47:57 | × | Viejito quits (~Viejito@pool-108-46-30-53.nycmny.fios.verizon.net) (Quit: Client closed) |
| 18:48:08 | <Articus> | Hi, I installed XMonad through stack, after that I can't receive error messages in xmessage. I tried sending a message myself in xmessage and it shows nothing. I tried uninstalling XMonad by deleting the binary and two folders in ~/.stack. I suppose those folders where xmonad and xmonad-contrib because those are the only things I installed with |
| 18:48:08 | <Articus> | stack, xmessage continues behaving the same way |
| 18:48:34 | <Articus> | Hi geekosaur :) |
| 18:49:21 | <geekosaur> | removing stuff under ~/.stack is a good way to break stack |
| 18:49:33 | → | Viejito joins (~Viejito@pool-108-46-30-53.nycmny.fios.verizon.net) |
| 18:49:38 | <Articus> | Could use some help to be able to print messages again in xmessage |
| 18:49:47 | <Articus> | ooops |
| 18:50:00 | <geekosaur> | if xmessage isn't displaying anything it may mean you're missing some bitmapped fonts |
| 18:50:19 | <geekosaur> | what distro? |
| 18:50:24 | <Articus> | Manjaro |
| 18:51:02 | × | Viejito quits (~Viejito@pool-108-46-30-53.nycmny.fios.verizon.net) (Client Quit) |
| 18:52:49 | <Articus> | I had issues in xmessage in Manjaro at first, it was showing other language letters and I added Xmessage*font: -*-*-*-*-*-*-*-*-*-*-*-*-*-* to .xinitrc, it worked. But now it stopped showing messages |
| 19:00:00 | <geekosaur> | blah. not finding what they call the stock X11 fonts package |
| 19:00:53 | <geekosaur> | if you don't mind perl, my wrapper that runs zenity might be of interest: https://github.com/geekosaur/xmonad.hs/blob/skkukuk/xmessage |
| 19:03:25 | <Articus> | your xmonad.hs calls your xmessage? |
| 19:03:30 | <geekosaur> | that XLFD spec is problematic btw; on most systems I've tried it on, it gets me a CJK font |
| 19:04:47 | <Articus> | I belive I'll reinstall Manjaro, but I would like to take a peek at your config after that |
| 19:05:07 | <geekosaur> | https://github.com/geekosaur/xmonad.hs/tree/skkukuk |
| 19:08:48 | <Articus> | On manjaro by default xmessage send letters in a different alphabet, I remember once I installed a font package from the AUR and it got fixed, but I dond't remember or saved which package was, I found that XFLD on reddit from someone having the same issue. Works on this distro |
| 19:08:53 | <ArshiaAghaei[m]> | geekosaur, any clue how to set up a polkit for virt-manager? |
| 19:08:56 | <ArshiaAghaei[m]> | Using xmonad |
| 19:09:09 | <geekosaur> | none, sorry |
| 19:09:57 | <ArshiaAghaei[m]> | geekosaur Also, I had to re-login |
| 19:10:03 | <ArshiaAghaei[m]> | Now the keys work |
| 19:10:08 | <ArshiaAghaei[m]> | for some reason |
| 19:10:32 | <geekosaur> | possibly pkexec will help you |
| 19:10:37 | × | theproffesor quits (~theproffe@2601:282:847f:8010::7f59) (Ping timeout: 240 seconds) |
| 19:11:03 | → | theproffesor joins (~theproffe@c-24-9-30-127.hsd1.co.comcast.net) |
| 19:11:09 | <geekosaur> | but that just invokes policykit's authenticator around a program, and assumes polkit knows how to authenticate virt-manager |
| 19:11:44 | <geekosaur> | and probably requires dbus to be running |
| 19:12:51 | <geekosaur> | which means you end up changing that exec= line we discussed earlier to something like: dbus-launch /home/arshia/.local/bin/xmonad |
| 19:13:01 | <geekosaur> | and logging out and back in |
| 19:13:52 | × | Articus quits (~Articus@207.248.198.65) (Quit: Client closed) |
| 19:59:08 | <ArshiaAghaei[m]> | I just did sudo virt-manager |
| 19:59:11 | <ArshiaAghaei[m]> | And it worked |
| 20:00:17 | <geekosaur> | setting up dbus and using pkexec is probably better than running random stuff as root |
| 20:03:29 | <ArshiaAghaei[m]> | geekosaur: virt-manager isn't random tho |
| 20:03:31 | <ArshiaAghaei[m]> | It's an app |
| 20:03:39 | <MrElendig> | you can also use a user qemu session instead of the system one for most use cases |
| 20:03:42 | <ArshiaAghaei[m]> | vm manager |
| 20:04:09 | <MrElendig> | slightly more inconvenient if you use bridge networking, but only slightly |
| 20:05:05 | <geekosaur> | I know what virt-manager is. I still prefer restricting elevated permissions to when they're really needed, and polkit has better granularity than sudo in that regard |
| 20:06:03 | <geekosaur> | (ex-sysadmin; I'm paranoid about root perms in particular) |
| 20:09:53 | × | twiclo quits (~twiclo@204.14.20.66.static.utbb.net) (Read error: Connection reset by peer) |
| 20:17:07 | → | bfrk joins (~Thunderbi@i59F7ABAD.versanet.de) |
| 20:39:07 | × | benin quits (~benin@183.82.26.94) (Quit: The Lounge - https://thelounge.chat) |
| 20:45:04 | <liskin> | With a working polkit, there's no need to pkexec vítr-manager. The polkit agent will ask for password when connecting to the system qemu session. |
| 20:45:39 | <liskin> | And then, the user session works brilliantly, too, once networking is taken care of. |
| 20:46:29 | <liskin> | I think all I needed to do was to run the gnome polkit agent in the background. Obviously dbus and stuff is taken care of by the distro |
| 20:53:29 | <ArshiaAghaei[m]> | yeah I have to exec the polkit manually |
| 20:53:42 | <ArshiaAghaei[m]> | How do I manage brightness? |
| 20:53:55 | <ArshiaAghaei[m]> | M-right and left arrow won't work |
| 20:56:14 | <geekosaur> | https://hackage.haskell.org/package/xmonad-extras-0.17.0/docs/XMonad-Util-Brightness.html |
| 21:05:30 | <ArshiaAghaei[m]> | I can't seem to find the special character for function key |
| 21:06:40 | <liskin> | On some laptops those keys emit acpi events rather than keycodes |
| 21:07:12 | <ArshiaAghaei[m]> | Older or newer ones? |
| 21:07:59 | <liskin> | Older ones handled it in firmware |
| 21:08:12 | <liskin> | Newer ones either emit keys or events |
| 21:08:34 | <liskin> | My 5 yo thinkpad emits acpi events |
| 21:23:13 | ArshiaAghaei[m] | sent a code block: https://libera.ems.host/_matrix/media/r0/download/libera.chat/1859a46e4948b4315ea117bdb25575a5bf072271 |
| 21:23:15 | <ArshiaAghaei[m]> | bruh |
| 21:23:31 | <ArshiaAghaei[m]> | This is EXACT same property in the guide |
| 21:23:39 | <ArshiaAghaei[m]> | And it was said to be used like that |
| 21:24:16 | <geekosaur> | which guide? |
| 21:25:00 | <ArshiaAghaei[m]> | https://wiki.archlinux.org/title/Libinput |
| 21:26:04 | <geekosaur> | fwiw on my thinkpad Fn-Home and Fn-End emit ACPI events and appear to be handled in ACPI firmware (but may be handled by acpid) |
| 21:29:28 | <geekosaur> | you probably need to make sure the property actually has that number; in my experience it varies per device |
| 21:31:48 | <geekosaur> | the Click Method Enabled is prop 340 on my machine, not 303 |
| 21:32:19 | <geekosaur> | xprop --list-props $device # whatever $device is |
| 21:32:28 | <ArshiaAghaei[m]> | I did check |
| 21:36:58 | ArshiaAghaei[m] | sent a code block: https://libera.ems.host/_matrix/media/r0/download/libera.chat/9f4536f3313f9373e220e23233c627e3aa18b397 |
| 21:45:02 | <ArshiaAghaei[m]> | 358 should probably be 1, 1 geekosaur |
| 21:45:51 | <geekosaur> | no, I'm talking the prop number, not the setting |
| 21:46:21 | <ArshiaAghaei[m]> | isn't 358 the prop number? |
| 21:47:35 | <geekosaur> | oh, I misunderstood what you were saying |
| 21:47:50 | <geekosaur> | on my machine the prop number is 340 and its value is 1, 1 |
| 21:47:57 | <geekosaur> | https://paste.tomsmeding.com/iXkrQN0n |
| 21:48:51 | × | bfrk quits (~Thunderbi@i59F7ABAD.versanet.de) (Ping timeout: 252 seconds) |
| 21:54:06 | <liskin> | geekosaur: which thinkpad do you have? |
| 21:54:39 | <liskin> | Although fn-home probably means it's T420 or earlier |
| 21:54:50 | <liskin> | (or T25, but I'd remember that) |
| 21:58:33 | <geekosaur> | X220 |
| 22:02:30 | <ArshiaAghaei[m]> | <geekosaur> "on my machine the prop number is..." <- I tried 1, 1 as value |
| 22:02:32 | <ArshiaAghaei[m]> | same error |
| 22:02:58 | <geekosaur> | I think in the example they showed you enter it without the comma? |
| 22:03:10 | <ArshiaAghaei[m]> | Yeah |
| 22:03:13 | <ArshiaAghaei[m]> | I did that initially |
| 22:08:27 | <geekosaur> | mmm, actually I'm getting the same error. but it reports the bad value… and it's the option, not its value |
| 22:12:58 | <ArshiaAghaei[m]> | I tried 348 |
| 22:13:03 | <ArshiaAghaei[m]> | Seems to work |
| 22:13:13 | <geekosaur> | but if I change the option name/value it correctly reportsit as invalid |
| 22:13:18 | <geekosaur> | so I have no idea |
| 22:13:46 | <geekosaur> | and reports BadMatch if I only provide 1 value instead of 2 |
| 22:21:38 | → | twiclo joins (~twiclo@vpn.utahbroadband.com) |
| 22:25:54 | × | xacktm quits (xacktm@user/xacktm) (Ping timeout: 260 seconds) |
| 22:31:16 | → | jeeeun9 joins (~jeeeun@78.40.148.178) |
| 22:32:37 | → | zawaken- joins (~zawaken@user/zawaken) |
| 22:32:51 | → | habib joins (~habib@217.146.83.233) |
| 22:34:38 | habib | is now known as alaminium |
| 22:34:55 | alaminium | is now known as habibalamin |
| 22:35:16 | habibalamin | is now known as alaminium |
| 22:35:59 | alaminium | is now known as habibalamin |
| 22:36:40 | habibalamin | is now known as alaminium |
| 22:38:10 | → | incertia_ joins (~incertia@207.98.163.88) |
| 22:39:34 | <ArshiaAghaei[m]> | <geekosaur> "https://hackage.haskell.org/..." <- How do I increase/decrease brightness by 10 |
| 22:39:36 | → | habib joins (~textual@217.146.83.233) |
| 22:39:44 | × | theproffesor quits (~theproffe@c-24-9-30-127.hsd1.co.comcast.net) (*.net *.split) |
| 22:39:44 | × | jeeeun quits (~jeeeun@78.40.148.178) (*.net *.split) |
| 22:39:44 | × | incertia quits (~incertia@207.98.163.88) (*.net *.split) |
| 22:39:44 | × | haasn quits (~nand@haasn.dev) (*.net *.split) |
| 22:39:44 | × | zawaken quits (~zawaken@user/zawaken) (*.net *.split) |
| 22:39:44 | × | banc quits (banc@gateway/vpn/airvpn/banc) (*.net *.split) |
| 22:39:44 | × | nomadxx3 quits (~lanomadx@69.167.38.254) (*.net *.split) |
| 22:39:45 | × | ml| quits (~ml|@user/ml/x-5298235) (*.net *.split) |
| 22:39:46 | jeeeun9 | is now known as jeeeun |
| 22:39:48 | incertia_ | is now known as incertia |
| 22:40:12 | <ArshiaAghaei[m]> | increase :: X () |
| 22:40:12 | <ArshiaAghaei[m]> | this does by a 100 |
| 22:41:43 | ← | alaminium parts (~habib@217.146.83.233) () |
| 22:44:01 | <ArshiaAghaei[m]> | https://lambdablob.com/posts/xmonad-screen-brightness-control-lux/ |
| 22:44:03 | <ArshiaAghaei[m]> | I found this |
| 22:44:10 | <ArshiaAghaei[m]> | But it uses old keymaps |
| 22:45:28 | → | theproffesor joins (~theproffe@c-24-9-30-127.hsd1.co.comcast.net) |
| 22:45:28 | → | haasn joins (~nand@haasn.dev) |
| 22:45:28 | → | banc joins (banc@gateway/vpn/airvpn/banc) |
| 22:45:28 | → | nomadxx3 joins (~lanomadx@69.167.38.254) |
| 22:45:28 | → | ml| joins (~ml|@user/ml/x-5298235) |
| 22:45:39 | × | geekosaur quits (~geekosaur@xmonad/geekosaur) (Killed (NickServ (GHOST command used by allbery_b))) |
| 22:45:39 | → | allbery_b joins (~geekosaur@xmonad/geekosaur) |
| 22:45:43 | allbery_b | is now known as geekosaur |
| 22:45:47 | <geekosaur> | so define your own function that has +10 instead of +100 |
| 22:46:19 | <geekosaur> | likewise for decrease but watch out for the syntactic oddity of negative literals |
| 22:48:01 | <geekosaur> | also if you look just below the one using the old keys in that lux page, you'll find one for additionalKeysP |
| 22:54:27 | <ArshiaAghaei[m]> | OK I noticed something |
| 22:54:35 | <ArshiaAghaei[m]> | M-Q does not work |
| 22:54:53 | <ArshiaAghaei[m]> | It does not recompiile and restart xmonad |
| 22:55:06 | <ArshiaAghaei[m]> | cause xmonad --recompile gave errors |
| 22:55:09 | <ArshiaAghaei[m]> | M-Q did not |
| 22:55:39 | → | xacktm joins (xacktm@user/xacktm) |
| 22:58:10 | × | twiclo quits (~twiclo@vpn.utahbroadband.com) (Quit: WeeChat 3.4) |
| 23:01:01 | <ArshiaAghaei[m]> | ```("M-q", spawn "if type xmonad; then xmonad --recompile && xmonad --restart; else xmessage xmonad not in \\$PATH: \"$PATH\"; fi") ``` |
| 23:01:04 | <ArshiaAghaei[m]> | Added this |
| 23:01:09 | <ArshiaAghaei[m]> | Still won't work |
| 23:02:30 | <ArshiaAghaei[m]> | I yanked an important import |
| 23:02:36 | <ArshiaAghaei[m]> | It did not react |
| 23:03:02 | <geekosaur> | that sounds like a problem with xmessage |
| 23:06:03 | × | habib quits (~textual@217.146.83.233) (Quit: Textual IRC Client: www.textualapp.com) |
| 23:06:34 | → | habib joins (~textual@217.146.83.233) |
| 23:10:07 | × | habib quits (~textual@217.146.83.233) (Client Quit) |
| 23:34:14 | <ArshiaAghaei[m]> | It was not installed |
| 23:34:19 | <ArshiaAghaei[m]> | Apparently |
| 23:42:21 | <ArshiaAghaei[m]> | Well now it just says this |
| 23:42:55 | <ArshiaAghaei[m]> | xmonad not in path |
| 23:43:00 | <ArshiaAghaei[m]> | At the same time |
| 23:43:19 | <ArshiaAghaei[m]> | [arshia@arshia-pc ~]$ which xmonad |
| 23:43:19 | <ArshiaAghaei[m]> | /home/arshia/.local/bin/xmonad |
| 23:44:22 | <fizzie> | It's not uncommon (though unforunate) to have a different PATH environment variable in xmonad than in your shell. |
| 23:44:31 | <geekosaur> | do you remember having to specify a full path earlier because it only looks in /bin and /usr/bin? |
All times are in UTC on 2022-03-11.