Home liberachat/#xmonad: Logs Calendar

Logs on 2022-08-26 (liberachat/#xmonad)

00:04:39 td_ joins (~td@94.134.91.83)
00:22:50 × catman quits (~catman@user/catman) (Quit: WeeChat 3.6)
00:24:04 catman joins (~catman@user/catman)
00:38:44 × V42 quits (~V42@eth-west-pareq2-46-193-4-100.wb.wifirst.net) (Ping timeout: 252 seconds)
01:13:53 × jao quits (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) (Ping timeout: 252 seconds)
01:41:59 <ectospasm> I'm playing around with MPlayer, and I think XMonad is letting the window stay on top when that's not what I want. I'd like it to be like any other XWindow, so I can tile it, or hide it with another window.
01:42:22 <ectospasm> Right now, MPlayer is always on top, but doesn't always have focus. Cycling the XMonad layouts doesn't help.
01:42:48 <ectospasm> I can see my XMonad border around MPlayer, and when it doesn't have focus I can see a few pixels from my terminal emulator below it.
01:43:03 <ectospasm> I've tried a few different video output drivers, but they all do the same thing.
01:43:26 <ectospasm> The closest I've come to fixing this is using the MPlayer option -rootwin, but that doesn't really do what I want.
01:44:38 <geekosaur> iirc the default ManageHook does something with mplayer
01:44:52 <geekosaur> "always on top" sounds like it got floated, and you want it to be tiled
01:46:41 <[Leary]> Wow, it really does.
01:46:53 <[Leary]> How has this historical artifact survived until now?
01:47:06 <[Leary]> I didn't even know people still used mplayer.
01:49:56 <ectospasm> geekosaur: I'm not sure how to disable that. I don't have a doFloat for mplayer in my xmonad.hs.
01:50:25 <ectospasm> here's my current xmonad.hs: https://git.eldon.me/trey/XMonad/src/branch/master/xmonad.hs
01:53:14 <ectospasm> It is getting floated on startup, sending it back to tiling seems to work.
01:54:08 <geekosaur> https://git.eldon.me/trey/XMonad/src/branch/master/xmonad.hs#L298 try removing the `<> manageHook desktopConfig`
01:54:17 × sogens quits (~sogens@211.30.36.43) (Quit: WeeChat 3.5)
01:54:23 <geekosaur> most people don't need it anyway, it's pretty obsolete
01:54:46 <geekosaur> (it's past my bedtime so hopefully someone else can help you from here)
01:58:35 <ectospasm> geekosaur: that did the trick!
02:01:04 <[Leary]> `desktopConfig` seems to apply `docks` and `ewmh` to the default config, but from what I can see, the net effect to the ManageHook is only to add `manageDocks` ... which is already being added in manually anyway.
02:01:18 <[Leary]> So what geekosaur suggests is indeed what you want, with no losses.
02:02:11 <[Leary]> Though that means there's a lot of duplication in your config, since you're also applying `docks` and `ewmh` manually, hopefully to no effect.
02:02:23 <[Leary]> ectospasm: ^
02:04:29 × banc quits (banc@gateway/vpn/airvpn/banc) (Ping timeout: 252 seconds)
02:05:32 × catman quits (~catman@user/catman) (Quit: WeeChat 3.6)
02:15:24 × td_ quits (~td@94.134.91.83) (Ping timeout: 268 seconds)
02:16:57 td_ joins (~td@94.134.91.103)
02:23:13 banc joins (banc@gateway/vpn/airvpn/banc)
02:27:26 catman joins (~catman@user/catman)
02:31:12 <ectospasm> Hmm, I'll have to work on that later. My xmonad.hs has evolved over the past 12+ years, all without me really learning Haskell. I learn just enough to make it do something new, or panic when compiling it breaks unexpectedly. I really should take a class on Haskell, but I just don't have the time.
02:33:17 <ectospasm> What gets me is all the operator overloading, and I never understood how to read the expected type of functions.
02:33:53 <ectospasm> Especially when they contain intermediate steps
02:38:32 <[Leary]> ectospasm: In this case, it's enough to under stand that `xmonad $ docks $ ewmh $ desktopConfig{ ... }` essentially means `xmonad $ docks $ ewmh $ docks $ ewmh $ def{ ... }`, so you can simpify it down to `xmonad $ desktopConfig{ ... }`.
02:49:50 × terrorjack quits (~terrorjac@2a01:4f8:1c1e:509a::1) (Quit: The Lounge - https://thelounge.chat)
02:52:16 terrorjack joins (~terrorjac@2a01:4f8:1c1e:509a::1)
03:00:44 <ectospasm> I'll have to come back sometime later, as it's late for me. I'm sure my xmonsd.hs could be greatly simplified like that, a lot of it has grown over time and there's quite a bit I don't use anymore.
03:07:04 steve__ joins (~steve@ool-182c2b80.dyn.optonline.net)
04:54:32 × benin0 quits (~benin@183.82.205.66) (Ping timeout: 268 seconds)
05:17:53 × twiclo1 quits (~twiclo@mail.twil.cx) (Ping timeout: 255 seconds)
05:30:28 twiclo1 joins (~twiclo@mail.twil.cx)
05:58:50 × twiclo1 quits (~twiclo@mail.twil.cx) (Ping timeout: 255 seconds)
06:12:34 sogens joins (~sogens@211.30.36.43)
06:25:44 mc47 joins (~mc47@xmonad/TheMC47)
06:30:27 alternateved joins (~user@staticline-31-183-146-203.toya.net.pl)
06:54:59 × mvk quits (~mvk@2607:fea8:5ce3:8500::a1ec) (Ping timeout: 248 seconds)
07:25:25 themc47 joins (~mc47@xmonad/TheMC47)
07:28:03 × mc47 quits (~mc47@xmonad/TheMC47) (Ping timeout: 268 seconds)
08:56:55 cfricke joins (~cfricke@user/cfricke)
09:00:56 × liskin[m] quits (~liskinmat@2001:470:69fc:105::768) (Quit: You have been kicked for being idle)
09:05:15 tremon joins (~tremon@83-84-18-241.cable.dynamic.v4.ziggo.nl)
09:12:22 × kaskal- quits (~kaskal@213-225-33-152.nat.highway.a1.net) (Quit: ZNC - https://znc.in)
09:12:50 kaskal joins (~kaskal@2001:4bb8:2dc:7b0e:55ee:692c:e44d:a4b0)
09:39:25 × sogens quits (~sogens@211.30.36.43) (Quit: WeeChat 3.5)
09:45:15 sogens joins (~sogens@211.30.36.43)
10:00:36 × cfricke quits (~cfricke@user/cfricke) (Read error: Connection reset by peer)
10:07:24 × tremon quits (~tremon@83-84-18-241.cable.dynamic.v4.ziggo.nl) (Quit: getting boxed in)
10:08:23 cfricke joins (~cfricke@user/cfricke)
11:28:15 jao joins (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net)
12:31:20 Guest52 joins (~Guest52@185.134.109.169)
12:32:10 nurfz[m] joins (~nurfzmatr@2001:470:69fc:105::dedb)
12:36:31 <nurfz[m]> Hi all, I'm using xmonad (0.12) on a raspberry pi and the virtual keyboard "onboard" which I position in a Gap. I want the keyboard to be hidden by default. setGap/setGaps is not available in xmonad 0.12, so I have to use ToggleGaps. But how can I call it once (at startup) to toggle the gaps on ALL workspaces?
12:36:32 <nurfz[m]> https://hackage.haskell.org/package/xmonad-contrib-0.12/docs/XMonad-Layout-Gaps.html
12:36:32 <nurfz[m]> Any ideas?
12:38:26 × Guest52 quits (~Guest52@185.134.109.169) (Quit: Client closed)
12:43:59 <geekosaur> `broadcastMessage ToggleGaps` in the startupHook?
12:44:12 <[Leary]> nurfz[m]: Looks like `gaps'` has what you want. Also, your xmonad is ancient beyond measure.
12:44:18 liskin[m] joins (~liskinmat@2001:470:69fc:105::768)
12:44:41 <[Leary]> ime, broadcasting to invisible layouts is very unreliable
12:45:14 <geekosaur> well, yes
12:46:54 <geekosaur> I've done hacky things to get things to happen in the startupHook before 🙂
12:47:09 <geekosaur> (then rewrote stuff so I didn't need the hack any more)
12:50:44 <[Leary]> I once attempted to have mine reset decoration themes to (new) default in all layouts. The lesson I learnt was: don't.
12:51:23 <geekosaur> yeh, I wouldn't trust it with Decoration. that module is hacky to start with
12:51:54 <geekosaur> oh also we have a growing list of layouts that don't pass on messages even with broadcast
12:52:20 <geekosaur> (which is a bug)
13:03:30 × scardinal quits (~supreme@customer-212-237-101-39.ip4.gigabit.dk) (Quit: leaving)
13:05:00 scardinal joins (~supreme@customer-212-237-101-39.ip4.gigabit.dk)
13:21:38 twiclo1 joins (~twiclo@mail.twil.cx)
13:33:05 × twiclo1 quits (~twiclo@mail.twil.cx) (Ping timeout: 252 seconds)
13:45:26 twiclo1 joins (~twiclo@mail.twil.cx)
13:50:36 × twiclo1 quits (~twiclo@mail.twil.cx) (Ping timeout: 260 seconds)
14:26:45 × alternateved quits (~user@staticline-31-183-146-203.toya.net.pl) (Remote host closed the connection)
14:27:29 × cfricke quits (~cfricke@user/cfricke) (Quit: WeeChat 3.6)
15:26:08 <Solid> 0.12? hot damn
15:26:36 <geekosaur> yeh
15:27:09 <geekosaur> not even sure that's a reasonable version to run, that was around when ManageDocks was rewritten, with the first couple attempts having bugs
15:27:16 <Solid> 7 years ago, apparently; was a cute first semester student and didn't even use gnu/linux back then :>
15:27:27 <geekosaur> I think 0.11 would have been better
15:42:09 justDeez is now known as justache
15:46:08 alternateved joins (~user@staticline-31-183-146-203.toya.net.pl)
16:24:09 wonko joins (~wjc@2a0e:1c80:2::130)
16:39:58 × sogens quits (~sogens@211.30.36.43) (Quit: WeeChat 3.5)
16:39:58 × wonko quits (~wjc@2a0e:1c80:2::130) (Ping timeout: 268 seconds)
16:46:04 tremon joins (~tremon@83-84-18-241.cable.dynamic.v4.ziggo.nl)
16:48:25 TravisAthougies[ joins (~tathougie@2001:470:69fc:105::2:6fbd)
17:17:40 × OpenSource quits (~Hash@tunnel686959-pt.tunnel.tserv15.lax1.ipv6.he.net) (Changing host)
17:17:40 OpenSource joins (~Hash@user/OpenSource)
17:33:37 × catman quits (~catman@user/catman) (Ping timeout: 252 seconds)
17:40:22 rekahsoft joins (~rekahsoft@bras-base-wdston4533w-grc-02-142-113-160-8.dsl.bell.ca)
17:45:55 × OpenSource quits (~Hash@user/OpenSource) (Quit: ZNC - https://znc.in)
17:46:10 OpenSource joins (~kernel@user/OpenSource)
17:54:13 catman joins (~catman@user/catman)
18:37:04 wonko joins (~wjc@2a0e:1c80:2::130)
20:28:41 × wonko quits (~wjc@2a0e:1c80:2::130) (Ping timeout: 255 seconds)
20:44:51 × alternateved quits (~user@staticline-31-183-146-203.toya.net.pl) (Remote host closed the connection)
22:26:27 bla joins (~bla@83.6.128.205.ipv4.supernova.orange.pl)
22:27:46 thyriaen joins (~thyriaen@2a02:8109:8340:686c:c35d:10d0:cfbe:fcc0)
22:28:25 <thyriaen> I am trying to setup my xmonad enviournment - do you have a good starting point to get polybar up and running with xmonad ? ( no overlapping windows, autoloading on startup ) ?
22:29:30 <geekosaur> should I bother repeating what I told you last time?
22:30:06 <geekosaur> "overlapping windows" is https://hackage.haskell.org/package/xmonad-contrib-0.17.0/docs/XMonad-Hooks-ManageDocks.html
22:30:17 <geekosaur> this isn't going to change if you keep asking
22:30:24 <thyriaen> ohh thanks - i think i did not quite catch your answer last time
22:30:47 <thyriaen> and i just run polybar with a startup hook ?
22:31:51 <geekosaur> as for autoloading, https://hackage.haskell.org/package/xmonad-0.17.0/docs/XMonad-Core.html#v:spawn
22:32:02 <geekosaur> either in main or a startupHook
22:32:15 <thyriaen> ok perfect thanks
22:32:23 <thyriaen> i think with this i can start get something going
22:32:31 <thyriaen> i will try my luck :p
22:33:26 <geekosaur> for it to know about windows, you want either https://hackage.haskell.org/package/xmonad-contrib-0.17.0/docs/XMonad-Hooks-EwmhDesktops.html (easier) or https://hackage.haskell.org/package/xmonad-contrib-0.17.0/docs/XMonad-Hooks-StatusBar-PP.html plus some dbus glue and xmonad-log feeding polybar (significantly harder)
22:34:07 <thyriaen> i already have ewmh enabled
22:34:12 <thyriaen> and i read somewhere about the dbus
22:34:21 <thyriaen> i don't need dbus with ewmh ?
22:34:58 <geekosaur> nope
22:35:03 <thyriaen> perfect
22:35:15 <thyriaen> but all this stuff i will go to once i have a bar running
22:35:17 <geekosaur> you only need dbus if you want to control what polybar shows directly with X.H.StatusBar.PP
22:35:24 <thyriaen> ok
22:36:03 <geekosaur> if you use EWMH it'll do it itself, but you may want to customize its display which requires the StatusBar stuff and dbus and xmonad-log
22:36:33 <thyriaen> what do you mean by customize its display ?
22:36:39 <geekosaur> sorry for being a bit grumpy btw. I am not having a good day, and I could have sworn I responded quickly the last time you asked so … a bit grumpy
22:36:58 <thyriaen> no worries - maybe it just slipped through for some reason
22:37:14 <geekosaur> not helped by fighting panic attacks for the past few hours because *sigh* that's my life
22:37:28 <thyriaen> i had those too in the last 2 weeks
22:37:35 <thyriaen> for the first time ever
22:40:42 <thyriaen> alrighty
22:40:46 <thyriaen> thanks for the link
22:41:03 <thyriaen> i will now hop over to my xmonad machine and will try to set it up
22:41:15 <thyriaen> have a good nighty night and see you around when i have more questsions :p
22:41:34 <thyriaen> take care of yourself - do what makes you feel good inside
22:42:13 × thyriaen quits (~thyriaen@2a02:8109:8340:686c:c35d:10d0:cfbe:fcc0) (Quit: Leaving)
22:51:09 × jao quits (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) (Remote host closed the connection)
23:01:23 thyriaen joins (~thyriaen@2a02:8109:8340:686c:f4bb:adc9:da23:30c9)
23:01:30 <thyriaen> howdy - it's me again :p
23:03:07 <geekosaur> yes?
23:03:27 <thyriaen> could you maybe take a look at my xmonad.hs - https://paste.sqt.wtf/2bf5c6@raw i don't understand where xmonad get's the unfocussed border color from - it is not theNormalBorderColor but some sort of darker version of the activeColor i have defined
23:04:17 <thyriaen> it would be nice if it could be the myNormalBorderColor i have defined instead
23:05:07 <geekosaur> windowNavigation overrides the border colors. you can use a WNConfig to change that
23:05:33 <geekosaur> (see configurableNavigation)
23:06:57 <thyriaen> ah ok
23:06:58 <thyriaen> thanks
23:09:48 <thyriaen> hmm i can't find a explanation of wnconfig here: https://hackage.haskell.org/package/xmonad-contrib-0.11/docs/XMonad-Layout-WindowNavigation.html#t:WNConfig
23:10:45 <geekosaur> uh, why are you using the docs from 0.11?
23:11:31 sogens joins (~sogens@211.30.36.43)
23:11:36 <thyriaen> i was asking the same why i got redirected there
23:12:29 <geekosaur> but the docs in 0.17 are still a bit opaque. you can't set it directly, you use the functions just above it to build a WNConfig that either uses a custom color for navigation, or uses brightness (which is what you're seeing), or noNavigateBorders for it to leave things alone
23:13:45 <thyriaen> i don't follow because i can't find the documentation entry
23:16:39 <geekosaur> sigh, documentation hasn't been fixed in git either
23:16:48 <geekosaur> meaning there still isn't any
23:16:53 <thyriaen> oh
23:17:20 <geekosaur> `navigateColor` gives you a WNConfig which uses a specified color to indicate the windows you can reach from the current one
23:18:15 <geekosaur> `navigateBrightness` gives you a WNConfig which changes the brightness of the focused window color to indicate those windows. (This is the default and is why you are seeing the focus color dimmed.)
23:18:27 <geekosaur> `noNavigateBorders` leaves the borders alone
23:18:35 <thyriaen> noNavigateBorders will leave everything as is
23:18:40 <thyriaen> which is what i wont
23:18:42 <thyriaen> want
23:18:45 <thyriaen> it returns a config
23:18:49 <geekosaur> right
23:19:08 <geekosaur> and you can pass that WNConfig to configurableNavigation, which you then use in place of windowNavigation
23:19:13 <thyriaen> so all i have to do is instead of windowNavitagion $... i just do configurableNavigation noNavigateBorders $ ... right ?
23:19:42 <geekosaur> yes
23:20:11 × sogens quits (~sogens@211.30.36.43) (Quit: WeeChat 3.5)
23:20:24 <thyriaen> unfortunatly it did no have the desired effect
23:20:32 <thyriaen> do i have to reboot ?
23:20:40 <geekosaur> did you mod-q?
23:20:43 <thyriaen> yea
23:20:55 <thyriaen> but some color specific options only change on reboot
23:21:02 <thyriaen> for example tab color or font
23:21:08 <geekosaur> this should change the type so it should reload.
23:21:25 <geekosaur> the ones that don't you can press mod-shift-space to force the layout to be recomputed
23:21:26 <thyriaen> still darker version
23:21:30 <geekosaur> it won't hurt to try that
23:21:57 <thyriaen> also no effect
23:22:18 <geekosaur> what version of xmonad? 0.17.0 has a bug that causes color issues with windowNavigation; it's fixed in git
23:22:39 <thyriaen> 0.17.0
23:22:40 <geekosaur> althoiugh I would expect it to be black instead of just darker in that case
23:23:17 <thyriaen> how can i use a navigateColor to set the border myself ?
23:24:32 <geekosaur> configurableNavigation (navigateColor "blue") $ ...
23:24:46 <thyriaen> can i use hex instead of blue ?
23:25:19 <geekosaur> yes
23:25:26 <thyriaen> ok i think i gotta reboot here
23:25:30 <thyriaen> cause also no effect :p
23:25:58 <geekosaur> that sounds like the color bug in 0.17.0
23:26:07 <thyriaen> did i undbind the mod shift space thing in my cfg ?
23:26:09 <geekosaur> is there any chance you can upgrade to the git version?
23:26:38 <thyriaen> only if i compile from source i think
23:31:17 <geekosaur> what distro are you on?
23:31:24 <thyriaen> fedora 36
23:31:38 <geekosaur> hm. dunno about that
23:32:11 <geekosaur> but I do think you'll have problems with windowNavigation and border colors until we get 0.17.1 out and distros pick it up
23:32:24 <geekosaur> (release currently planned for Sep 3/4)
23:32:44 <thyriaen> ok
23:32:50 <thyriaen> i will wait then
23:33:07 <thyriaen> how quickly does it get packaged with distros usually ?
23:33:30 <thyriaen> is it the job of the distro or does xmonad push it to them ?
23:41:06 sagax joins (~sagax_nb@213.138.71.146)
23:50:20 <geekosaur> it's up to the distro
23:50:30 <geekosaur> they took forever to get 0.17.0 packaged 😞
23:51:26 mvk joins (~mvk@2607:fea8:5ce3:8500::a1ec)
23:51:51 jao joins (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net)
23:51:54 × thyriaen quits (~thyriaen@2a02:8109:8340:686c:f4bb:adc9:da23:30c9) (Remote host closed the connection)
23:52:10 thyriaen joins (~thyriaen@2a02:8109:8340:686c:f4bb:adc9:da23:30c9)
23:52:37 × thyriaen quits (~thyriaen@2a02:8109:8340:686c:f4bb:adc9:da23:30c9) (Client Quit)

All times are in UTC on 2022-08-26.