Home liberachat/#xmonad: Logs Calendar

Logs on 2023-01-02 (liberachat/#xmonad)

00:10:16 × defjam quits (~defjam@2a02:c7e:2807:b900:f093:37cf:2efc:6f2b) (Quit: WeeChat 3.7.1)
02:39:19 × tremon quits (~tremon@83-85-213-108.cable.dynamic.v4.ziggo.nl) (Quit: getting boxed in)
03:03:59 × banc quits (banc@gateway/vpn/protonvpn/banc) (Ping timeout: 260 seconds)
03:15:40 × td_ quits (~td@83.135.9.35) (Ping timeout: 260 seconds)
03:17:08 td_ joins (~td@83.135.9.63)
03:24:04 banc joins (banc@gateway/vpn/protonvpn/banc)
04:06:57 × werneta quits (~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net) (Quit: Lost terminal)
04:15:07 werneta joins (~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net)
04:19:22 defjam joins (~defjam@2a02:c7e:2807:b900:2821:cf47:1533:6089)
04:44:47 × de-vri-es quits (~de-vri-es@voyager.de-vri.es) (Ping timeout: 260 seconds)
04:56:10 Janoo joins (~username@c-bc15225c.010-598-73746f7.bbcust.telenor.se)
04:57:23 <Janoo> I am trying to remap the M-{w,e,r} keybindings to M-{u,i,o}. I found this line online which supposedly should take care of that
04:57:27 <Janoo> ((m .|. modm, key), screenWorkspace sc >>= flip whenJust (windows . f)) | (key, sc) <- zip [xK_u, xK_i, xK_o] [0..] , (f, m) <- [(W.view, 0), (W.shift, shiftMask)]
04:57:44 <Janoo> I added it to my additionalKeys
04:58:03 <Janoo> but I get an error when I recompile
04:59:17 <Janoo> the error is: error: parse error on input ‘|’
04:59:50 <Janoo> it refers to the | that is before (key,sc)
05:00:58 <Janoo> Any suggestions on how to solve this?
05:03:26 de-vri-es joins (~de-vri-es@voyager.de-vri.es)
05:23:18 <HB[m]> ... (full message at <https://libera.ems.host/_matrix/media/v3/download/libera.chat/f0495deb2282f44fa57dc62244b0628f78eba51e>)
05:23:25 <HB[m]> * ```haskell... (full message at <https://libera.ems.host/_matrix/media/v3/download/libera.chat/39fcd62399b6d3646b775a537487446a5404e53f>)
05:24:23 <HB[m]> `additionalKeys`... (full message at <https://libera.ems.host/_matrix/media/v3/download/libera.chat/38b026b48fac1ad83b3d9b2e9c28910d7f8ef0f4>)
05:24:34 <HB[m]> * ```haskell... (full message at <https://libera.ems.host/_matrix/media/v3/download/libera.chat/694971ea631b8b3ee1f05ed882889b8194f2d278>)
05:25:31 <HB[m]> * ```haskell... (full message at <https://libera.ems.host/_matrix/media/v3/download/libera.chat/23279897d9855acc54bef5e5488d581449d58777>)
05:25:46 <HB[m]> * ```haskell... (full message at <https://libera.ems.host/_matrix/media/v3/download/libera.chat/9c4a645870362658749b5121896b6ad60145afa0>)
05:28:44 <HB[m]> * ```haskell... (full message at <https://libera.ems.host/_matrix/media/v3/download/libera.chat/803c664819f31165a75cb4bef5184e1730f3794f>)
05:29:48 <HB[m]> * ```haskell... (full message at <https://libera.ems.host/_matrix/media/v3/download/libera.chat/0395444a9c252a48549767f006d2f04f35454a3b>)
05:31:59 <HB[m]> `[xK_F1..xK_F2]` means F1 through to ... F2.
05:31:59 <HB[m]> You can specify `[xK_u, xK_i, xK_o]` instead and make it 3 keys only which will handle 0...2 IIRC
05:49:13 <HB[m]> * ```haskell... (full message at <https://libera.ems.host/_matrix/media/v3/download/libera.chat/9bca27b4d333838c77af3a295590afa653d518c5>)
05:54:09 <Janoo> I added the block you suggested, commented out all the previous addiotionalKeys I had; and I am getting the following error HB[m]
05:54:24 <Janoo> Not in scope: ‘W.shift’
05:54:25 <Janoo> No module named ‘W’ is imported.
05:54:52 <HB[m]> `import qualified XMonad.StackSet as W`
05:54:52 <HB[m]> put this on top of file
05:56:38 <Janoo> • Couldn't match type ‘XConfig l0 -> KeyMask’
05:56:38 <Janoo> with ‘Foreign.C.Types.CUInt’
05:56:38 <Janoo> Expected: KeyMask
05:56:38 <Janoo> Actual: XConfig l0 -> KeyMask
05:56:38 <Janoo> • Probable cause: ‘modMask’ is applied to too few arguments
05:56:41 <Janoo> In the second argument of ‘(.|.)’, namely ‘modMask’
05:56:43 <Janoo> In the expression: m .|. modMask
05:56:46 <Janoo> In the expression: (m .|. modMask, key)
05:56:58 <Janoo> that's the error that I am getting now HB[m]
05:58:08 <HB[m]> https://bpa.st/ use this website, and paste your entire xmonad.config here and then wait for soemone to look it over
05:58:52 <Janoo> will do later, thx for all the help HB[m]!
06:01:47 <HB[m]> Don't forget to share the link with us.
06:07:47 × jabuxas quits (~jabuxas@user/jabuxas) (Ping timeout: 246 seconds)
06:10:03 jabuxas joins (~jabuxas@user/jabuxas)
06:15:53 <Janoo> HB[m]: here is a link to my current config: https://bpa.st/XX52A
06:46:32 <Janoo> In case someone else drops by here, here is my issue: I am trying to remap M-{w,e,r} to M-{u,i,o}. I have pasted the blocks of code provided by HB[m] above but I have had compilation errors. My config file can be found here: https://bpa.st/XX52A . I would be grateful if anyone could tell me how to change the code to remap the aforementioned keys. Thank you!
06:56:50 <Solid> Janoo: try something like http://ix.io/4k9r/haskell
06:56:57 <Solid> (and now adjust the keys as needed)
06:57:49 <Solid> (btw, if you're new to XMonad definitely check out the tutorial: https://xmonad.org/TUTORIAL.html :)
06:59:24 <Janoo> Solid: I have been using for a pretty long time, but never got around to learning haskell and just found bits of code that did what I needed from other configurations. I should really get into it, sorry for bothering you guys and thank you for all the help!
07:02:03 <Janoo> Solid: works perfectly now! thank you for the help!
07:02:53 <Solid> No worries, just figured I'd throw it out there :)
07:03:26 <Solid> Especially since, once you update XMonad, things like `defaultConfig` will go away and you'll have to switch to `def`
07:04:14 <Solid> (I've sheepishly already changed this in the config I sent you)
07:04:55 × defjam quits (~defjam@2a02:c7e:2807:b900:2821:cf47:1533:6089) (Ping timeout: 260 seconds)
07:05:36 <Janoo> Solid: Yeah I noticed that a couple of days back when I switched from my old repo version to the newest one to add some more layouts. Got a bunch of warnings about deprecations...
07:06:43 <Janoo> Solid: I have been dragging this config for many years now, thank you for the switch to def as well!
07:07:33 <Solid> Most deprecations are pretty easy to fix (and we usually tell you exactly what to do), but if you need help with anything feel free to ask here!
07:07:49 <Janoo> Solid: will do!
07:26:36 × werneta quits (~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net) (Remote host closed the connection)
07:34:08 defjam joins (~defjam@90.201.240.60)
07:37:27 werneta joins (~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net)
07:38:56 × defjam quits (~defjam@90.201.240.60) (Ping timeout: 252 seconds)
07:56:47 Janoo parts (~username@c-bc15225c.010-598-73746f7.bbcust.telenor.se) ()
08:07:24 defjam joins (~defjam@90.201.240.60)
08:12:02 × defjam quits (~defjam@90.201.240.60) (Ping timeout: 246 seconds)
08:42:43 defjam joins (~defjam@2a02:c7e:2807:b900:2821:cf47:1533:6089)
08:47:35 × defjam quits (~defjam@2a02:c7e:2807:b900:2821:cf47:1533:6089) (Ping timeout: 260 seconds)
09:16:28 × werneta quits (~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net) (Ping timeout: 252 seconds)
09:17:32 defjam joins (~defjam@2a02:c7e:2807:b900:2821:cf47:1533:6089)
09:18:19 werneta joins (~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net)
09:22:52 × defjam quits (~defjam@2a02:c7e:2807:b900:2821:cf47:1533:6089) (Max SendQ exceeded)
09:23:21 defjam joins (~defjam@2a02:c7e:2807:b900:2821:cf47:1533:6089)
11:32:35 × defjam quits (~defjam@2a02:c7e:2807:b900:2821:cf47:1533:6089) (Ping timeout: 252 seconds)
11:43:47 thyriaen joins (~thyriaen@2a01:aea0:dd4:4bae:6245:cbff:fe9f:48b1)
11:45:28 <thyriaen> I wonder - is there a way to tell picom to treat the entire tabs-bar ( in tabbed layout ) as a single "window" such that only the edges on the far left and far right are rounded into corners by picom ? ( and not the internal ones between each new tab )
11:59:45 guydoodmanbro[m] joins (~guydoodma@2001:470:69fc:105::2:74fe)
12:02:17 defjam joins (~defjam@2a02:c7e:2807:b900:2821:cf47:1533:6089)
12:41:09 toledo joins (~toledo@141.30.130.27)
12:49:54 × toledo quits (~toledo@141.30.130.27) (Quit: Client closed)
13:38:01 × jabuxas quits (~jabuxas@user/jabuxas) (Ping timeout: 265 seconds)
13:41:14 jabuxas joins (~jabuxas@user/jabuxas)
14:07:36 × defjam quits (~defjam@2a02:c7e:2807:b900:2821:cf47:1533:6089) (Ping timeout: 252 seconds)
14:09:59 <jifarra[m]> Is there an easy way to define a keybind that rotates through the options in a MultiToggle group, rather than having keybindings for each toggle?
14:16:02 <geekosaur> not really; HLists are rarely easy
14:16:51 <geekosaur> you'd have to expose the HList outside the definition, and track your positiion in it yourself
14:25:10 defjam joins (~defjam@90.201.240.60)
14:36:28 × defjam quits (~defjam@90.201.240.60) (Ping timeout: 268 seconds)
14:39:56 defjam joins (~defjam@90.201.240.60)
14:57:57 <thyriaen> geekosaur, do you know the answer to my question from 3 hours ago ?
15:12:26 tremon joins (~tremon@83-85-213-108.cable.dynamic.v4.ziggo.nl)
15:13:25 <geekosaur> that would be a picom question and I have no idea
15:14:00 <geekosaur> suspect there's no good way to do it; they really are separate windows as far as xmonad and X11 are concerned, so picom would have to know how to group them somehow
15:17:56 <Jadesheit[m]> if the border window has specific tags you can target those
15:18:04 <Jadesheit[m]> try with xprop
15:18:18 <geekosaur> it doesn't have any
15:18:41 <geekosaur> I messed with that code a couple years back, hacking it up locally to add opacity props 🙂
15:19:51 <geekosaur> https://hackage.haskell.org/package/xmonad-contrib-0.17.1/docs/src/XMonad.Util.XUtils.html#createNewWindow fwiw
15:20:13 <thyriaen> what is that ?
15:20:40 <geekosaur> the problem with making changes there is it's used by things other than tabs; the problem with making it in the tab code is it doesn't actually have the window, Decoration does, and Decoration can't tell the difference between a tab and a titlebar
15:21:57 <geekosaur> (which was also what was wrong with my opacity hack; it only worked because I didn't use anything else that called `createNewWindow`)
15:23:58 <geekosaur> "that" was the code that creates the Decoration windows used by tabs, titlebars, ShowWName, and a few other places
15:38:51 <thyriaen> geekosaur, i don't quite get it but i don't use any decoration other than borders and tabs
15:39:08 <thyriaen> would it work for me if i adjust it and can i then get kinda a grouped window for my tabs ?
15:39:49 <geekosaur> you still need to convince picom to treat them as a single window, which is something we can't help with
15:40:26 <geekosaur> but if you forked xmonad-contrib, yes, you could patch that code to add a property for picom to match on
15:52:14 × defjam quits (~defjam@90.201.240.60) (Ping timeout: 246 seconds)
16:00:06 × purity-gearD[m] quits (~pipe-gear@2001:470:69fc:105::2:ac18) (Quit: You have been kicked for being idle)
16:00:08 × liskin[m] quits (~liskinmat@2001:470:69fc:105::768) (Quit: You have been kicked for being idle)
16:22:54 defjam joins (~defjam@90.201.240.60)
16:28:19 × defjam quits (~defjam@90.201.240.60) (Ping timeout: 260 seconds)
16:32:58 <thyriaen> geekosaur, do you know if there is a way for picom to treat the tabs as part of the window ? because if the tabs have shadow they draw it ontop of the window the tabs are attached to
16:33:10 liskin[m] joins (~liskinmat@2001:470:69fc:105::768)
16:34:32 <xmonadtrack> New xmonad-contrib branch created: tmp (1 commit) https://github.com/xmonad/xmonad-contrib/tree/tmp
16:37:02 <geekosaur> No, I don't
16:40:33 <liskin> geekosaur, Solid: what do we think about TupleSections? hlint 3.5 suggests those by default now for zip/repeat combos
16:41:07 <liskin> hm, that's probably a question I might ask via a PR…
16:42:08 <geekosaur> TupleSections has been around forever; that it's an extension is arguably a wart in the Haskell language standard
16:47:54 <geekosaur> we have much more questionable stuff in the codebase imo
16:56:55 defjam joins (~defjam@90.201.240.60)
17:01:43 × defjam quits (~defjam@90.201.240.60) (Ping timeout: 256 seconds)
17:08:07 <Solid> liskin: fwiw, I find TupleSections very readable
17:29:17 <dminuoso> Isnt there a proposal in the making of turning [a] into `List a`, (a, b) into `Tuple2 a b`, and so forth?
17:29:37 <dminuoso> geekosaur surely knows
17:30:17 defjam joins (~defjam@90.201.240.60)
17:36:02 × defjam quits (~defjam@90.201.240.60) (Ping timeout: 272 seconds)
17:40:23 <Solid> Probably the no-puns one?
17:41:35 jao joins (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net)
17:55:25 <dminuoso> Right. I think my beef with TupleSections is that tuples themselves are special syntax
17:55:52 <dminuoso> One further thought is that GHC2021 enables TupleSections by default
18:04:21 defjam joins (~defjam@90.201.240.60)
18:09:10 × defjam quits (~defjam@90.201.240.60) (Ping timeout: 265 seconds)
18:37:13 <geekosaur> I have heard some discussion of the list one, but nothing about the tuple
18:37:45 <geekosaur> wouldn't surprise me much especially given the Solo proposal passed
18:38:38 defjam joins (~defjam@90.201.240.60)
18:41:44 abhixec joins (~abhinav@c-67-169-139-16.hsd1.ca.comcast.net)
18:43:45 × defjam quits (~defjam@90.201.240.60) (Ping timeout: 268 seconds)
19:11:52 defjam joins (~defjam@90.201.240.60)
19:16:59 × defjam quits (~defjam@90.201.240.60) (Ping timeout: 260 seconds)
19:31:37 Stormfox2[m] joins (~stormfox2@2001:470:69fc:105::2:eba0)
19:31:56 <Stormfox2[m]> Hey, can somebody help me debugging my issue with tint2 and XMonad?
19:32:07 <Stormfox2[m]> Docks just dont leave space for it ever
19:32:13 <Stormfox2[m]> https://hastebin.com/eqoliyodat.swift
19:32:19 <Stormfox2[m]> This is my config
19:40:56 defjam joins (~defjam@90.201.240.60)
19:45:42 × defjam quits (~defjam@90.201.240.60) (Ping timeout: 255 seconds)
19:46:42 <xmonadtrack> xmonad-contrib Tomas Janousek * v0.17.1-110-g6b20dbca: Apply hlint 3.5 hints (2 hours ago, 6 files, 17+ 10-) https://github.com/xmonad/xmonad-contrib/commit/6b20dbca42f2
19:46:44 <xmonadtrack> xmonad-contrib Tomas Janousek * v0.17.1-111-ge2ffa533: ci: Unpin runner in hlint workflow; bump hlint to 3.5 (3 hours ago, 1 file, 2+ 2-) https://github.com/xmonad/xmonad-contrib/commit/e2ffa533da76
19:49:37 <geekosaur> Stormfox2[m], you're missing `manageDocks` in your `manageHook` so it never recognizes the dock windows to reserve space for them
19:50:06 <Stormfox2[m]> I dont
19:50:11 <Stormfox2[m]> { manageHook = myManageHook <+> manageDocks
19:50:15 <Stormfox2[m]> geekosaur:
19:50:46 <geekosaur> hm, sorry, I specifically checked for that but didnt notice it at the very top…
19:51:06 <Stormfox2[m]> All good, it was in the main on the bottom
19:51:46 <Stormfox2[m]> I am getting really frustrated, tried everything and I dont want to use gaps, because I am having 3 monitors and only one bar
19:51:53 <xmonadtrack> xmonad Tomas Janousek * v0.17.1-42-g63f73e1: ci: Unpin runner in hlint workflow; bump hlint to 3.5 (3 hours ago, 1 file, 2+ 2-) https://github.com/xmonad/xmonad/commit/63f73e18f94c
19:53:41 <Stormfox2[m]> https://hastebin.com/iqeqoyivun.apache Is that fine?
19:57:03 <geekosaur> looks fine, yes
19:57:51 <geekosaur> hm, wait
19:58:07 <geekosaur> no, it's wrong. no strut properties
19:58:23 <geekosaur> which means xmonad won't know how much space to reserve for it or where to reserve it
19:58:49 <geekosaur> _NET_WM_STRUT or _NET_WM_STRUT_PARTIAL is needed
19:59:07 <geekosaur> you need to make sure tint2 is configured to set at least one of those
20:01:31 <Stormfox2[m]> Hm, I am going to look for it, thank you
20:02:57 defjam joins (~defjam@90.201.240.60)
20:03:54 <geekosaur> this may be somewhat tricky; for example, dzen2 will only set them if you place it exactly at the screen edge, miscalculate by one pixel in either direction and you get no struts
20:04:53 <Stormfox2[m]> Wow
20:07:44 × defjam quits (~defjam@90.201.240.60) (Ping timeout: 246 seconds)
20:08:12 <Stormfox2[m]> That kind of worked
20:08:15 <Stormfox2[m]> But in the wrong way
20:09:52 Stormfox2[m] uploaded an image: (359KiB) < https://libera.ems.host/_matrix/media/v3/download/matrix.org/whlMUHEWzMivAFiGScxsbjTm/image.png >
20:09:56 <Stormfox2[m]> It does the gap on the right side
20:14:49 <geekosaur> so it set the wrong strut. not sure I can help there
20:14:57 <Stormfox2[m]> It works :D
20:15:10 <Stormfox2[m]> I had to pivot it and not it works :D
20:15:13 <Stormfox2[m]> Thank you a lot
20:18:39 <geekosaur> was just about to ask about that and strut_policy, yes
20:25:08 × jabuxas quits (~jabuxas@user/jabuxas) (Quit: WeeChat 2.8)
20:28:34 jabuxas joins (~jabuxas@user/jabuxas)
20:38:35 defjam joins (~defjam@90.201.240.60)
20:43:23 × defjam quits (~defjam@90.201.240.60) (Ping timeout: 268 seconds)
21:08:03 × abhixec quits (~abhinav@c-67-169-139-16.hsd1.ca.comcast.net) (Ping timeout: 268 seconds)
21:10:48 defjam joins (~defjam@90.201.240.60)
21:16:04 × defjam quits (~defjam@90.201.240.60) (Ping timeout: 268 seconds)
21:37:18 × gknux quits (~gknux@user/galaxy-knuckles/x-3015990) (Quit: ....and i am outta here....)
21:38:17 gknux joins (~gknux@user/galaxy-knuckles/x-3015990)
21:45:44 defjam joins (~defjam@90.201.240.60)
21:50:39 × defjam quits (~defjam@90.201.240.60) (Ping timeout: 260 seconds)
22:19:46 defjam joins (~defjam@90.201.240.60)
22:25:08 × defjam quits (~defjam@90.201.240.60) (Ping timeout: 268 seconds)
22:30:45 × thyriaen quits (~thyriaen@2a01:aea0:dd4:4bae:6245:cbff:fe9f:48b1) (Quit: Leaving)
22:33:41 defjam joins (~defjam@90.201.240.60)
22:35:39 × defjam quits (~defjam@90.201.240.60) (Client Quit)
23:39:40 defjam joins (~defjam@2a02:c7e:2807:b900:2867:d426:6493:3409)

All times are in UTC on 2023-01-02.