Home liberachat/#xmonad: Logs Calendar

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

00:03:40 × defjam quits (~defjam@2a02:c7e:2807:b900:85e2:4f2b:c50c:70cf) (Ping timeout: 265 seconds)
00:16:18 defjam joins (~defjam@2a02:c7e:2807:b900:85e2:4f2b:c50c:70cf)
02:29:35 × defjam quits (~defjam@2a02:c7e:2807:b900:85e2:4f2b:c50c:70cf) (Ping timeout: 256 seconds)
03:04:04 × banc quits (banc@gateway/vpn/protonvpn/banc) (Ping timeout: 268 seconds)
03:08:56 × td_ quits (~td@83.135.9.51) (Ping timeout: 255 seconds)
03:10:42 td_ joins (~td@83.135.9.53)
03:24:00 banc joins (banc@gateway/vpn/protonvpn/banc)
04:18:29 lokesh1197 joins (~Thunderbi@14.139.128.52)
04:33:26 lokesh1198 joins (~Thunderbi@14.139.128.52)
04:33:54 × lokesh1197 quits (~Thunderbi@14.139.128.52) (Ping timeout: 252 seconds)
04:33:54 lokesh1198 is now known as lokesh1197
04:45:12 × jao quits (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) (Ping timeout: 268 seconds)
05:06:14 × [Leary] quits (~Leary]@user/Leary/x-0910699) (Remote host closed the connection)
05:06:34 [Leary] joins (~Leary]@user/Leary/x-0910699)
06:28:48 × werneta quits (~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net) (Ping timeout: 268 seconds)
06:29:27 werneta joins (~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net)
07:18:47 × lokesh1197 quits (~Thunderbi@14.139.128.52) (Ping timeout: 264 seconds)
08:42:58 defjam joins (~defjam@2a02:c7e:2807:b900:85e2:4f2b:c50c:70cf)
09:19:50 mc47 joins (~mc47@xmonad/TheMC47)
09:32:20 × defjam quits (~defjam@2a02:c7e:2807:b900:85e2:4f2b:c50c:70cf) (Quit: WeeChat 3.7.1)
10:57:50 mncheckm joins (~mncheck@193.224.205.254)
11:50:11 thyriaen joins (~thyriaen@2a01:aea0:dd4:4bae:6245:cbff:fe9f:48b1)
11:52:31 <thyriaen> i have some windows i set for example by: doRectFloat ( W.RationalRect (1 % 5) (1 % 6) (3 % 5) (2 % 3) ) is it possible to define it not by percent but by pixel ?
11:52:47 <thyriaen> because i have 3 different screens and i want the window to have the same size on all 3
12:00:28 tremon joins (~tremon@83-85-213-108.cable.dynamic.v4.ziggo.nl)
12:09:04 <vrs> is there a nice way of running an action (such as cleaning up a temporary workspace) when the last window on a workspace is closed?
12:10:26 dmn_ joins (~dmn_@ip-078-094-075-193.um19.pools.vodafone-ip.de)
12:17:47 <dmn_> http://pastie.org/p/7zQ7Itws7r3NVEaQoNi7do Does anyone see by chance my error? I got two physical Monitors - each of them need two DP cables and each of the monitors have it's own GPU. The first one works fine - both panels are grouped together and work as expected. For the second physical monitor I got a odd behaviour, that I do not understand:
12:17:48 <dmn_> the first (DP-1-0) panel shows nothing, the second panel (DP-1-2) is working fine. Moving the mouse from the working DP-0 to DP-1 works fine, even moving the mouse to DP-1-2 works and it 'takes time' to move through DP-1-0, but nothing is shown on DP-1-0....     Gladly any debug help...
12:47:33 <Solid> thyriaen: there is nothing premade I don't think, and in general resizing by pixels exactly will be very difficult because not all program may have single-pixel resize increments
12:48:03 <Solid> There is [XMonad.Layout.FixedColumn](https://hackage.haskell.org/package/xmonad-contrib/docs/XMonad-Layout-FixedColumn.html) which you could probably copy the logic of, plus the equivalent thing for the height
12:48:22 <Solid> But I reckon many graphical applications would not _exactly_ be the same on different monitors
13:01:02 <vrs> dmn_: you usually shouldn't need two DP cables unless you're on a pretty old version of DP?
13:01:27 <vrs> 1.3 or 1.4 already supports 8K I believe
13:03:17 <dmn_> vrs I think the monitor just requires it - I can do it with 1 cable, but then I get 30Hz refresh rate - sadly
13:10:58 <vrs> what happens if you connect only the second (weird-acting) monitor? could it be the GPU?
13:12:35 <dmn_> I swapped cables/monitors/cards - liek tried very combination - always the 'secondary' monitor will have the issue on the first panel. I can get the second physical monitor working just fine if I change the order of the outputs
13:13:10 <dmn_> oki .. this is even better ... the panel just came on ...
13:13:51 <dmn_> I don't get it .. for a random reason the terminal I started on boot up is now visible .. don't know when it happend ..
13:13:54 <dmn_> what a fun ..
13:14:40 <dmn_> hmmm - the monitors went to sleep at one point - maybe sleep and wakeup fixes it?:)
13:15:33 <dmn_> is there a command to trigger the monitor into sleep mode?
13:19:36 <vrs> don't know but the first place I'd look is the sysfs of the associated GPU
13:41:51 lokesh1197 joins (~Thunderbi@14.139.128.52)
14:08:05 jao joins (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net)
14:23:19 × lokesh1197 quits (~Thunderbi@14.139.128.52) (Ping timeout: 260 seconds)
14:40:58 <ChaoticMist[m]> How can I have xmonad launch an application with user variables? (variables defined within the .zshrc of my setup)
14:42:08 <ChaoticMist[m]> Need the described setup for a neovim plugin (ChatGPT.nvim) to recognize the temporary key generated by my nix setup
14:42:55 <geekosaur> `spawn "source .zshrc; ..."`
14:44:08 <geekosaur> ideally you'd arrange for X11 to do your setup but that depends how your system is set up (I have no clue how you'd arrange this on nixos, for example)
14:45:13 <geekosaur> I stick https://github.com/geekosaur/xmonad.hs/blob/skkukuk/10profile in /etc/X11/Xsession.d on debian/ubuntu/mint
14:47:46 <ChaoticMist[m]> I guess I got to dig into environment.variables in nixos to find out how to properly do this
14:48:11 <ChaoticMist[m]> Because earlier setup (read it directly by root) was making it world-readable.. something that is not desired
16:00:10 × unclechu quits (~unclechu@2001:470:69fc:105::354) (Quit: You have been kicked for being idle)
18:11:31 <thyriaen> Solid, doesn't have to be pixel perfect - i just have a screen that is 16:9 and one that is 9:16 so when i use percentages all windows are gobbled up
18:11:45 unclechu joins (~unclechu@2001:470:69fc:105::354)
18:33:36 <geekosaur> sleep mode: xset -force dpms on
18:45:31 <vrs> ChaoticMist[m]: debian has .xsessionrc for this
18:46:20 <vrs> geekosaur: how would xmonad source variables when it all happens in a spawn?
18:47:32 <vrs> also xset dpms on ime doesn't necessarily turn off the screen, it just sets it to zero brightness (or at least I recall that happening)
18:47:38 <geekosaur> "launch an application" is spawn. you can have the spawn grab the variables. otherwise you would either wrap xmonad startup in a script which did the sourcing, or do something like I pointed to with the `10profile` link
18:47:59 <geekosaur> then your monitor doesn't support dpms
18:48:31 <ChaoticMist[m]> vrs: Should be the same for nixos then because it's simply linux, just with extra / reproducible steps
18:49:22 <vrs> ChaoticMist[m]: .xsessionrc is debian specific (it's something they do within the shell scripts they distribute), however there's a good chance that nix has a similar mechanism
18:50:00 <ChaoticMist[m]> It has environment.variables but the side-effect of that is a world-readable zshrc that contains the secret key
18:50:16 <ChaoticMist[m]> I can stitch something up later or ask for help and see what a saner solution is
18:50:33 <vrs> I suppose you can also just source your vars in your .xsession, should be similar, after that you just need xmonad to read the vars if desired (but the env inherits automatically so that shouldn't be necessary)
18:50:49 <vrs> I assume your usecase is launching graphical applications that get their secret key from the env?
18:52:41 <vrs> if having it in an owner-readable profile (as opposed to world-readable) is not secure enough, I fear you'll have to roll something with keyrings
18:52:57 lokesh1197 joins (~Thunderbi@14.139.128.52)
19:00:50 <ChaoticMist[m]> <vrs> "I assume your usecase is..." <- Neovide is what I am trying to launch + have it recognize OPENAI_API_KEY for chatgpt.nvim
19:01:16 <ChaoticMist[m]> So I suspect that you are right when speaking of keyring
19:01:20 <ChaoticMist[m]> s/keyring/keyrings/
19:01:49 × mncheckm quits (~mncheck@193.224.205.254) (Ping timeout: 260 seconds)
19:04:59 <vrs> I mean if you're fine with having it show up in every application's env, then source it in .xsession, otherwise yeah keyring
19:07:55 × lokesh1197 quits (~Thunderbi@14.139.128.52) (Ping timeout: 248 seconds)
19:19:23 defjam joins (~defjam@2a02:c7e:2807:b900:cc65:3053:ec90:ffbc)
19:25:50 × abhixec quits (~abhinav@c-67-169-139-16.hsd1.ca.comcast.net) (Ping timeout: 246 seconds)
19:26:59 <Solid> thyriaen: I guess the easiest solution would be to query the monitor's size and then swap the h and w values based on that?
20:00:29 × defjam quits (~defjam@2a02:c7e:2807:b900:cc65:3053:ec90:ffbc) (Ping timeout: 246 seconds)
20:28:25 defjam joins (~defjam@2a02:c7e:2807:b900:cc65:3053:ec90:ffbc)
20:33:26 × defjam quits (~defjam@2a02:c7e:2807:b900:cc65:3053:ec90:ffbc) (Ping timeout: 246 seconds)
20:41:42 defjam joins (~defjam@2a02:c7e:2807:b900:cc65:3053:ec90:ffbc)
20:56:35 × defjam quits (~defjam@2a02:c7e:2807:b900:cc65:3053:ec90:ffbc) (Ping timeout: 264 seconds)
20:57:49 × dmn_ quits (~dmn_@ip-078-094-075-193.um19.pools.vodafone-ip.de) (Quit: Client closed)
21:10:00 defjam joins (~defjam@2a02:c7e:2807:b900:cc65:3053:ec90:ffbc)
21:14:32 × defjam quits (~defjam@2a02:c7e:2807:b900:cc65:3053:ec90:ffbc) (Ping timeout: 252 seconds)
21:26:39 defjam joins (~defjam@2a02:c7e:2807:b900:cc65:3053:ec90:ffbc)
21:31:45 × defjam quits (~defjam@2a02:c7e:2807:b900:cc65:3053:ec90:ffbc) (Ping timeout: 265 seconds)
21:43:27 defjam joins (~defjam@2a02:c7e:2807:b900:cc65:3053:ec90:ffbc)
21:47:51 × defjam quits (~defjam@2a02:c7e:2807:b900:cc65:3053:ec90:ffbc) (Ping timeout: 256 seconds)
21:49:07 defjam joins (~defjam@2a02:c7e:2807:b900:cc65:3053:ec90:ffbc)
22:09:23 × mc47 quits (~mc47@xmonad/TheMC47) (Remote host closed the connection)
22:39:11 justache is now known as justReddy
23:13:25 × defjam quits (~defjam@2a02:c7e:2807:b900:cc65:3053:ec90:ffbc) (Ping timeout: 256 seconds)
23:21:50 defjam joins (~defjam@2a02:c7e:2807:b900:cc65:3053:ec90:ffbc)
23:24:12 × defjam quits (~defjam@2a02:c7e:2807:b900:cc65:3053:ec90:ffbc) (Max SendQ exceeded)
23:24:39 defjam joins (~defjam@2a02:c7e:2807:b900:cc65:3053:ec90:ffbc)
23:53:54 × tremon quits (~tremon@83-85-213-108.cable.dynamic.v4.ziggo.nl) (Quit: getting boxed in)

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