Home liberachat/#xmonad: Logs Calendar

Logs on 2024-04-05 (liberachat/#xmonad)

00:00:04 [Leary] joins (~Leary]@user/Leary/x-0910699)
02:42:45 × terrorjack quits (~terrorjac@2a01:4f8:c17:87f8::) (Quit: The Lounge - https://thelounge.chat)
02:47:17 terrorjack joins (~terrorjac@2a01:4f8:c17:87f8::)
02:57:21 × defjam quits (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643) (Ping timeout: 256 seconds)
02:58:15 × td_ quits (~td@i53870905.versanet.de) (Ping timeout: 260 seconds)
02:59:45 td_ joins (~td@i53870915.versanet.de)
03:09:07 defjam joins (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643)
03:15:37 × defjam quits (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643) (Ping timeout: 256 seconds)
03:28:17 defjam joins (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643)
03:34:13 × defjam quits (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643) (Ping timeout: 255 seconds)
03:46:46 defjam joins (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643)
03:52:39 × defjam quits (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643) (Ping timeout: 255 seconds)
04:05:36 defjam joins (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643)
04:11:44 × defjam quits (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643) (Ping timeout: 260 seconds)
04:23:06 defjam joins (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643)
04:29:07 × defjam quits (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643) (Ping timeout: 255 seconds)
04:41:24 defjam joins (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643)
04:47:25 × defjam quits (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643) (Ping timeout: 256 seconds)
04:59:46 defjam joins (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643)
05:06:02 × defjam quits (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643) (Ping timeout: 256 seconds)
05:17:21 defjam joins (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643)
05:23:07 × defjam quits (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643) (Ping timeout: 256 seconds)
05:36:39 defjam joins (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643)
05:42:29 × defjam quits (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643) (Ping timeout: 240 seconds)
05:55:09 defjam joins (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643)
06:00:55 × defjam quits (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643) (Ping timeout: 255 seconds)
06:08:45 defjam joins (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643)
06:15:02 × defjam quits (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643) (Ping timeout: 268 seconds)
06:27:24 defjam joins (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643)
06:33:18 × defjam quits (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643) (Ping timeout: 255 seconds)
06:47:35 defjam joins (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643)
06:53:12 × defjam quits (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643) (Ping timeout: 260 seconds)
07:05:29 defjam joins (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643)
07:11:16 × defjam quits (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643) (Ping timeout: 256 seconds)
07:22:41 defjam joins (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643)
07:29:02 × defjam quits (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643) (Ping timeout: 268 seconds)
07:40:57 defjam joins (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643)
07:47:14 × defjam quits (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643) (Ping timeout: 268 seconds)
08:00:04 defjam joins (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643)
08:06:45 × defjam quits (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643) (Ping timeout: 256 seconds)
08:18:28 defjam joins (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643)
08:24:32 × defjam quits (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643) (Ping timeout: 268 seconds)
08:30:33 × ft quits (~ft@p4fc2a20e.dip0.t-ipconnect.de) (Quit: leaving)
08:36:12 defjam joins (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643)
08:42:25 × defjam quits (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643) (Ping timeout: 268 seconds)
08:48:49 defjam joins (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643)
09:03:14 cfricke joins (~cfricke@user/cfricke)
09:22:38 mekeor joins (~user@2001:a61:10db:ae01:ee8e:7029:dae7:575c)
09:30:45 × Solitary quits (~Solitary@user/solitary) (Ping timeout: 256 seconds)
09:39:25 × defjam quits (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643) (Ping timeout: 246 seconds)
09:40:09 defjam joins (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643)
09:47:39 × humky quits (~humky@user/humky) (Quit: Leaving)
09:49:33 humky joins (~humky@user/humky)
10:00:02 Solitary joins (~Solitary@user/solitary)
11:04:44 × defjam quits (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643) (Ping timeout: 256 seconds)
11:17:13 defjam joins (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643)
11:45:05 × defjam quits (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643) (Ping timeout: 272 seconds)
11:51:25 defjam joins (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643)
12:17:01 × defjam quits (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643) (Ping timeout: 268 seconds)
12:28:57 defjam joins (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643)
12:33:39 × defjam quits (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643) (Ping timeout: 256 seconds)
12:45:19 defjam joins (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643)
12:52:47 × defjam quits (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643) (Ping timeout: 268 seconds)
13:05:43 defjam joins (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643)
13:11:17 × defjam quits (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643) (Ping timeout: 240 seconds)
13:24:10 defjam joins (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643)
13:30:22 × defjam quits (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643) (Ping timeout: 256 seconds)
13:43:21 defjam joins (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643)
13:48:27 × mekeor quits (~user@2001:a61:10db:ae01:ee8e:7029:dae7:575c) (Ping timeout: 256 seconds)
13:49:21 × defjam quits (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643) (Ping timeout: 255 seconds)
14:00:30 defjam joins (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643)
14:02:27 alex` joins (~user@149.22.101.75)
14:06:28 × defjam quits (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643) (Ping timeout: 255 seconds)
14:09:09 defjam joins (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643)
14:15:28 × defjam quits (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643) (Ping timeout: 255 seconds)
14:20:32 × cfricke quits (~cfricke@user/cfricke) (Quit: WeeChat 4.1.2)
14:27:59 defjam joins (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643)
14:51:28 × defjam quits (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643) (Ping timeout: 255 seconds)
15:02:33 defjam joins (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643)
15:16:43 mekeor joins (~user@2001:a61:10db:ae01:ee8e:7029:dae7:575c)
15:18:41 × alex` quits (~user@149.22.101.75) (Ping timeout: 256 seconds)
16:25:31 × scardinal quits (~supreme@0x573d64a9.static.cust.fastspeed.dk) (Ping timeout: 255 seconds)
16:27:13 scardinal joins (~supreme@0x573d64a9.static.cust.fastspeed.dk)
16:38:52 ft joins (~ft@p4fc2a20e.dip0.t-ipconnect.de)
18:04:57 × defjam quits (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643) (Ping timeout: 255 seconds)
18:17:24 defjam joins (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643)
18:22:00 × defjam quits (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643) (Ping timeout: 260 seconds)
18:33:46 defjam joins (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643)
18:39:51 × defjam quits (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643) (Ping timeout: 256 seconds)
18:45:46 defjam joins (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643)
19:28:04 × defjam quits (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643) (Ping timeout: 268 seconds)
19:38:29 defjam joins (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643)
19:42:25 <haskellbridge> <N​exilva> Hello there, I don't know how to Haskell.
19:42:40 <haskellbridge> <N​exilva> ```hs
19:42:42 <haskellbridge> <N​exilva> , name `oneOf` ["Windows 10 P2V Original Clone 1 [Running] - Oracle VM VirtualBox : 1"] --> (doF . W.view <> doShift) "8:win-A"
19:42:43 <haskellbridge> <N​exilva> , name `oneOf` ["Windows 10 P2V Original Clone 1 [Running] - Oracle VM VirtualBox : 2"] --> (doF . W.view <> doShift) "8:win-B"
19:42:44 <haskellbridge> <N​exilva> ```
19:42:57 <haskellbridge> <N​exilva> I match Windows VM like this, then I send i to workspace as needed.
19:43:22 <haskellbridge> <N​exilva> Sometimes I makes copies/images/clones of the VM and then it's called `Windows 10 P2V Original Clone 1 (Before Update) [Running] - Oracle VM VirtualBox : 1`
19:44:15 <haskellbridge> <N​exilva> I don't want to have to edit the Xmonad config each time. So how can I match this properly: `Windows 10 P2V Original Clone <whatever text here> - Oracle VM VirtualBox : 1`
19:44:33 <haskellbridge> <N​exilva> That way It will always work on all `Windows 10 P2V Original Clone` machines.
20:06:45 <geekosaur> what is `name`? (and why use `oneOf` with a single element list?)
20:08:52 <geekosaur> (our matchers are: title, appName, className)
20:11:59 <haskellbridge> <N​exilva> https://matrix-client.matrix.org//b8f79778/Screenshot_20240405_141150.png
20:12:08 <haskellbridge> <N​exilva> Rest of my code was like that so I just copied the oneOf over.
20:13:01 <haskellbridge> <N​exilva> https://xmonad.org/INSTALL.html <- following directions here to install xmonad 18 and I get error:
20:13:23 <haskellbridge> <N​exilva> https://bpa.st/DHFA
20:13:45 <haskellbridge> <N​exilva> I have all the development libs installed like libxft-dev etc.
20:23:07 <geekosaur> xproto should be part of the X11 core development stuff. I don't know how brew has that set up
20:24:07 <haskellbridge> <N​exilva> I'm on Ubuntu 22.04. I have built xmonad 17 in the past using those instructions.
20:24:19 <haskellbridge> <N​exilva> I have all the dev libs install and all the required pakckages
20:24:41 <geekosaur> you have a pkg-config from linuxbrew
20:25:01 <geekosaur> instead of the one from ubuntu
20:26:26 <geekosaur> x11proto-dev: /usr/share/pkgconfig/xproto.pc
20:27:15 <haskellbridge> <N​exilva> Yes I was using both
20:27:22 <haskellbridge> <N​exilva> I tried both as I did locate on the file
20:27:27 <haskellbridge> <N​exilva> ```
20:27:27 <haskellbridge> <N​exilva> $ export PKG_CONFIG_PATH=/usr/share/pkgconfig/xproto.pc
20:27:28 <haskellbridge> <N​exilva> stoned@stoned-desktop - ~/.config/xmonad - -
20:27:30 <haskellbridge> <N​exilva> $ stack install
20:27:31 <haskellbridge> <N​exilva> X11-xft > configure
20:27:32 <haskellbridge> <N​exilva> X11-xft > Configuring X11-xft-0.3.4...
20:27:34 <haskellbridge> <N​exilva> X11-xft > Error: Cabal-simple_6HauvNHV_3.10.1.0_ghc-9.6.4: The pkg-config package 'xft'
20:27:35 <haskellbridge> <N​exilva> X11-xft > is required but it could not be found.
20:27:36 <haskellbridge> <N​exilva> X11-xft >
20:27:38 <haskellbridge> <N​exilva> Progress 1/2
20:27:39 <haskellbridge> <N​exilva> Error: [S-7282]
20:27:40 <haskellbridge> <N​exilva> Stack failed to execute the build plan.
20:27:41 <haskellbridge> <N​exilva>
20:27:43 <haskellbridge> <N​exilva> While executing the build plan, Stack encountered the error:
20:27:44 <haskellbridge> <N​exilva>
20:27:45 <haskellbridge> <N​exilva> [S-7011]
20:27:47 <haskellbridge> <N​exilva> While building package X11-xft-0.3.4 (scroll up to its section to see the error) using:
20:27:48 <haskellbridge> <N​exilva> /home/stoned/.stack/setup-exe-cache/x86_64-linux-tinfo6/Cabal-simple_6HauvNHV_3.10.1.0_ghc-9.6.4 --verbose=1 --builddir=.stack-work/dist/x86_64-linux-tinfo6/ghc-9.6.4 configure --with-ghc=/home/stoned/.stack/programs/x86_64-linux/ghc-tinfo6-9.6.4/bin/ghc-9.6.4 --with-ghc-pkg=/home/stoned/.stack/programs/x86_64-linux/ghc-tinfo6-9.6.4/bin/ghc-pkg-9.6.4 --user --package-db=clear
20:27:48 <haskellbridge> --package-d…
20:27:49 <haskellbridge> <N​exilva> b=global --package-db=/home/stoned/.stack/snapshots/x86_64-linux-tinfo6/716003aaa50e6615e9ad048198d99e65e118fd27c79961f02d5b7986b6c68e28/9.6.4/pkgdb --libdir=/home/stoned/.stack/snapshots/x86_64-linux-tinfo6/716003aaa50e6615e9ad048198d99e65e118fd27c79961f02d5b7986b6c68e28/9.6.4/lib
20:27:49 <haskellbridge> --bindir=/home/stoned/.stack/snapshots/x86_64-linux-tinfo6/716003aaa50e6615e9ad048198d99e65e118fd27c79961f02d5b798…
20:27:51 <haskellbridge> <N​exilva> 6b6c68e28/9.6.4/bin --datadir=/home/stoned/.stack/snapshots/x86_64-linux-tinfo6/716003aaa50e6615e9ad048198d99e65e118fd27c79961f02d5b7986b6c68e28/9.6.4/share --libexecdir=/home/stoned/.stack/snapshots/x86_64-linux-tinfo6/716003aaa50e6615e9ad048198d99e65e118fd27c79961f02d5b7986b6c68e28/9.6.4/libexec
20:27:51 <haskellbridge> --sysconfdir=/home/stoned/.stack/snapshots/x86_64-linux-tinfo6/716003aaa50e6615e9ad048198d99e65e11…
20:27:52 <haskellbridge> <N​exilva> 8fd27c79961f02d5b7986b6c68e28/9.6.4/etc --docdir=/home/stoned/.stack/snapshots/x86_64-linux-tinfo6/716003aaa50e6615e9ad048198d99e65e118fd27c79961f02d5b7986b6c68e28/9.6.4/doc/X11-xft-0.3.4 --htmldir=/home/stoned/.stack/snapshots/x86_64-linux-tinfo6/716003aaa50e6615e9ad048198d99e65e118fd27c79961f02d5b7986b6c68e28/9.6.4/doc/X11-xft-0.3.4
20:27:52 <haskellbridge> --haddockdir=/home/stoned/.stack/snapshots/x86_64-linux-tinf…
20:27:53 <haskellbridge> <N​exilva> o6/716003aaa50e6615e9ad048198d99e65e118fd27c79961f02d5b7986b6c68e28/9.6.4/doc/X11-xft-0.3.4 --dependency=X11=X11-1.10.3-Grb6PTWQzPbIodPMMce4DA --dependency=base=base-4.18.2.0 --dependency=utf8-string=utf8-string-1.0.2-FimbYq1wIkv3u9JmaBWYAg -f-pedantic --exact-configuration --ghc-option=-fhide-source-paths
20:27:53 × defjam quits (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643) (Ping timeout: 268 seconds)
20:27:54 <haskellbridge> <N​exilva> Process exited with code: ExitFailure 1
20:27:56 <haskellbridge> <N​exilva> ```
20:28:39 <geekosaur> that's not how PKG_CONFIG_PATH works; it's a colon-separated list of directories, not files
20:28:56 <haskellbridge> <N​exilva> Ok
20:29:20 <haskellbridge> <N​exilva> There was no PKG_CONFIG_PATH set on my pc I ahd to export it
20:29:27 <geekosaur> and if you have used linuxbrew for anything then you probably need both its path and ubuntu's (and I give you no guarantees about cross-compatibility)
20:29:28 <haskellbridge> <N​exilva> export PKG_CONFIG_PATH=/usr/share/pkgconfig
20:29:35 <haskellbridge> <N​exilva> I have no idea what linuxbrew is
20:29:39 <geekosaur> right, that one's the default
20:30:12 <geekosaur> X11-xft > '/home/linuxbrew/.linuxbrew/bin/pkg-config' exited with an error:
20:31:04 <geekosaur> from your earlier bpaste
20:31:17 <geekosaur> that is not present on a normal Ubuntu install
20:31:19 <haskellbridge> <N​exilva> Ok
20:31:25 <haskellbridge> <N​exilva> But I have no idea what the hell is goin gon
20:31:33 <haskellbridge> <N​exilva> What is this linux brew and why do I ahve it?
20:31:44 <haskellbridge> <N​exilva> And how do I just build xmoand again
20:31:59 <geekosaur> I have no idea why you have it
20:32:26 <haskellbridge> <N​exilva> I exported the correct path to the pc file
20:32:28 <geekosaur> (I presume it's a Linux take on Homebrew for Macs, but have no idea why anyone would bother)
20:32:37 <haskellbridge> <N​exilva> Now it says the other mesage about xft not found
20:32:41 <geekosaur> you need the directory not the file
20:32:52 <geekosaur> if it works at all it would only see that one file and not the others
20:32:56 <haskellbridge> <N​exilva> Bro.
20:33:07 <haskellbridge> <N​exilva> export PKG_CONFIG_PATH=/usr/share/pkgconfig
20:33:15 <haskellbridge> <N​exilva> ```
20:33:16 <haskellbridge> <N​exilva> $ stack install
20:33:17 <haskellbridge> <N​exilva> X11-xft > configure
20:33:18 <haskellbridge> <N​exilva> X11-xft > Configuring X11-xft-0.3.4...
20:33:19 <haskellbridge> <N​exilva> X11-xft > Error: Cabal-simple_6HauvNHV_3.10.1.0_ghc-9.6.4: The pkg-config package 'xft'
20:33:21 <haskellbridge> <N​exilva> X11-xft > is required but it could not be found.
20:33:22 <haskellbridge> <N​exilva> X11-xft >
20:33:23 <haskellbridge> <N​exilva> Progress 1/2
20:33:25 <haskellbridge> <N​exilva> Error: [S-7282]
20:33:26 <haskellbridge> <N​exilva> Stack failed to execute the build plan.
20:33:27 <haskellbridge> <N​exilva>
20:33:29 <haskellbridge> <N​exilva> While executing the build plan, Stack encountered the error:
20:33:30 <haskellbridge> <N​exilva>
20:33:31 <haskellbridge> <N​exilva> [S-7011]
20:33:32 <haskellbridge> <N​exilva> While building package X11-xft-0.3.4 (scroll up to its section to see the error) using:
20:33:34 <haskellbridge> <N​exilva> /home/stoned/.stack/setup-exe-cache/x86_64-linux-tinfo6/Cabal-simple_6HauvNHV_3.10.1.0_ghc-9.6.4 --verbose=1 --builddir=.stack-work/dist/x86_64-linux-tinfo6/ghc-9.6.4 configure --with-ghc=/home/stoned/.stack/programs/x86_64-linux/ghc-tinfo6-9.6.4/bin/ghc-9.6.4 --with-ghc-pkg=/home/stoned/.stack/programs/x86_64-linux/ghc-tinfo6-9.6.4/bin/ghc-pkg-9.6.4 --user --package-db=clear
20:33:34 <haskellbridge> --package-d…
20:33:35 <haskellbridge> <N​exilva> b=global --package-db=/home/stoned/.stack/snapshots/x86_64-linux-tinfo6/716003aaa50e6615e9ad048198d99e65e118fd27c79961f02d5b7986b6c68e28/9.6.4/pkgdb --libdir=/home/stoned/.stack/snapshots/x86_64-linux-tinfo6/716003aaa50e6615e9ad048198d99e65e118fd27c79961f02d5b7986b6c68e28/9.6.4/lib
20:33:35 <haskellbridge> --bindir=/home/stoned/.stack/snapshots/x86_64-linux-tinfo6/716003aaa50e6615e9ad048198d99e65e118fd27c79961f02d5b798…
20:33:36 <haskellbridge> <N​exilva> 6b6c68e28/9.6.4/bin --datadir=/home/stoned/.stack/snapshots/x86_64-linux-tinfo6/716003aaa50e6615e9ad048198d99e65e118fd27c79961f02d5b7986b6c68e28/9.6.4/share --libexecdir=/home/stoned/.stack/snapshots/x86_64-linux-tinfo6/716003aaa50e6615e9ad048198d99e65e118fd27c79961f02d5b7986b6c68e28/9.6.4/libexec
20:33:36 <haskellbridge> --sysconfdir=/home/stoned/.stack/snapshots/x86_64-linux-tinfo6/716003aaa50e6615e9ad048198d99e65e11…
20:33:38 <haskellbridge> <N​exilva> 8fd27c79961f02d5b7986b6c68e28/9.6.4/etc --docdir=/home/stoned/.stack/snapshots/x86_64-linux-tinfo6/716003aaa50e6615e9ad048198d99e65e118fd27c79961f02d5b7986b6c68e28/9.6.4/doc/X11-xft-0.3.4 --htmldir=/home/stoned/.stack/snapshots/x86_64-linux-tinfo6/716003aaa50e6615e9ad048198d99e65e118fd27c79961f02d5b7986b6c68e28/9.6.4/doc/X11-xft-0.3.4
20:33:38 <haskellbridge> --haddockdir=/home/stoned/.stack/snapshots/x86_64-linux-tinf…
20:33:39 <haskellbridge> <N​exilva> o6/716003aaa50e6615e9ad048198d99e65e118fd27c79961f02d5b7986b6c68e28/9.6.4/doc/X11-xft-0.3.4 --dependency=X11=X11-1.10.3-Grb6PTWQzPbIodPMMce4DA --dependency=base=base-4.18.2.0 --dependency=utf8-string=utf8-string-1.0.2-FimbYq1wIkv3u9JmaBWYAg -f-pedantic --exact-configuration --ghc-option=-fhide-source-paths
20:33:40 <haskellbridge> <N​exilva> Process exited with code: ExitFailure 1
20:33:42 <haskellbridge> <N​exilva> ```
20:35:10 <geekosaur> hilfy «xmonad:hilfy-2023» ⁅xmonad-bsa⁆ Z$ dpkg -S $(find /usr -name xft.pc)
20:35:10 <geekosaur> libxft-dev:amd64: /usr/lib/x86_64-linux-gnu/pkgconfig/xft.pc
20:35:47 <geekosaur> so apparently you also need /usr/lib/x86_64-linux-gnu/pkgconfig in PKG_CONFIG_PATH
20:35:58 <haskellbridge> <N​exilva> Fucking ridiculous horse shit manure goddamn garbage I want to curse and swear I am so mad....
20:36:07 <haskellbridge> <N​exilva> I have no idea when/how I installed this brew bullshit
20:36:19 <haskellbridge> <N​exilva> But I unfuckinginstalled it and now stack install is continuing to find the libs
20:36:26 <haskellbridge> <N​exilva> No need to specify paths or export shit
20:36:28 <geekosaur> I suspect if you get rid of that linuxbrew thing and remove PKG)CONFIG_PATH from your environment it'll just work
20:36:35 <haskellbridge> <N​exilva> Goddamn what an asshole of a day. ☹️
20:36:35 <geekosaur> I have no idea how linuxbrew got there
20:36:44 <geekosaur> right
20:37:06 <haskellbridge> <N​exilva> Completed 2 action(s).
20:37:07 <haskellbridge> <N​exilva> Copying from /home/stoned/.config/xmonad/.stack-work/install/x86_64-linux-tinfo6/716003aaa50e6615e9ad048198d99e65e118fd27c79961f02d5b7986b6c68e28/9.6.4/bin/xmonad to /home/stoned/.local/bin/xmonad.
20:37:08 <haskellbridge> <N​exilva> Copied executables to /home/stoned/.local/bin/:
20:37:10 <haskellbridge> <N​exilva> * xmonad
20:37:36 defjam joins (~defjam@2a02:c7e:2807:b900:49d3:5be9:58b5:7643)
20:37:48 <haskellbridge> <N​exilva> Now when I try to compile xmonad.hs it complains about not finding any of the improts
20:38:25 <haskellbridge> <N​exilva> ```
20:38:26 <haskellbridge> <N​exilva> Deprecations detected while compiling xmonad config: /home/stoned/.config/xmonad/xmonad.hs
20:38:28 <haskellbridge> <N​exilva> $ stack build --silent --stack-yaml /home/stoned/.config/xmonad/stack.yaml
20:38:29 <haskellbridge> <N​exilva> $ stack ghc --stack-yaml /home/stoned/.config/xmonad/stack.yaml -- --make xmonad.hs -i -ilib -fforce-recomp -main-is main -v0 -outputdir /home/stoned/.cache/xmonad/build-x86_64-linux -o /home/stoned/.cache/xmonad/xmonad-x86_64-linux
20:38:30 <haskellbridge> <N​exilva> xmonad.hs:37:1: warning: [-Wdeprecations]
20:38:31 <haskellbridge> <N​exilva> Module ‘XMonad.Layout.Circle’ is deprecated:
20:38:33 <haskellbridge> <N​exilva> "Use XMonad.Layout.CircleEx instead"
20:38:34 <haskellbridge> <N​exilva> |
20:38:35 <haskellbridge> <N​exilva> 37 | import XMonad.Layout.Circle
20:38:37 <haskellbridge> <N​exilva> | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
20:38:38 <haskellbridge> <N​exilva> xmonad.hs:39:1: warning: [-Wdeprecations]
20:38:39 <haskellbridge> <N​exilva> Module ‘XMonad.Layout.Cross’ is deprecated:
20:38:41 <haskellbridge> <N​exilva> "Use XMonad.Layout.Circle or XMonad.Layout.ThreeColumn.ThreeColMid instead"
20:38:42 <haskellbridge> <N​exilva> |
20:38:43 <haskellbridge> <N​exilva> 39 | import XMonad.Layout.Cross
20:38:44 <haskellbridge> <N​exilva> | ^^^^^^^^^^^^^^^^^^^^^^^^^^
20:38:46 <haskellbridge> <N​exilva> xmonad.hs:78:1: warning: [-Wdeprecations]
20:38:47 <haskellbridge> <N​exilva> Module ‘XMonad.Util.Ungrab’ is deprecated:
20:38:48 <haskellbridge> <N​exilva> "Use XMonad.Operations.unGrab instead"
20:38:50 <haskellbridge> <N​exilva> |
20:38:51 <haskellbridge> <N​exilva> 78 | import XMonad.Util.Ungrab
20:38:52 <haskellbridge> <N​exilva> | ^^^^^^^^^^^^^^^^^^^^^^^^^
20:38:54 <haskellbridge> <N​exilva> xmonad.hs:242:13: warning: [GHC-68441] [-Wdeprecations]
20:38:55 <haskellbridge> <N​exilva> In the use of data constructor ‘Circle’
20:38:56 <haskellbridge> <N​exilva> (imported from XMonad.Layout.Circle):
20:38:57 <haskellbridge> <N​exilva> Deprecated: "Use XMonad.Layout.CircleEx instead"
20:38:59 <haskellbridge> <N​exilva> |
20:39:00 <haskellbridge> <N​exilva> 242 | ||| Circle
20:39:01 <haskellbridge> <N​exilva> | ^^^^^^
20:39:03 <haskellbridge> <N​exilva> xmonad.hs:243:13: warning: [GHC-68441] [-Wdeprecations]
20:39:04 <haskellbridge> <N​exilva> In the use of ‘simpleCross’ (imported from XMonad.Layout.Cross):
20:39:05 <geekosaur> right, those were deprecated in 0.18
20:39:05 <haskellbridge> <N​exilva> Sigh now this happy horseshit. ARGH!
20:39:21 <haskellbridge> <N​exilva> Sorry I didn't read the notes/release notes stuff
20:39:24 <geekosaur> they're still there for now, those are warnings that they'll be removed in a future release
20:39:39 <haskellbridge> <N​exilva> I don['t use circle or simplecross
20:39:43 <haskellbridge> <N​exilva> I wonder what ungrab was...
20:39:50 <haskellbridge> <N​exilva> I don't use circle or simplecross
20:39:54 <geekosaur> (Circle was extended, Cross is actually broken and it's suggesting an alternative, Ungrab was moved into the core)
20:40:04 <geekosaur> you use ungrab for screenshots
20:40:59 <geekosaur> xmonad keeps the keyboard grabbed when it runs something, because it can't know if what you ran is a function that wants to read more keys. if you launch a screen shooter, it doesn't like that
20:41:28 <geekosaur> so you do something like unGrab >> spawn "scrot …"
20:42:30 <haskellbridge> <N​exilva> Oh right ok
20:42:34 <haskellbridge> <N​exilva> Thank you
20:42:50 <haskellbridge> <N​exilva> I took out the imports and now it compiles.
20:43:14 <haskellbridge> <N​exilva> Don't use circle layout or simple cross, from years ago when I was checking them out.
20:43:22 <haskellbridge> <N​exilva> Right now I just need stuff to work
20:43:40 <haskellbridge> <N​exilva> So now, how do you suggest I do the matchig of the VMs
20:44:18 <haskellbridge> <N​exilva> I asked GPT and it says:
20:44:19 <haskellbridge> <N​exilva> ```
20:44:20 <haskellbridge> <N​exilva> import Text.Regex.Posix
20:44:21 <haskellbridge> <N​exilva> -- Function to extract the text between "Windows 10 P2V Original Clone" and "- Oracle VM VirtualBox : 1"
20:44:22 <haskellbridge> <N​exilva> extractCloneName :: String -> Maybe String
20:44:24 <haskellbridge> <N​exilva> extractCloneName s = case s =~ "Windows 10 P2V Original Clone (.*) - Oracle VM VirtualBox : 1" :: (String, String, String, [String]) of
20:44:25 <haskellbridge> <N​exilva> (_, _, _, [name]) -> Just name
20:44:26 <haskellbridge> <N​exilva> _ -> Nothing
20:44:28 <haskellbridge> <N​exilva> -- Define your Xmonad configuration
20:44:29 <haskellbridge> <N​exilva> myXmonadConfig = [
20:44:30 <haskellbridge> <N​exilva> , fmap (\n -> name `oneOf` [n]) (extractCloneName "Windows 10 P2V Original Clone") --> (doF . W.view <> doShift) "8:win-A"
20:44:32 <haskellbridge> <N​exilva> , fmap (\n -> name `oneOf` [n]) (extractCloneName "Windows 10 P2V Original Clone") --> (doF . W.view <> doShift) "8:win-B"
20:44:33 <haskellbridge> <N​exilva> -- Add more rules as needed
20:44:34 <haskellbridge> <N​exilva> ]
20:44:35 <haskellbridge> <N​exilva> ```
20:44:37 <haskellbridge> <N​exilva> Is GPT correct? I have no idea because I don't know haskell
20:44:52 <haskellbridge> <N​exilva> I can always tell in C++ or PHP or Js or other langs if GPT is right or not. But Haskell I don't even know.
20:48:00 <haskellbridge> <N​exilva> `, className =? "Oracle VM VirtualBox" <&&> fmap ("Windows 10 P2V Original Clone" `isPrefixOf`) title --> (doF . W.view <> doShift) "8:win-A"` Here's another thing it suggestd, but this one doesn't match the Window, as I run VM in dual screen mode (two virtual screens)
20:48:31 <haskellbridge> <N​exilva> Here is yet another proposed solution:
20:48:32 <haskellbridge> <N​exilva> ```
20:48:33 <haskellbridge> <N​exilva> import Text.Regex.Posix
20:48:35 <haskellbridge> <N​exilva> -- Define a function to match the window name using regular expressions
20:48:36 <haskellbridge> <N​exilva> matchesPattern :: String -> Bool
20:48:37 <haskellbridge> <N​exilva> matchesPattern s = s =~ "Windows 10 P2V Original Clone [^ ]+ - Oracle VM VirtualBox : [0-9]+"
20:48:39 <haskellbridge> <N​exilva> -- Use the matchesPattern function in your Xmonad configuration
20:48:40 <haskellbridge> <N​exilva> , name `matches` matchesPattern --> (doF . W.view <> doShift) "8:win-A"
20:48:41 <haskellbridge> <N​exilva> ```
20:49:00 <haskellbridge> <N​exilva> I could try it.
20:49:28 <haskellbridge> <N​exilva> ```
20:49:29 <haskellbridge> <N​exilva> -- Sort Virtual Machines into separate workspaces
20:49:31 <haskellbridge> <N​exilva> , className =? "VirtualBox Manager" <&&> stringProperty "WM_NAME" =? "Windows 10 P2V Original Clone .* - Oracle VM VirtualBox : 1" --> (doF . W.view <> doShift) "8:win-A"
20:49:32 <haskellbridge> <N​exilva> , className =? "VirtualBox Manager" <&&> stringProperty "WM_NAME" =? "Windows 10 P2V Original Clone .* - Oracle VM VirtualBox : 2" --> (doF . W.view <> doShift) "8:win-B"
20:49:33 <haskellbridge> <N​exilva> ```
20:49:34 <haskellbridge> <N​exilva> It also suggested this
20:50:20 <haskellbridge> <N​exilva> If it was another language I could easily tell whether the code is good or not. Haskell I can't tell and somehow I make do
20:55:09 <geekosaur> `matches` won't work because it needs to be fmapped in
20:55:47 <geekosaur> also `stringProperty "WM_NAME"` is `title`
20:57:53 <geekosaur> className =? "VirtualBox Manager" <&&> title ^? "Windows 10 P2V Original Clone " <&&> title ~? " Oracle VM VirtualBox : 2" --> (doF . W.view <> doShift) "8:win-A"
20:58:39 <geekosaur> import XMonad.Hooks.ManageHelpers for ^? and $? (sorry I meant $? instead of ~?, IRC doesn't do edits)
21:01:09 <haskellbridge> <N​exilva> So className and then matching title.
21:02:29 <haskellbridge> <N​exilva> `, className =? "VirtualBox Manager" <&&> title ^? "Windows 10 P2V Original Clone " <&&> title $? " Oracle VM VirtualBox : 1" --> (doF . W.view <> doShift) "8:win-A"`
21:02:29 <haskellbridge> <N​exilva> `, className =? "VirtualBox Manager" <&&> title ^? "Windows 10 P2V Original Clone " <&&> title $? " Oracle VM VirtualBox : 2" --> (doF . W.view <> doShift) "8:win-B`
21:02:58 <geekosaur> right
21:03:18 <haskellbridge> <N​exilva> ```
21:03:19 <haskellbridge> <N​exilva> xmonad.hs:87:22: error: [GHC-88464]
21:03:20 <haskellbridge> <N​exilva> Variable not in scope: (=~) :: String -> String -> Bool
21:03:21 <haskellbridge> <N​exilva> Suggested fix:
21:03:23 <haskellbridge> <N​exilva> Perhaps use one of these:
21:03:24 <haskellbridge> <N​exilva> ‘==’ (imported from Prelude), ‘=?’ (imported from XMonad)
21:03:25 <haskellbridge> <N​exilva> |
21:03:26 <haskellbridge> <N​exilva> 87 | matchesPattern s = s =~ "Windows 10 P2V Original Clone [^ ]+ - Oracle VM VirtualBox : [0-9]+"
21:03:28 <haskellbridge> <N​exilva> ```
21:04:27 <geekosaur> you're not using that and you would have to import Text.Regex.Posix to get that operator
21:05:19 <haskellbridge> <N​exilva> Ok it compiles now
21:05:42 <haskellbridge> <N​exilva> $ xmonad --recompile
21:05:43 <haskellbridge> <N​exilva> XMonad will use stack ghc --stack-yaml "/home/stoned/.config/xmonad/stack.yaml" to recompile.
21:05:44 <haskellbridge> <N​exilva> XMonad recompiling (forced).
21:05:46 <haskellbridge> <N​exilva> XMonad recompilation process exited with success!
21:06:14 <geekosaur> hm, and it wouldn't do what you wanted anyway because you want to move it to a different ws based on the number, but that pattern just matches any number
21:06:40 <haskellbridge> <N​exilva> I have no idea what is happening 🙂
21:06:52 <haskellbridge> <N​exilva> So I launched the VM and like you said it didn't work.
21:07:23 <geekosaur> no, I was talking about matchesPattern which you I think aren't using (and if you are, it's doing the wrong thing)
21:07:36 <haskellbridge> <N​exilva> ```
21:07:37 <haskellbridge> <N​exilva> -- Sort Virtual Machines into separate workspaces
21:07:39 <haskellbridge> <N​exilva> , className =? "VirtualBox Manager" <&&> title ^? "Windows 10 P2V Original Clone " <&&> title $? " Oracle VM VirtualBox : 1" --> (doF . W.view <> doShift) "8:win-A"
21:07:40 <haskellbridge> <N​exilva> , className =? "VirtualBox Manager" <&&> title ^? "Windows 10 P2V Original Clone " <&&> title $? " Oracle VM VirtualBox : 2" --> (doF . W.view <> doShift) "8:win-B"
21:07:41 <haskellbridge> <N​exilva> ```
21:07:43 <haskellbridge> <N​exilva> I'm using this, what you said
21:07:58 <haskellbridge> <N​exilva> It compiles, but doesn't shift the VM windows
21:08:11 <geekosaur> I wonder if the className is right
21:08:42 <geekosaur> vbox doesn't want to work on my system for some reason so I can't check
21:08:56 <haskellbridge> <N​exilva> ```
21:08:57 <haskellbridge> <N​exilva> WM_NAME(STRING) = "Windows 10 P2V Original Clone 1 (Working, before update.) [Running] - Oracle VM VirtualBox : 1"
21:08:58 <haskellbridge> <N​exilva> _NET_WM_NAME(UTF8_STRING) = "Windows 10 P2V Original Clone 1 (Working, before update.) [Running] - Oracle VM VirtualBox : 1"
21:08:59 <haskellbridge> <N​exilva> ```
21:09:11 <geekosaur> so get rid of the `className =? "VirtualBox Manager" <&&> ` part
21:09:24 <haskellbridge> <N​exilva> `Windows 10 P2V Original Clone ... - Oracle VM VirtualBox : 1` to 8:win-A`
21:09:24 <haskellbridge> <N​exilva> `Windows 10 P2V Original Clone ... - Oracle VM VirtualBox : 1` to 8:win-B`
21:09:25 <haskellbridge> <N​exilva> How do to this?
21:09:27 <haskellbridge> <N​exilva> `Windows 10 P2V Original Clone ... - Oracle VM VirtualBox : 1` to 8:win-A`
21:09:28 <haskellbridge> <N​exilva> `Windows 10 P2V Original Clone ... - Oracle VM VirtualBox : 1` to 8:win-B`
21:09:29 <haskellbridge> <N​exilva> How do to this?
21:09:30 <haskellbridge> <N​exilva> `Windows 10 P2V Original Clone ... - Oracle VM VirtualBox : 1` to 8:win-A\`
21:09:32 <haskellbridge> <N​exilva> `Windows 10 P2V Original Clone ... - Oracle VM VirtualBox : 2` to 8:win-B\`
21:09:33 <haskellbridge> <N​exilva> How do to this?
21:09:35 <haskellbridge> <N​exilva> `Windows 10 P2V Original Clone ... - Oracle VM VirtualBox : 1` to 8:win-A\`
21:09:36 <haskellbridge> <N​exilva> `Windows 10 P2V Original Clone ... - Oracle VM VirtualBox : 2` to 8:win-B\`
21:09:37 <haskellbridge> <N​exilva> How do to this?
21:11:53 <geekosaur> the difference between the code you originally had and my suggestion is the className part, so remove that as I said above
21:12:06 <geekosaur> presumably it's the wrong className
21:13:13 <haskellbridge> <N​exilva> WM_CLASS(STRING) = "VirtualBox Machine", "VirtualBox Machine"
21:13:51 <geekosaur> so change "VirtualBox Manager" to "VirtualBox Machine"
21:14:07 <geekosaur> (I think you said you got that from ChatGPT? it was wrong)
21:15:22 <haskellbridge> <N​exilva> Thank you
21:15:28 <haskellbridge> <N​exilva> I didn't use any GPT stuff
21:15:38 <haskellbridge> <N​exilva> I used it to learn how to install the text regex package
21:16:00 <haskellbridge> <N​exilva> But I used your suggestions. I trust you far more over the years than GPT
21:16:11 <haskellbridge> <N​exilva> It's working now.
23:10:15 × mekeor quits (~user@2001:a61:10db:ae01:ee8e:7029:dae7:575c) (Quit: towards emacs as interface to a cybernetic council communism)
23:17:56 <haskellbridge> <N​exilva> "VirtualBox Manager" is moved to desktop 5, and "VirtualBox Machine" to 8-A/B
23:18:21 <haskellbridge> <N​exilva> "VirtualBox Manager" is the main Vbox window which lists all the VMs and allows you to configure them
23:18:59 <geekosaur> yes
23:19:25 <geekosaur> I had been wondering why you were matching against "VirtualBox Manager", tbh
23:19:36 <haskellbridge> <N​exilva> I didn't realize the name changed
23:19:43 <haskellbridge> <N​exilva> I had to do xprop to see the difference
23:21:53 <geekosaur> they're actually misusing it, className should be VirtualBox, appName should be virtualBox, role should be manager vs. machine
23:22:05 <geekosaur> but nobody cares about ICCCM any more
23:22:09 mekeor joins (~user@2001:a61:10db:ae01:ee8e:7029:dae7:575c)
23:35:05 × mekeor quits (~user@2001:a61:10db:ae01:ee8e:7029:dae7:575c) (Quit: towards emacs as interface to a cybernetic council communism)

All times are in UTC on 2024-04-05.