Logs: liberachat/#xmonad
| 2022-10-27 14:09:40 | → | Maeda joins (~Maeda@91-161-10-149.subs.proxad.net) |
| 2022-10-27 14:58:55 | → | noex joins (~null@user/noex) |
| 2022-10-27 15:06:34 | × | Maeda quits (~Maeda@91-161-10-149.subs.proxad.net) (Quit: leaving) |
| 2022-10-27 15:08:53 | → | Maeda joins (~Maeda@91-161-10-149.subs.proxad.net) |
| 2022-10-27 15:24:39 | × | Maeda quits (~Maeda@91-161-10-149.subs.proxad.net) (Quit: leaving) |
| 2022-10-27 15:25:40 | → | Maeda joins (~Maeda@91-161-10-149.subs.proxad.net) |
| 2022-10-27 15:30:20 | × | Maeda quits (~Maeda@91-161-10-149.subs.proxad.net) (Client Quit) |
| 2022-10-27 15:31:22 | → | Maeda joins (~Maeda@91-161-10-149.subs.proxad.net) |
| 2022-10-27 15:58:06 | × | vanvik1 quits (~vanvik@78.156.8.93) (Ping timeout: 250 seconds) |
| 2022-10-27 15:59:01 | → | vanvik1 joins (~vanvik@78.156.8.93) |
| 2022-10-27 15:59:34 | × | rieper quits (~riepernet@webmirror.geo.uni-leipzig.de) (Remote host closed the connection) |
| 2022-10-27 16:00:35 | → | rieper joins (~riepernet@webmirror.geo.uni-leipzig.de) |
| 2022-10-27 16:52:35 | → | jao joins (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) |
| 2022-10-27 16:55:17 | × | vanvik1 quits (~vanvik@78.156.8.93) (Ping timeout: 240 seconds) |
| 2022-10-27 16:57:10 | → | vanvik1 joins (~vanvik@78.156.8.93) |
| 2022-10-27 17:35:03 | → | ft joins (~ft@p3e9bc845.dip0.t-ipconnect.de) |
| 2022-10-27 17:52:21 | ← | alternateved[m] parts (~alternate@2001:470:69fc:105::2:894a) () |
| 2022-10-27 17:57:21 | → | desantra joins (~skykanin@user/skykanin) |
| 2022-10-27 18:01:14 | × | desantra quits (~skykanin@user/skykanin) (Client Quit) |
| 2022-10-27 18:07:47 | → | desantra joins (~skykanin@user/skykanin) |
| 2022-10-27 19:40:55 | → | odiseo1869[m] joins (~odiseo186@2001:470:69fc:105::2:acb6) |
| 2022-10-27 19:41:06 | ← | odiseo1869[m] parts (~odiseo186@2001:470:69fc:105::2:acb6) () |
| 2022-10-27 19:58:46 | → | jabuxas joins (~klein@user/jabuxas) |
| 2022-10-27 20:04:11 | <jabuxas> | how do I remove a default keybinding? I wanna launch firefox with M-b but that is already set default to sendMessage ToggleStruts. I couldn't figure out a way to remove that keybinding. there is the `removeKeys` function from util.ezconfig, but I didn't understand the syntax for that one. |
| 2022-10-27 20:04:23 | → | liskin[m] joins (~liskinmat@2001:470:69fc:105::768) |
| 2022-10-27 20:04:40 | <jabuxas> | I can change sendMessage ToggleStruts to M-m, but M-b still does it. |
| 2022-10-27 20:05:04 | <geekosaur> | it probably wouldn't work anyway since it's added afterward by withEasySB; change that to withSB to free it up, I think |
| 2022-10-27 20:05:30 | <geekosaur> | or change the function you pass that sets the keybinding |
| 2022-10-27 20:05:33 | <geekosaur> | @paste |
| 2022-10-27 20:05:33 | <lambdabot> | A pastebin: https://paste.debian.net/ |
| 2022-10-27 20:05:36 | <geekosaur> | sigh |
| 2022-10-27 20:05:39 | <geekosaur> | @where paste |
| 2022-10-27 20:05:39 | <lambdabot> | Help us help you: please paste full code, input and/or output at e.g. https://paste.tomsmeding.com |
| 2022-10-27 20:06:49 | <jabuxas> | paste my xmonad.hs? |
| 2022-10-27 20:07:32 | <geekosaur> | yes |
| 2022-10-27 20:07:56 | <jabuxas> | https://paste.debian.net/1258494/ |
| 2022-10-27 20:07:58 | <geekosaur> | so I can see how best to get the default mod-b binding out of the way |
| 2022-10-27 20:09:14 | <geekosaur> | you're using withEasySB twice, it's binding mod-b twice (the `def` parameter) |
| 2022-10-27 20:10:16 | <jabuxas> | would there be another way to launch a second bar on my second monitor that would not be calling the same function again? |
| 2022-10-27 20:10:32 | <geekosaur> | one of those should be `withSB` and minus `def`, the other you need to change `def` to a function you provide that takes a config (so it can find out your mod key) and returns a (KeyMask,KeySym) to bind the `ToggleStruts` action to |
| 2022-10-27 20:10:40 | <geekosaur> | `withSB`, as I said |
| 2022-10-27 20:11:00 | <geekosaur> | `withEasySB` does the initial setup, after that you only need `withSB` |
| 2022-10-27 20:13:26 | <jabuxas> | would then `withSB xmobar2 def2` where on def2 I define something like `((modm, xK_m), sendMessage ToggleStruts)` work? |
| 2022-10-27 20:13:49 | <geekosaur> | you remove `def` completely with `withSB` |
| 2022-10-27 20:14:12 | <geekosaur> | `withEasySB` takes that, but in this case we have to change it to something else |
| 2022-10-27 20:14:25 | <jabuxas> | what would you recommend me to change it to? |
| 2022-10-27 20:15:10 | <geekosaur> | what key would you prefer to use for toggling the statusbar? |
| 2022-10-27 20:15:12 | <geekosaur> | (s) |
| 2022-10-27 20:15:34 | <jabuxas> | xK_m is ok |
| 2022-10-27 20:15:54 | <geekosaur> | `toggleSB conf {modMask = modm} = (modm, xK_m)` |
| 2022-10-27 20:16:10 | <geekosaur> | then use `toggleSB` in place of `def` in the `withEasySB` call |
| 2022-10-27 20:18:49 | <jabuxas> | /home/klein/.config/xmonad/src/xmonad.hs:49:56: error: parse error on input ‘=’ |
| 2022-10-27 20:18:52 | <jabuxas> | | |
| 2022-10-27 20:18:54 | <jabuxas> | 49 | . withEasySB xmobar toggleSB conf {modMask = modm} = (modm, xK_m) |
| 2022-10-27 20:19:40 | <jabuxas> | it complained about the last = |
| 2022-10-27 20:22:14 | <geekosaur> | you don't put that there, you put it in a where clause or at the top level. the `withEasySB` call then becomes `withEasySB xmobar toggleSB` |
| 2022-10-27 20:23:10 | <geekosaur> | put the definition around line 52 |
| 2022-10-27 20:28:27 | <jabuxas> | something like |
| 2022-10-27 20:28:31 | <jabuxas> | . withEasySB xmobar toggleSB |
| 2022-10-27 20:28:34 | <jabuxas> | . withSB xmobar2 |
| 2022-10-27 20:28:36 | <jabuxas> | $ myConfig |
| 2022-10-27 20:28:38 | <jabuxas> | where |
| 2022-10-27 20:28:40 | <jabuxas> | toggleSB = conf {modMask = modm} = (modm, xK_m) y |
| 2022-10-27 20:28:42 | <jabuxas> | ? |
| 2022-10-27 20:28:49 | <jabuxas> | ignore the y at the end |
| 2022-10-27 20:29:12 | <geekosaur> | that should work, yes |
| 2022-10-27 20:31:31 | <thyriaen> | what xdg file picker do you guys use ? Jabuxas ? |
| 2022-10-27 20:32:13 | <jabuxas> | /home/klein/.config/xmonad/src/xmonad.hs:53:43: error: parse error on input ‘=’ |
| 2022-10-27 20:32:15 | <jabuxas> | | |
| 2022-10-27 20:32:17 | <jabuxas> | 53 | toggleSB = conf {modMask = modm} = (modm, xK_m) |
| 2022-10-27 20:32:19 | <jabuxas> | | |
| 2022-10-27 20:32:31 | <jabuxas> | it's poiting at the second = still |
| 2022-10-27 20:34:24 | <jabuxas> | thyriaen: I never really changed it, and I only have pcmanfm installed |
| 2022-10-27 20:35:56 | <geekosaur> | the first = doesn't belong there |
| 2022-10-27 20:36:23 | <geekosaur> | `toggleSB conf {modMask = modm} = (modm, xK_m)` |
| 2022-10-27 20:36:38 | <jabuxas> | not a record constructor |
| 2022-10-27 20:36:41 | <jabuxas> | conf |
| 2022-10-27 20:37:01 | <geekosaur> | wait, lemme doublecheck this |
| 2022-10-27 20:37:57 | <geekosaur> | looks like it should be (it's `XConfig Layout`) |
| 2022-10-27 20:38:37 | <jabuxas> | oh, just like `myKeys conf@(XConfig {XMonad.modMask = modm}) = M.fromList` |
| 2022-10-27 20:38:44 | <jabuxas> | tho idk what that @ means |
| 2022-10-27 20:39:02 | <geekosaur> | the @ lets you capture a pattern and deconstruct it at the same time |
| 2022-10-27 20:39:27 | <geekosaur> | so the entire record is `conf`, but it also extracts the `modMask` field as `modm` |
| 2022-10-27 20:39:46 | <geekosaur> | oh, right, I'm sorry. change `conf` to `XConfig` |
| 2022-10-27 20:39:50 | <geekosaur> | my mistake |
| 2022-10-27 20:40:26 | <jabuxas> | holy f*** |
| 2022-10-27 20:40:28 | <jabuxas> | it worked |
| 2022-10-27 20:41:19 | <jabuxas> | so let me see if I understood what was happening, I was calling def function twice so it defined all keybindings twice? |
| 2022-10-27 20:41:40 | <jabuxas> | I thought it was needed to call def on withEasySB, but it's not really? |
| 2022-10-27 20:42:01 | <geekosaur> | just the mod-b keybinding twice. but it was doing so *after* the normal keybindings, so you couldn't override it in those |
| 2022-10-27 20:42:12 | <geekosaur> | withEasySB was replacing yours |
| 2022-10-27 20:42:38 | <geekosaur> | so we had to replace its `def` parameter (which was telling it to use mod-b) with a custom function |
| 2022-10-27 20:43:04 | <jabuxas> | understood. |
| 2022-10-27 20:43:29 | <jabuxas> | ty again geeko, you're helping me so much hahaha |
| 2022-10-27 20:44:02 | <geekosaur> | np, that's why I'm here |
| 2022-10-27 21:03:45 | × | thyriaen quits (~thyriaen@2a01:aea0:dd4:470d:6245:cbff:fe9f:48b1) (Remote host closed the connection) |
| 2022-10-27 21:04:40 | <jabuxas> | not much to do with xmonad, but do any of you know if it's possible to make picom not interact or composite a certain window? |
| 2022-10-27 21:04:53 | <jabuxas> | or where I could get help |
| 2022-10-27 21:06:26 | × | desantra quits (~skykanin@user/skykanin) (Quit: WeeChat 3.6) |
| 2022-10-27 21:18:27 | <geekosaur> | https://github.com/geekosaur/xmonad.hs/blob/skkukuk/compton.conf lines 19 and 24 |
All times are in UTC.