Home liberachat/#xmonad: Logs Calendar

Logs on 2022-03-12 (liberachat/#xmonad)

00:04:27 <ArshiaAghaei[m]> <geekosaur> "do you remember having to..." <- Yeah
00:04:48 <ArshiaAghaei[m]> Do I have to set a PATH in a xmonad file?
00:05:30 <geekosaur> that is one way to do it. another is to use a wrapper script to start it, which reads your shell dotfiles before exec-ing xmonad
00:08:38 × seschwar quits (~seschwar@user/seschwar) (Quit: :wq)
00:15:37 × mc47 quits (~mc47@xmonad/TheMC47) (Remote host closed the connection)
00:54:59 mvk joins (~mvk@2607:fea8:5cc3:7e00::45ee)
01:13:42 × jludwig quits (~justin@user/jludwig) (Quit: ZNC - https://znc.in)
01:14:36 jludwig joins (~justin@user/jludwig)
01:17:52 × jludwig quits (~justin@user/jludwig) (Client Quit)
02:02:21 × geekosaur quits (~geekosaur@xmonad/geekosaur) (Ping timeout: 272 seconds)
02:04:22 geekosaur joins (~geekosaur@xmonad/geekosaur)
02:09:04 jludwig joins (~justin@user/jludwig)
03:03:07 × banc quits (banc@gateway/vpn/airvpn/banc) (Ping timeout: 256 seconds)
03:09:01 × td_ quits (~td@94.134.91.18) (Ping timeout: 256 seconds)
03:10:30 td_ joins (~td@muedsl-82-207-238-055.citykom.de)
03:23:09 banc joins (banc@gateway/vpn/airvpn/banc)
03:41:09 × jao quits (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) (Ping timeout: 272 seconds)
03:57:00 × steve__ quits (~steve@ool-182c2b80.dyn.optonline.net) (Ping timeout: 240 seconds)
03:58:12 Guest28 joins (~Guest28@207.248.198.65)
04:07:07 × Guest28 quits (~Guest28@207.248.198.65) (Quit: Client closed)
05:06:12 × mvk quits (~mvk@2607:fea8:5cc3:7e00::45ee) (Ping timeout: 240 seconds)
05:19:28 × amir quits (sid22336@user/amir) (Read error: Connection reset by peer)
05:19:28 × mudri quits (sid317655@id-317655.helmsley.irccloud.com) (Read error: Connection reset by peer)
05:19:38 amir joins (sid22336@user/amir)
05:19:38 mudri joins (sid317655@id-317655.helmsley.irccloud.com)
05:20:07 × lazycat quits (~lazycat@user/lazycat) (Quit: ZNC - https://znc.in)
05:20:23 lazycat joins (~lazycat@user/lazycat)
05:23:08 bfrk joins (~Thunderbi@2001:9e8:344:9d00:f16d:efdc:8992:ac2)
05:45:20 × geekosaur quits (~geekosaur@xmonad/geekosaur) (Remote host closed the connection)
05:57:23 geekosaur joins (~geekosaur@xmonad/geekosaur)
07:42:37 × scardinal quits (~supreme@customer-212-237-101-39.ip4.gigabit.dk) (Ping timeout: 240 seconds)
07:44:27 scardinal joins (~supreme@customer-212-237-101-39.ip4.gigabit.dk)
07:52:02 × scardinal quits (~supreme@customer-212-237-101-39.ip4.gigabit.dk) (Ping timeout: 268 seconds)
07:53:32 scardinal joins (~supreme@customer-212-237-101-39.ip4.gigabit.dk)
08:05:53 × td_ quits (~td@muedsl-82-207-238-055.citykom.de) (Ping timeout: 272 seconds)
08:07:27 td_ joins (~td@muedsl-82-207-238-211.citykom.de)
08:56:13 Drishal[m] sent a haskell code block: https://libera.ems.host/_matrix/media/r0/download/libera.chat/d416fee5a36783e4e5a7ae35dc6bf55e06533fde
08:56:57 <Drishal[m]> cause I am getting the errors... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/74083aa21634807389cddf54f919a282d5dc0989)
08:58:28 <Drishal[m]> * ```haskell... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/711f41c05e9ac3e5e2f3d53cd627984afbfc9c8f)
08:59:51 <Drishal[m]> aah nvm seems like I had to `import XMonad.Layout.MultiToggle.Instances` as well apart from `import XMonad.Layout.MultiToggle`
09:00:15 × liskin[m] quits (~liskinmat@2001:470:69fc:105::768) (Quit: You have been kicked for being idle)
09:04:06 Drishal[m] uploaded an image: (144KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/dfoaZgUSKLXviOkzadCigWKK/image.png >
09:04:10 <Drishal[m]> but then it fullscreens in a strange way
09:05:05 <Drishal[m]> plus it does not even send fullscreen message to the applications 👀
09:05:10 Drishal[m] uploaded an image: (122KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/GpCwtPlwKgOQQBDhQzahLrnl/image.png >
09:11:27 seschwar joins (~seschwar@user/seschwar)
09:16:09 <Drishal[m]> any help/hints what is going wrong?
10:45:20 Guest0 joins (~Guest0@APN-123-251-165-gprs.simobil.net)
10:47:51 <Guest0> Hello everyone. I am a linux desktop noob and I am trying to get xmonad to work with xmobar. The problem I have is I can not seem to get xmobar to show itself. I can run the xmobar program and it seems to run fine, but the bar itself is not visible on my screen. My xmonad config is very simple: "main :: IO ()
10:47:51 <Guest0> main = xmonad =<< xmobar def
10:47:52 <Guest0>     { modMask = mod4Mask -- Rebind Mod to the Super key
10:47:52 <Guest0>     }". Can anyone help me debug this?
10:48:03 liskin[m] joins (~liskinmat@2001:470:69fc:105::768)
10:53:04 <Guest0> Ok nevermind, I think I am onto something
10:53:07 × Guest0 quits (~Guest0@APN-123-251-165-gprs.simobil.net) (Quit: Client closed)
10:58:47 mc47 joins (~mc47@xmonad/TheMC47)
12:23:36 <davve> guess he worked it out
12:52:02 × bfrk quits (~Thunderbi@2001:9e8:344:9d00:f16d:efdc:8992:ac2) (Ping timeout: 260 seconds)
12:54:05 <Drishal[m]> <davve> "guess he worked it out" <- who?
12:54:27 <Drishal[m]> <davve> "guess he worked it out" <- no?
12:54:27 <Drishal[m]> I am still stuck lmao
12:59:08 <geekosaur> I think that was Guest0
12:59:15 <geekosaur> who left immediately
13:00:05 <geekosaur> I'm not sure how much I trust fullscreening with MultiToggle, in particular it hasn't gotten the recent fullscreen fixes to EwmhDesktops
13:01:28 <geekosaur> and the window manager doesn't send fullscreen messages to applications (more correctly apps don't usually check for the window manager applying the fullscreen atom to their windows)
13:08:14 <davve> i use ewmh thingy with polybar
13:08:16 <davve> works great
13:08:39 <davve> geekosaur: which version of xmobar has those fixes?
13:09:06 <geekosaur> not xmobar, xmonad
13:09:16 <davve> ah sorry, meant xmonad
13:09:34 <geekosaur> we reworked ewmh fullscreen supportfor0.17.0, but it was the EwmhDesktops stuff
13:09:47 <davve> i might want that
13:09:51 <geekosaur> everyone's afraid to touch the HList foo in MultiToggle :)
13:09:56 <davve> fullscreen isnt perfect with 0.15 that im on
13:10:51 <davve> the initial fullscreen works, but then i have to cycle the windwos in fullscreen a few times for it to hide the borders again
13:10:56 <davve> if i unfocus it
13:11:06 <davve> hoping that might work a bit better :)
13:11:21 <davve> using EwmhDesktops I think
13:12:38 <davve> 0.15-4build2
13:12:45 <davve> the latest with my default package manager it seems
13:13:11 <davve> aww, theres no xmonad package on snap
13:13:11 <geekosaur> right, you need 0.17.0 for the EwmhFullscreen fixes that make us fully compliant with EWMH
13:13:28 <davve> nice
13:13:35 <geekosaur> most distros package stackage, but xmonad 0.17 is only in nightly at present
13:13:45 <geekosaur> need to use stack with the nightly resolver, or cabal
13:13:57 <davve> ah. ill try cabal. thanks
13:15:21 <davve> building 0.17.0
15:58:10 <Drishal[m]> <geekosaur> "I'm not sure how much I trust..." <- btw what are some good alternatives to toggle fullscreen with also sending fullscreen signal to apps if available?
16:00:05 <geekosaur> apps that are capable will see the EWMH fullscreen atom in _NET_WM_STATE
16:00:11 × liskin[m] quits (~liskinmat@2001:470:69fc:105::768) (Quit: You have been kicked for being idle)
16:00:22 <geekosaur> this requires xmonad 0.17.0 for it to be advertised properly
16:00:28 <Drishal[m]> geekosaur: so what is the best way to toggle fullscreen in xmonad?
16:00:36 <Drishal[m]> say using M-f keybind
16:00:39 liskin[m] joins (~liskinmat@2001:470:69fc:105::768)
16:01:08 <geekosaur> you don't usually do it from xmonad, you doit from the application because it's the app that knows how to do fullscreen for itself
16:01:53 <Drishal[m]> geekosaur: aah
16:01:54 <geekosaur> for example, if we force fullscreen from xmonad, firefox will fill the screen but won't move its location bar offscreen
16:02:06 <Drishal[m]> hmm
16:02:25 <Drishal[m]> so basically there is no way to switch to full layout+toggle app to fullscreen
16:02:31 <geekosaur> (which I didn;t even know about until I tried it the other day; I use chrome)
16:03:21 <geekosaur> right, apps don't accept outside commands to fullscreen themselves forthe mostpart, they expect to doit themselves. and EWMH (and Wayland) are designed that way, with the app instead of the window manager controlling things
16:04:14 <Drishal[m]> geekosaur: on some window managers like leftwm you can also fullscreen iirc
16:04:31 <Drishal[m]> > <@geekosaur:libera.chat> right, apps don't accept outside commands to fullscreen themselves forthe mostpart, they expect to doit themselves. and EWMH (and Wayland) are designed that way, with the app instead of the window manager controlling things
16:04:31 <Drishal[m]> * on some window managers like leftwm you can also fullscreen + let the app use fullscreen mode if available
16:04:32 <lambdabot> <hint>:1:1: error: parse error on input ‘<@’
16:04:47 <geekosaur> sure, and you can force fullscreen from xmonad too., it just doesn't guarantee the appwill treat itself as fullscreen as oppposed to maximized
16:05:17 <geekosaur> the app has to watch for the _NET_WM_STATE_FULLSCREEN atom being set on its window
16:05:32 <geekosaur> we set this properly in 0.17.0; it's still on the appto recognize it
16:37:28 × seschwar quits (~seschwar@user/seschwar) (Quit: :wq)
16:37:49 seschwar joins (~seschwar@user/seschwar)
16:58:44 × mc47 quits (~mc47@xmonad/TheMC47) (Remote host closed the connection)
17:35:20 × seschwar quits (~seschwar@user/seschwar) (Quit: :wq)
17:35:48 twiclo joins (~twiclo@mail.twil.cx)
17:37:28 × theproffesor quits (~theproffe@c-24-9-30-127.hsd1.co.comcast.net) (*.net *.split)
17:37:28 × haasn quits (~nand@haasn.dev) (*.net *.split)
17:37:28 × nomadxx3 quits (~lanomadx@69.167.38.254) (*.net *.split)
17:37:28 × ml| quits (~ml|@user/ml/x-5298235) (*.net *.split)
17:38:20 jao joins (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net)
17:42:57 theproffesor joins (~theproffe@c-24-9-30-127.hsd1.co.comcast.net)
17:42:57 haasn joins (~nand@haasn.dev)
17:42:57 nomadxx3 joins (~lanomadx@69.167.38.254)
17:42:57 ml| joins (~ml|@user/ml/x-5298235)
17:45:06 seschwar joins (~seschwar@user/seschwar)
17:45:36 × twiclo quits (~twiclo@mail.twil.cx) (Quit: WeeChat 3.4)
18:02:17 bfrk joins (~Thunderbi@i59F7ABA8.versanet.de)
18:03:07 × thaumavorio quits (~thaumavor@thaumavor.io) (Quit: ZNC 1.8.2 - https://znc.in)
18:03:25 thaumavorio joins (~thaumavor@thaumavor.io)
18:13:18 <ArshiaAghaei[m]> <geekosaur> "that is one way to do it..." <- Where do I set the PATH?
18:13:25 <ArshiaAghaei[m]> Something like xmonadrc?
18:14:38 <geekosaur> use https://downloads.haskell.org/ghc/8.10.7/docs/html/libraries/base-4.14.3.0/System-Environment.html#v:setEnv in main, before the xmonad combinator
18:16:50 <geekosaur> https://paste.tomsmeding.com/yXWpQrKC
18:16:59 <geekosaur> sorry, forgot the import
18:17:28 <geekosaur> https://paste.tomsmeding.com/tL2FVxei
18:27:34 bla joins (~bla@79.191.74.122.ipv4.supernova.orange.pl)
18:33:13 <ArshiaAghaei[m]> <geekosaur> "https://paste.tomsmeding.com/..." <- Do I need to do PATH = "$PATH:NewEntry"
18:33:19 <ArshiaAghaei[m]> Or it will just add it to path
18:34:05 <geekosaur> I would just set the whole PATH. it does not append and you can't use `$PATH`;xmonad isnot a shell
18:35:43 <ArshiaAghaei[m]> geekosaur: Fair enough
18:36:54 <geekosaur> https://paste.tomsmeding.com/Du0gzHwd
18:42:50 <ArshiaAghaei[m]> <geekosaur> "https://paste.tomsmeding.com/..." <- This appends $PATH to XMonad path?
18:43:50 <geekosaur> that appends the string you specify to XMonad's $PATH, yes
18:45:41 <ArshiaAghaei[m]> Ty, you've been a great help
18:49:11 <geekosaur> I preferred using a wrapper script instead;p that way I could source my shell dotfiles instead of duplicating the PATH setting, since having to remember to change it in multiple places is annoying
18:58:57 × bfrk quits (~Thunderbi@i59F7ABA8.versanet.de) (Ping timeout: 250 seconds)
19:06:37 bfrk joins (~Thunderbi@i59F7ABA8.versanet.de)
19:10:54 × bfrk quits (~Thunderbi@i59F7ABA8.versanet.de) (Ping timeout: 252 seconds)
19:13:32 mc47 joins (~mc47@xmonad/TheMC47)
20:02:42 bfrk joins (~Thunderbi@i59F7ABA8.versanet.de)
20:33:50 <ArshiaAghaei[m]> <geekosaur> "I preferred using a wrapper..." <- How do I do that?
20:37:14 <fizzie> What I do is, have a ~/.xsession file that sets PATH, various other things, and in the end `exec`s Xmonad; then I just pick the "Custom Xsession" (or whatever it's called) option from the display manager.
20:38:57 <fizzie> (Although some of these newfangled things don't *have* that option and require you to come up with your own .desktop file.)
20:42:37 <geekosaur> yeh, in my case I just point my .desktop file to a script instead of to xmonad directly. https://github.com/geekosaur/xmonad.hs/tree/skkukuk look at start-xmonad and start-xmonad.desktop, but in your case you'll want to source .profile or .bash_profile directly (I split out $PATH and a few other things into .bsa-common, see https://github.com/geekosaur/dotty for the sordid details)
21:04:02 twiclo joins (~twiclo@mail.twil.cx)
21:06:43 Guest1959 joins (~Guest19@2600:1700:9490:79f0::1c)
21:09:11 × Guest1959 quits (~Guest19@2600:1700:9490:79f0::1c) (Client Quit)
21:49:20 <ArshiaAghaei[m]> I still get that issue
21:50:00 ArshiaAghaei[m] sent a hs code block: https://libera.ems.host/_matrix/media/r0/download/libera.chat/4efa9382ebcc4574d643b7e8b2f78205278fd4f7
22:02:48 × mc47 quits (~mc47@xmonad/TheMC47) (Remote host closed the connection)
22:07:49 × coldpress quits (~coldpress@128.9.105.34.bc.googleusercontent.com) (Ping timeout: 240 seconds)
23:59:33 × bfrk quits (~Thunderbi@i59F7ABA8.versanet.de) (Read error: No route to host)
23:59:49 bfrk joins (~Thunderbi@2001:9e8:344:9d00:f16d:efdc:8992:ac2)

All times are in UTC on 2022-03-12.