Home freenode/#xmonad: Logs Calendar

Logs on 2021-02-16 (freenode/#xmonad)

00:36:41 gazler__ joins (~gazler@195.107.2.81.in-addr.arpa)
00:38:56 × gazler_ quits (~gazler@195.107.2.81.in-addr.arpa) (Ping timeout: 240 seconds)
01:04:58 × s00pcan quits (~chris@107.181.165.217) (Ping timeout: 256 seconds)
01:06:22 × tremon quits (~aschuring@217-63-61-89.cable.dynamic.v4.ziggo.nl) (Quit: getting boxed in)
01:06:59 s00pcan joins (~chris@075-133-056-178.res.spectrum.com)
01:14:24 × endiruna1 quits (~endiendir@46.101.187.207) (Ping timeout: 265 seconds)
01:18:51 ttmx joins (5e3ee76f@gateway/web/cgi-irc/kiwiirc.com/ip.94.62.231.111)
01:19:18 <ttmx> Hey again!
01:19:44 <ttmx> Any chance you know how to get image previews working with ranger on xmonad?
01:19:54 <ttmx> The exact same setup works on i3wm :(
01:41:01 endiruna1 joins (~endiendir@46.101.187.207)
02:15:07 × wagle quits (~wagle@quassel.wagle.io) (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
02:15:39 wagle joins (~wagle@quassel.wagle.io)
02:35:14 <ttmx> Well, any chance I could get some help setting up xmobar? I've got it working, but I want to customize the workspace display thingies
03:41:32 × Natch quits (~Natch@c-b471e255.014-297-73746f25.bbcust.telenor.se) (Remote host closed the connection)
03:41:52 <ttmx> How can I insert emoji in haskell code?
03:42:04 <ttmx> It seems to hate them and kill spacing and whatnot
03:43:33 × theDon quits (~td@muedsl-82-207-238-067.citykom.de) (Ping timeout: 246 seconds)
03:45:42 theDon joins (~td@94.134.91.14)
03:50:58 Natch joins (~natch@c-b471e255.014-297-73746f25.bbcust.telenor.se)
04:13:45 × ttmx quits (5e3ee76f@gateway/web/cgi-irc/kiwiirc.com/ip.94.62.231.111) (Ping timeout: 240 seconds)
05:52:19 × endiruna1 quits (~endiendir@46.101.187.207) (Ping timeout: 265 seconds)
06:05:25 novas0x2a joins (~blah@157-131-126-102.fiber.dynamic.sonic.net)
06:08:39 × novas0x2a1 quits (~blah@157-131-126-102.fiber.dynamic.sonic.net) (Ping timeout: 256 seconds)
06:19:02 endiruna1 joins (~endiendir@46.101.187.207)
06:25:52 adamik joins (~nodelet@unaffiliated/adamik)
06:53:04 palo1 joins (~weechat@c-base/crew/palo)
06:56:18 × palo quits (~weechat@c-base/crew/palo) (Ping timeout: 256 seconds)
06:56:18 palo1 is now known as palo
07:05:34 idhugo joins (~idhugo@80-62-117-86-mobile.dk.customer.tdc.net)
07:10:14 × idhugo quits (~idhugo@80-62-117-86-mobile.dk.customer.tdc.net) (Remote host closed the connection)
07:10:40 idhugo joins (~idhugo@80-62-117-86-mobile.dk.customer.tdc.net)
07:17:04 × adamik quits (~nodelet@unaffiliated/adamik) (Quit: leaving)
07:29:05 × endiruna1 quits (~endiendir@46.101.187.207) (Ping timeout: 240 seconds)
07:55:00 cfricke joins (~cfricke@unaffiliated/cfricke)
07:56:12 endiruna1 joins (~endiendir@46.101.187.207)
08:02:21 × endiruna1 quits (~endiendir@46.101.187.207) (Ping timeout: 264 seconds)
08:14:36 × amiri quits (~amiri@cpe-76-91-154-9.socal.res.rr.com) (Ping timeout: 240 seconds)
08:21:43 amiri joins (~amiri@cpe-76-91-154-9.socal.res.rr.com)
08:22:23 notis joins (~notis@92.118.13.23)
08:25:19 tcb joins (~quassel@freebsd/developer/tcberner)
08:28:17 Irishluck83_ joins (~Irishluck@149.28.126.73)
08:28:17 × Irishluck83_ quits (~Irishluck@149.28.126.73) (Changing host)
08:28:17 Irishluck83_ joins (~Irishluck@unaffiliated/irishluck83)
08:28:26 endiruna1 joins (~endiendir@46.101.187.207)
08:30:34 × tcberner quits (~quassel@freebsd/developer/tcberner) (Ping timeout: 258 seconds)
08:30:34 × Irishluck83 quits (~Irishluck@unaffiliated/irishluck83) (Ping timeout: 258 seconds)
08:30:34 Irishluck83_ is now known as Irishluck83
08:33:43 × endiruna1 quits (~endiendir@46.101.187.207) (Ping timeout: 256 seconds)
08:34:24 xaltsc joins (~xaltsc@unaffiliated/xaltsc)
08:38:26 mc47 joins (~yecinem@89.246.239.190)
09:00:04 × chimay[m] quits (chimaymatr@gateway/shell/matrix.org/x-wjebdbvxcqteojag) (Quit: Idle for 30+ days)
09:00:42 endiruna1 joins (~endiendir@46.101.187.207)
09:08:21 × endiruna1 quits (~endiendir@46.101.187.207) (Ping timeout: 264 seconds)
09:31:59 def_jam joins (~eblip@unaffiliated/eblip)
09:32:24 eb0t_ joins (~eblip@unaffiliated/eblip)
09:32:57 endiruna1 joins (~endiendir@46.101.187.207)
09:33:50 × eb0t quits (~eblip@unaffiliated/eblip) (Ping timeout: 256 seconds)
09:34:09 × eblip quits (~eblip@unaffiliated/eblip) (Ping timeout: 264 seconds)
10:05:29 <Liskni_si> it's quite likely the problem isn't inserting emojis in Haskell code but getting them across to xmobar
10:05:38 <Liskni_si> oh they left
10:20:14 liskin[m] joins (liskinmatr@gateway/shell/matrix.org/x-rtblbtrhhlnaoxpg)
10:22:13 thc202 joins (~thc202@unaffiliated/thc202)
10:37:51 tcb is now known as tcberner
10:53:26 amoe joins (~amoe@visarend.solasistim.net)
10:55:29 <Solid> ?tell ttmx it's quite likely the problem isn't inserting emojis in Haskell code but getting them across to xmobar
10:55:29 <lambdabot> Consider it noted.
10:55:41 <amoe> I want to get the screen width and then set the width of my dzen2 bar to be some fraction of that, how could I do that? I understand how to set the width of the bar, but not sure how to get the screen width
10:55:45 <amoe> I saw this message: https://mail.haskell.org/pipermail/xmonad/2016-December/015183.html
10:56:08 <amoe> But I'm not sure what context I would use that code in ("somewhere in a do block in X")
10:57:11 <amoe> Is it possible to interactively test stuff like "gets windowset" in any way? I tried loading my xmonad.hs into ghci within emacs, but I couldn't evaluate 'gets windowset'
10:59:33 <Liskni_si> amoe: the easiest way is to define a function of type X () that you then bind to a key
10:59:57 <Liskni_si> interactively playing with stuff like that would require running code in the live xmonad instance
11:00:22 <Liskni_si> I vaguely remember someone tried to make a prompt that does that, but I can't find it in xmonad-contrib
11:01:15 <Solid> Liskni_si: it's in xmonad-extras
11:02:00 <Liskni_si> oh, indeed
11:02:04 <Solid> I think the easiest way to do things that interactively is to spawn another display with xmonad in it
11:02:22 <Solid> https://www.youtube.com/watch?v=63MpfyZUcrU shows how to do that relatively well
11:02:43 <Solid> sadly we're not a lisp and so no infinite introspection :(
11:04:37 <amoe> thanks all :)
11:27:41 × thunderrd quits (~thunderrd@183.182.112.64) (Ping timeout: 272 seconds)
11:33:28 × hexo quits (~hexo@gateway/tor-sasl/hexo) (Remote host closed the connection)
11:33:46 hexo joins (~hexo@gateway/tor-sasl/hexo)
11:40:03 thunderrd joins (~thunderrd@183.182.113.172)
11:40:50 <amoe> I was able to get the width in a keybinding :) but now, I am not sure how to integrate that with the part of my xmonad.hs that sets up the options for dzen2. As that function uses `statusBar` from XMonad.Hooks.DynamicLog and doesn't seem to have any way to 'enter' an X (), if that's the right word
11:42:59 <amoe> Can I use an `XConfig l` to somehow enter an X ()?
11:43:53 <amoe> dzenAmoe :: LayoutClass l Window => XConfig l -> IO (XConfig (ModifiedLayout AvoidStruts l))
11:46:54 <Liskni_si> to set your expectations accordingly, with statusBar from DynamicLog you're royally fucked, as Haskell simply won't let you do what you want to do :-)
11:47:20 <Liskni_si> you might be able to query Xinerama directly, but then you can probably do that entirely outside of xmonad as well
11:48:40 <amoe> Liskni_si: hah, OK -- thanks :) Good to know, I can probably find a solution to this outside of xmonad.hs
11:49:14 <Liskni_si> once https://github.com/xmonad/xmonad-contrib/pull/463 lands, it will be possible to do this nicely withing xmonad, but that might take some time
11:50:59 <Liskni_si> there are some more tricks that you do with startupHooks and IORefs and stuff, but you'd need to learn some more Haskell and xmonad internals to do that
11:51:10 <Liskni_si> *that you can do
13:10:07 geekosaur joins (82650c7a@130.101.12.122)
13:25:24 seschwar joins (~seschwar@unaffiliated/seschwar)
13:41:14 ttmx joins (5e3ee76f@gateway/web/cgi-irc/kiwiirc.com/ip.94.62.231.111)
13:41:27 <ttmx> I am here once again to ask for your support
13:41:34 <ttmx> Uploaded file: https://uploads.kiwiirc.com/files/d56a13b8399c3c17a6611b262e44e98a/image.png
13:41:57 <ttmx> That spacing you see up there is a tab, and I have no idea where it comes from, but it appears whenever I put colors onto it.
13:43:16 <ttmx> If I make it crash on purpose it looks like a tab? Unless its a newline or something?
13:43:19 <ttmx> Uploaded file: https://uploads.kiwiirc.com/files/d30c683fbc8fc20d25dcc85b936ab2c9/image.png
13:45:05 <ttmx> Any idea what it could be?
13:48:48 <ttmx> Seems to only happen when I try to input unicode stuff onto it (like those \57524)
13:52:39 Ailrk joins (~Ailrk@99.199.143.168)
13:56:32 <ttmx> Sorry if I didn't explain myself correctly, but I want to not have those tabs, since I did not write them anywhere on the config.
14:05:42 × geekosaur quits (82650c7a@130.101.12.122) (Ping timeout: 240 seconds)
14:06:40 × Ailrk quits (~Ailrk@99.199.143.168) (Quit: WeeChat 3.0)
14:07:30 jeyj0[m] joins (jeyj0matri@gateway/shell/matrix.org/x-irgugsyilbnwwalh)
14:15:37 <ttmx> Possibly they are not tabs, but paragraphs? I have no idea how they would get there anyway
14:19:32 geekosaur joins (82650c7a@130.101.12.122)
14:24:04 Liskni_si has no idea, just a suggestion how to debug it: try to run xmobar from the temrinal and give it the same output; try using something else than xmobar, perhaps just "tee" to capture what xmonad sends
14:24:17 <Liskni_si> this way you'll know which side the problem is on
14:25:05 <mc47> I see that you're opening one fn tag but closing 2
14:25:11 <mc47> at 321
14:36:14 <ttmx> That was on purpose to make it crash as I said :P
14:36:20 <ttmx> mc47
14:36:44 <ttmx> Uploaded file: https://uploads.kiwiirc.com/files/54636e719dc5e300dd988aefaf80bf04/image.png
14:36:55 <ttmx> It seems to be interpreting the file as something other than utf8?
14:37:06 <ttmx> Uploaded file: https://uploads.kiwiirc.com/files/0b79bd746b3c3397a07943004bf19a48/image.png
14:37:20 <ttmx> And thinks that these are 7 characters instead of the 3 I input
14:38:36 <geekosaur> check your locale, sounds like iso8859-1 or similar
14:50:29 <ttmx> Uploaded file: https://uploads.kiwiirc.com/files/e67ced77265d5df653559c968327192d/image.png
14:52:14 <geekosaur> locale in a shell and locale of xmonad/xmobar can be very different things
14:52:26 <ttmx> Oh, I did not know. How would I check that?
14:53:02 <geekosaur> de facto you already did, I think :)
14:53:15 <ttmx> Wait, I did? Where?
14:53:30 <ttmx> And how would I change that?
14:53:38 <geekosaur> I'd drop something fetching the locale (possibly piped to zenity or xmessage) into the startupHook and mod-q
14:53:54 <geekosaur> >> And thinks that these are 7 characters instead of the 3 I input
14:54:00 <ttmx> Ah, right.
14:54:33 <geekosaur> hm, I smell another "hack" oneliner to set the locale
14:54:38 <ttmx> How do I get the current encoding?
14:54:43 <geekosaur> but I'm going to have to go away shortly
14:54:53 <ttmx> Why isn't EVERYTHING just utf-8 :/
14:55:16 <geekosaur> locale is just printing a bunch of environment variables
14:55:17 <MrElendig> windows and eastern europe are the usual reasons
14:55:42 <ttmx> Pain
14:55:46 <geekosaur> with some conventions of its own like quoting tells you where it thinks the envar came from
14:56:08 <ttmx> But how would I print the locale of xmonad?
14:56:15 × geekosaur quits (82650c7a@130.101.12.122) (Quit: Connection closed)
14:56:21 <ttmx> The file itself is utf-8
14:57:56 <Liskni_si> xargs -0 -n1 </proc/"$(pgrep xmonad)"/environ | sort | egrep '^LANG|^LC'
14:58:17 <ttmx> LANG=en_US.UTF-8 :)
14:59:28 <ttmx> Its in utf-8 :)
14:59:33 <ttmx> Why would it not be liking my emoji :(
15:00:03 <ttmx> Riight, when I input the emoji is starts being super specific about spaces/tab usage where it wasn't before.
15:00:11 <ttmx> No idea if thats a clue for anything?
15:01:14 <ttmx> I've been at this for hours and hours :(
15:01:36 <mc47> how are you trying to pass the emoji? I remember I needed to escape some glyphs to get my fancy workspace ids to work
15:01:49 <mc47> and you *shouldn't* mix tabs and spaces, only use spaces
15:01:59 <ttmx> Uploaded file: https://uploads.kiwiirc.com/files/1aaf9cc83f3611b75ad77e27a4c45129/image.png
15:02:03 <ttmx> Both ways
15:02:45 <ttmx> Both let me display the emoji properly, but then add a paragraph to the end :)))
15:02:49 <mc47> drop the raw tag, I also had a similar problem
15:03:29 <ttmx> Uploaded file: https://uploads.kiwiirc.com/files/e0d87d564f7bbeae43d03718820f5de3/image.png
15:03:37 <mc47> <fn=2> \57524 \57526 </fn>
15:03:39 <ttmx> This happens if I actually put the emoji into there.
15:04:22 <ttmx> That gives me this issue
15:04:25 <ttmx> Uploaded file: https://uploads.kiwiirc.com/files/c7396e0b697d06b158c3aa07a3fd97c4/image.png
15:04:42 <ttmx> That huge space is apparently a "paragraph"
15:04:49 <ttmx> If I make it crash on purpose, thats what it tells me.
15:04:56 <mc47> show me the rest of the config
15:05:48 <mc47> (and what font are you using for fn=2? it's giving me ideas for my config :D )
15:06:09 <ttmx> https://termbin.com/vh2j
15:06:10 <Liskni_si> so, um, did you try to tell if xmonad is sending what it should be sending, and whether xmobar works when given the input manually?
15:06:16 × cfricke quits (~cfricke@unaffiliated/cfricke) (Quit: WeeChat 3.0.1)
15:06:24 <ttmx> Its just a nerd font, in my case its mononoki nerd.
15:06:27 <Liskni_si> or are we still just wondering in the dark, having no idea whether to look at xmonad or xmobar?
15:08:01 cfricke joins (~cfricke@unaffiliated/cfricke)
15:09:19 <ttmx> Uploaded file: https://uploads.kiwiirc.com/files/13ac826b75af20c64a8b8fa39afd5a59/image.png
15:09:30 <ttmx> Its xmonad it seems.
15:09:33 <mc47> Liskni_si, I think it's xmobar, I've had a similar problem where I wanted to wrap \xf02d in a raw tag and xmobar fails to parse it (without xmonad)
15:10:49 <ttmx> Uploaded file: https://uploads.kiwiirc.com/files/1256a7da0949f69fd53a8440ddecf8f2/image.png
15:10:53 <mc47> ttmx, did you try only setting ppSep, and see how that works?
15:10:58 <ttmx> Even with the raw tag it works.
15:11:27 <Liskni_si> mc47: that sounds like something with a very simple reproducer that can be reported as an issue and then fixed
15:11:46 <ttmx> Uploaded file: https://uploads.kiwiirc.com/files/79ec5ad99f614bb555e6deacfa22a500/image.png
15:11:54 <mc47> It was late at night.. and I forgot about it
15:12:09 <ttmx> Still has the weird spacing even if I unset everything.
15:13:28 <ttmx> (besides ppSep)
15:13:45 <ttmx> It seems to be xmonad crapping its pants, and not xmobar.
15:15:37 <ttmx> It seems that xmonad is not outputting stuff as I expected it to?
15:16:52 <ttmx> With this
15:16:58 <ttmx> , ppSep = show (xmobarColor "#242831" "" "<fn=2>\57524 \57526</fn>")
15:17:21 <ttmx> It gives me this, and no weird paragraph characters
15:18:31 <ttmx> Uploaded file: https://uploads.kiwiirc.com/files/7d15588171aef86455b6620b275500c0/image.png
15:19:34 <ttmx> I've been at this for hours and hours, I really wanna use xmonad, but these types of random issues make it really hard idk
15:20:15 × cfricke quits (~cfricke@unaffiliated/cfricke) (Quit: WeeChat 3.0.1)
15:23:58 <Liskni_si> so, um, can you manually construct something that when fed to xmobar results in what you want?
15:24:19 <Liskni_si> as in echo "…" | xmobar
15:24:33 <Liskni_si> or rather { echo "…"; sleep 20; } | xmobar
15:28:06 <ttmx> Here
15:28:24 <ttmx> Uploaded file: https://uploads.kiwiirc.com/files/338024f1013ee1be5a64d03ab8c95672/image.png
15:28:25 × idhugo quits (~idhugo@80-62-117-86-mobile.dk.customer.tdc.net) (Ping timeout: 240 seconds)
15:28:46 <ttmx> It did both semi circles with a space in the middle.
15:29:04 <ttmx> Which is what I want
15:30:23 <Liskni_si> well what I had in mind was a more complete example with some text as well, but yeah, this probably confirms that xmobar can read unicode correctly
15:30:45 <Liskni_si> so now how about that "tee" trick to capture what xmonad sends, and then compare the two
15:32:04 <ttmx> How would I use tee here?
15:32:30 <Liskni_si> "tee /tmp/xmobar.log" instead of xmobar in xmonad config
15:32:42 <Liskni_si> so that instead of running xmobar, it captures the output
15:32:46 <ttmx> xmproc <- spawnPipe "tee xmb.txt|xmobar -x 0"
15:32:56 <Liskni_si> yeah something like that
15:33:17 <ttmx> This is what it sends
15:33:22 <ttmx> Uploaded file: https://uploads.kiwiirc.com/files/418844d0aa20181fc5d3a4266d56c8dd/image.png
15:33:30 <ttmx> Thats... not my emoji?
15:33:45 <ttmx> It seems to have a fucked up locale?
15:34:22 <Liskni_si> is this xmobar or a text editor?
15:34:37 <ttmx> Sorry, this is a text editor, vim to be more specific.
15:34:39 <Liskni_si> I have no idea what we're looking at
15:35:04 <ttmx> My bad in not specifying.
15:35:28 <ttmx> This is me viewing the tee output in vim.
15:37:16 <ttmx> It seems the output pipe is in a different encoding or something?
15:37:19 <Liskni_si> maybe try this https://github.com/xmonad/xmonad-contrib/blob/9c4c417936a4506566947c91ddd3b1f6af31e412/XMonad/Util/Run.hs#L185
15:37:29 <Liskni_si> instead of spawnPipe
15:38:29 malook joins (~Thunderbi@2a02:9b0:4001:e78f:449d:1fa2:974c:7655)
15:38:56 <Liskni_si> spawnPipe should default to using the locale encoding these days, but in the last release it was probably wrong
15:39:05 <Liskni_si> https://github.com/xmonad/xmonad-contrib/commit/1d0eaddc253078f22106869fc5b11be8d1f63995 isn't released yet
15:39:55 <Liskni_si> I haven't used spawnPipe for over 10 years so I had no idea it's this broken
15:40:13 <Liskni_si> xmonad to xmobar supported logging via X properties for ages
15:40:15 <ttmx> What do you use then? and I shall then
15:40:26 <Liskni_si> property-based logging
15:40:31 <ttmx> THAT WORKED!
15:40:56 <Liskni_si> what exactly?
15:42:11 <ttmx> spawnPipeWithNoEncoding
15:42:32 <Liskni_si> uh, WithNoEncoding?
15:42:36 <Liskni_si> that's a bit unexpected
15:43:36 <ttmx> xmproc <- spawnPipeWithNoEncoding "xmobar -x 0" Worked, instead of just the spawnPipe
15:43:50 <ttmx> Uploaded file: https://uploads.kiwiirc.com/files/870093d0e857ccafee54639c2e326aec/image.png
15:43:56 <ttmx> Its so pretty
15:46:24 <ttmx> Now time to break it some more, I wanna swap some of the numbers by emoji xD
15:47:29 × malook quits (~Thunderbi@2a02:9b0:4001:e78f:449d:1fa2:974c:7655) (Quit: malook)
15:48:01 <ttmx> Also ideally would change the "Spacing Tall" by an icon, but I have no idea how to do that either
15:48:41 <Solid> spawnPipeWithNoEncoding lets xmobar deal with the UTF8 encoding (which I think it tries first instead of respecting the locale)
15:49:06 <Solid> ttmx: X.L.Renamed does that
15:50:00 <ttmx> X.L.Renamed?
15:50:24 <Solid> https://hackage.haskell.org/package/xmonad-contrib-0.16/docs/XMonad-Layout-Renamed.html
15:57:17 <ttmx> Is this cursed? myWorkspaces = ["<fn=1>\62057</fn>","2","3","4","5","6","7","8","9","10"]
15:57:32 <ttmx> Instead of using the renamed package I just... Changed the name.
16:00:12 <Solid> didn't you want to change the name of a layout?
16:03:07 <mc47> The renamed is for the layout, for the workspaces, that *is* how you do it
16:04:34 <Liskni_si> Solid: not really, spawnPipeWithNoEncoding should create a binary handle and writing anything else than 7-bit ascii should result in garbage
16:04:39 scardinal joins (~supreme@unaffiliated/scardinal)
16:04:40 <Liskni_si> Solid: and that's exactly what's happening here
16:05:09 <Liskni_si> it looks almost as if ttmx's config was encoding the string as utf8 before writing it to the handle
16:05:55 <Liskni_si> oh, of course it is, because dynamicLogString does that
16:06:17 <Liskni_si> which means psibi[m]'s patch to X.U.Run breaks a lot of configs
16:06:39 <Liskni_si> ttmx: you've found an actual bug in xmonad, congratulations and thanks :-)
16:07:14 <ttmx> Right, I wanted to do both Solid
16:07:52 <ttmx> You're welcome I think or something
16:08:11 <ttmx> Glad I didn't bang my head against the wall due to my pure lack of knowledge
16:09:37 <ttmx> Riiight, also, is there a way for me to place actual emojis in my source code?
16:09:56 <ttmx> Its slightly bothersome to go find out their escape sequence every time I want to use one
16:15:07 <Liskni_si> seems you can't use privateuse unicode chars in Haskell :-/
16:20:09 <ttmx> Why is that?
16:22:58 <ttmx> Aaand now to fix avoidstruts again...
16:23:07 <ttmx> How do I even get started on that department?
16:23:29 <ttmx> It is not avoiding the xmobar
16:23:46 <Liskni_si> https://stackoverflow.com/questions/60682325/use-unicode-characters-for-xmonad-workspaces#comment107367852_60683742
16:24:09 <ttmx> Probably because I changed my config from the old simple prepackaged solution to a spawnpipe solution
16:25:26 <Liskni_si> xmonad $ docks . ewmh $ def …
16:25:31 <Liskni_si> and then drop the manageDocks
16:25:50 <Liskni_si> (and leave avoidStruts, that needs to be there still)
16:27:17 <ttmx> How would I make my keybind toggle the dock then?
16:27:41 <ttmx> Also, that seems to have half worked?
16:28:02 <ttmx> It seems to be treating the dock as a normal window of sorts?
16:28:50 <ttmx> Uploaded file: https://uploads.kiwiirc.com/files/228f1e9aa023651d7075e1177d357e1c/image.png
16:29:04 <ttmx> It has spacing, but only small spacing, unlike the other sides
16:29:12 <ttmx> Uploaded file: https://uploads.kiwiirc.com/files/3bfdaed98a90de12f9750b1844e6047e/image.png
16:34:01 <psibi[m]> Liskni_si: Which patch of mine are you talking about ? But I do have a history of breaking things.. :-)
16:36:38 <psibi[m]> Ah, I see that you've pinged in github too.
16:37:40 <Liskni_si> psibi[m]: and I just got an idea for a better solution, I'm writing another github comment
16:38:54 × hexo quits (~hexo@gateway/tor-sasl/hexo) (Remote host closed the connection)
16:39:09 hexo joins (~hexo@gateway/tor-sasl/hexo)
16:40:45 <psibi[m]> I do remember fixing a double utf8 encoding issue in xmobar which was caused by this MR though.
16:41:32 <Liskni_si> oh, crap
16:41:39 <Liskni_si> I need to see that one too
16:43:12 idhugo joins (~idhugo@80-62-117-97-mobile.dk.customer.tdc.net)
16:44:21 <Solid> Liskni_si: https://github.com/jaor/xmobar/pull/482
16:46:16 <Liskni_si> oh
16:46:30 <Liskni_si> so you just broke xmonad and then added a workaround to xmobar to compensate for it :-/
16:54:17 <Liskni_si> ttmx: what version of xmobar do you have, btw?
16:56:57 <ttmx> xmobar 0.36
16:57:03 <ttmx> Liskni_si
16:59:07 <Liskni_si> interesting
16:59:27 <Liskni_si> this double-utf8 encoding crap also totaly breaks xmobarRaw
16:59:37 <Liskni_si> which is probably what mc47 hit as well
16:59:47 <Liskni_si> how the hell did this go unnoticed for so many months?
17:00:27 <ttmx> You don't have zoomer users such as myself 😎
17:01:14 <Liskni_si> well yeah you probably got a bit unlucky that you used unicode characters that are so weird that all these hacks finally broke down
17:01:22 <ttmx> Also because you only notice it if the utf8 version of the emoji has a control character like a paragrapth inside of it.
17:01:34 <ttmx> Otherwise it is not displayed
17:01:37 <Liskni_si> yeah that's probably the real reason :-)
17:02:19 <ttmx> Idk how it works
17:02:37 malook joins (~Thunderbi@2a02:9b0:4001:e78f:ce3:24dd:9e30:bbeb)
17:02:39 <ttmx> But it was displaying both the unicode emoji AND the paragraph character, which should be INSIDE the emoji
17:03:00 <ttmx> It should be one or the other I feel like
17:04:19 <ttmx> Does what I am saying make sense?
17:04:22 <Liskni_si> yeah
17:05:10 <Liskni_si> it's possible that double-utf8 encoding of that particular emoji results in something that, when decoded only once, results in that same emoji and an extra character
17:06:09 <ttmx> Imagine my emoji's hex is 0x123441, it should either display broken stuff with an "A" in the end(41) or my full emoji, but instead it displays the equivalent to 0x12344141
17:06:21 <ttmx> Mhm
17:06:33 <Liskni_si> might be interesting to investigate this deeper, but I'd just like to fix it and go back to all the other stuff that I wanted to work on :-/
17:06:42 <ttmx> Luckily I don't have to deal with encodings myself 😎
17:07:03 <Liskni_si> but if you do have time, I'd definitely encourage you to play with it, UTF-8 is interesting :-)
17:07:21 <Liskni_si> might impress a prof or a nerd girl with what you find
17:08:02 <ttmx> I hate character encodings as much as I hate timezones and daylight saving times.
17:08:18 <ttmx> I just wanna use utf8 and unix epoch for everything
17:09:13 <ttmx> The single exception is input and output(in the case of time standards) and that should be the only thing that differs
17:09:37 <vrs> didn't keep track - does xmonad do the sane thing and just emit utf8 on the pipe or is it special?
17:09:43 <ttmx> I haven't fixed a python script from a year ago because of shitty daylight saving differences that break stuff and its just a pain to work with.
17:10:06 <Liskni_si> vrs: right now it does't
17:13:15 geekosaur joins (82650c7a@130.101.12.122)
17:26:10 <ttmx> Right, how would I fix behaviour like this?
17:26:36 <ttmx> alacritty --title "</fn>"
17:26:51 <ttmx> Essentially, how do I make sure I don't get pwned by window titles?
17:27:55 <geekosaur> there's an xmobarEscape function you can run things like titles through
17:29:07 <ttmx> Something like this? ppTitle = xmobarEscape (xmobarColor "#b3afc2" "#242831:4" . shorten 60)
17:29:17 <ttmx> (That does not work btw)
17:29:25 <geekosaur> that would also escape the color sequences
17:29:56 <ttmx> Right
17:29:57 <geekosaur> ppTitle = xmobarColor "#b3afc2" "242831:4" . shorten 60 . xmobarEscape -- I think
17:29:59 <Liskni_si> ttmx: I think you used to have xmobarRaw in there at the beginning
17:30:01 <Liskni_si> ttmx: put it back
17:30:24 <Solid> there is ppTitleSanitize
17:30:45 <ttmx> Which one do I follow? :P
17:30:58 <Liskni_si> oh, right, xmobarRaw in ppTitleSanitize is probably best
17:31:35 <ttmx> Also I hope I'm not the only one whose 12 year old mind laughs a little with every "pp"
17:31:58 <ttmx> I'm guessing I have to import xmobarRaw?
17:32:53 <Solid> yes
17:33:00 <mc47> it's in XMonad.Hooks.DynamicLog
17:33:28 <geekosaur> I guess it got renamed at some point. (I don't actually use xmobar, it's been years)
17:33:30 <ttmx> I already have that imported though mc47...
17:33:48 <mc47> ttmx, same :D which has been a bit entertaining while working on some PRs
17:33:54 <Solid> the default ppTitleSanitize action is (among other things) xmobarStrip btw
17:34:01 <mc47> so you should be able to use it
17:34:11 <Solid> oh but it doesn't strip fn tags
17:34:21 <ttmx> I only import it like this
17:34:23 <ttmx> import XMonad.Hooks.DynamicLog
17:34:39 <Liskni_si> geekosaur: it hasn't been renamed, there are more of those
17:34:45 <ttmx> I'm not sure what the difference is between these "generic" imports and the specific ones like this "import XMonad.Hooks.ManageHelpers (isFullscreen, doFullFloat)"
17:35:01 <geekosaur> the ones that don't have a list import everything
17:35:13 <ttmx> Then how come I can't use xmobarRaw?
17:35:31 <ttmx> If I have the dynlog imported?
17:36:07 <mc47> what's the problem?
17:36:41 <ttmx> Also, it doesn't seem to be escaping it properly with the "default" value?
17:36:47 <ttmx> Uploaded file: https://uploads.kiwiirc.com/files/0d417dd8340bfbc01083bd9f2ceccf52/image.png
17:37:31 <Liskni_si> there are nested <fc>s
17:38:56 <ttmx> I mean yes, that part is on purpose
17:39:10 <ttmx> Only breaks when I input a wacky window title
17:39:17 <Liskni_si> oh and I just realized that xmobarRaw can't be used in ppTitleSanitize, because ppTitle then shortens the result
17:39:52 <Liskni_si> so you might be better of with the default ppTitleSanitize
17:39:56 × malook quits (~Thunderbi@2a02:9b0:4001:e78f:ce3:24dd:9e30:bbeb) (Quit: malook)
17:41:38 <ttmx> I'm using the default
17:41:48 <ttmx> And it breaks if I do the </fn> in the window title :/
17:43:13 <Solid> the default doesn't strip fn tags
17:43:25 <Solid> xmobarEscape doesn't, that is
17:43:43 <ttmx> Then how would I do so?
17:46:51 <ttmx> I just don't want to get pwned by window titles :(
17:47:18 <ttmx> Le epic one click RCE 😎
17:47:25 <Liskni_si> in that case it might be a good idea to xmobarRaw in ppTitle _after_ shortening
17:47:32 <Liskni_si> (after meaning to the left of a dot)
17:48:27 <ttmx> Uploaded file: https://uploads.kiwiirc.com/files/eade81ed9943cc4aa963d48d510aea37/image.png
17:48:45 <ttmx> Am I doing something wrong?
17:48:49 <Solid> xmobarRaw
17:49:07 <Solid> xmobarEscape is a function that only exists in my head, apparently :)
17:49:23 <ttmx> Oh ignore me
17:49:28 <ttmx> Yeah I did both xD
17:49:32 <Liskni_si> it also existed in geekosaur's head at 18:27:55 UTC
17:49:37 <ttmx> Truth time
17:49:39 <Liskni_si> not that it matters
17:49:47 <Solid> Liskni_si: it's because of this comment `-- ??? add an xmobarEscape function?'
17:49:47 <ttmx> Uploaded file: https://uploads.kiwiirc.com/files/961476529264e8233edc1481f9a3de2a/image.png
17:49:54 <Solid> that you removed because we have xmobarRaw now
17:49:57 <ttmx> Ayy I won't get pwned now!
17:49:59 <Solid> but it's still in the 0.16 docs
17:50:04 <Liskni_si> Solid: oh :-)
17:50:31 <Solid> funny how people remember these things :)
17:50:39 <Liskni_si> ttmx: nice
17:50:53 <Liskni_si> I kind of like these pretty desktops people make
17:51:29 <Liskni_si> and then I happily go back to my spartan one, where no space is wasted and no cpu cycles for drawing pretty xft fonts are needed :-)
17:51:32 <ttmx> I wish I had more pixels on my screen :(
17:51:51 <ttmx> I cannot align stuff in the center 100%
17:52:00 <ttmx> Since center is in the middle of 2 pixels currently
17:52:14 <Solid> that's quite some attention to detail :D
17:52:48 <ttmx> Its kinda annoying xD
17:52:56 <ttmx> Uploaded file: https://uploads.kiwiirc.com/files/956c4ffe53c1a184bffebc5862d76891/image.png
17:53:05 <ttmx> Do you see how all icons are not the same size? :(
17:53:09 <ttmx> But its the same font
17:53:34 <ttmx> I will not be editing fonts again for this, I'm kinda tired of doing that
17:53:52 <Solid> I have to say I do not unless I really zoom in
17:54:15 <ttmx> Firefox is the largest, then discord, then spotify.
17:54:44 <ttmx> Its okay enough not to bother me immensely, but when I see it its a little yucky
17:54:53 <geekosaur> I can barely tell
17:55:03 <ttmx> But a little yucky > 2 hours of work editing fonts again
17:55:12 <Solid> definitely :)
17:55:40 <ttmx> I have bigger stuff to fix right now
17:55:42 <Solid> but I agree that I like these pretty pictures people post sometimes
17:55:46 <ttmx> I need fullscreen working right now.
17:55:58 <ttmx> I'm HEAVILY inspiring myself on this one
17:56:01 <ttmx> https://raw.githubusercontent.com/Barbarossa93/Genome/main/out.png
17:56:13 <ttmx> Its so pretty 😭
17:56:25 <Liskni_si> this is what mine looks like right now btw: https://store.lisk.in/tmp/2021-02-16-175236_1920x2160_scrot.png
17:56:36 <ttmx> Oh god
17:56:46 <Solid> aah the bitmap fots
17:56:53 <ttmx> Is that chrome I see?
17:57:13 <Liskni_si> ttmx: yeah :-/
17:57:18 <ttmx> But
17:57:20 <ttmx> But
17:57:23 <ttmx> Delet
17:57:42 <ttmx> Spyware_moment
17:57:43 <ttmx> 😎
17:58:07 <Liskni_si> too used to it :-/
17:58:36 <ttmx> Ungoogled chromium or brave maybe?
17:59:16 <Liskni_si> that'd break sync
17:59:47 <mc47> ttmx seeing you try to make your desktop pretty is kinda making me want to ditch studying and play with my config :D
17:59:48 <ttmx> Possible yes
18:00:06 <ttmx> Right, now I want to fix my gaps.
18:00:10 <ttmx> Uploaded file: https://uploads.kiwiirc.com/files/9315182654964899c0367cd26482b449/image.png
18:00:17 <ttmx> The top gap is tiny compared to the others
18:00:20 <mc47> Liskni_si It sucks that they will, I've been using chormium and I think I'll just cave and use Chrome when the sync breaks
18:00:27 <ttmx> And also, toggling gaps doesn't seem to toggle everything
18:00:46 <ttmx> I'm not using chrome ever
18:01:02 <ttmx> I only use brave here because firefox doesn't like integrated gpus on linux it seems
18:01:13 <ttmx> But goddamn, mozilla is such a good foundation
18:01:17 <mc47> Drop your config again, I've been through that before...
18:01:43 <ttmx> Thank you
18:01:45 <ttmx> https://termbin.com/k6k9
18:01:55 <Solid> I'd imaigne it's the struts
18:02:27 <Liskni_si> mc47: yeah, my excuse is that I've run out of my obsession budget, there's not enough left for me to fight the browser wars
18:02:45 <Liskni_si> I'm fighting on too many other fronts already
18:02:57 <mc47> ttmx it's because you're setting gaps to 0
18:03:21 <mc47> basically gaps are what you have around your screen, excluding the docks
18:03:36 <ttmx> Pain
18:03:37 <mc47> This combination seems to do it in my config
18:03:39 <mc47> . spacingRaw False (Border 0 0 0 0) True (Border 10 10 10 10) True -- between windows
18:03:39 <mc47> . gaps [(U, 10), (R, 10), (L, 10), (D, 10)] -- along the screen, excluding docks
18:03:53 <ttmx> Let me try to explain my idea ig
18:04:00 <ttmx> I want to copy my i3 behaviour xD
18:04:10 <mc47> been there :)
18:04:44 <ttmx> I have 30 pixel gaps between edges and windows, and 15 pixel gaps between windows
18:04:59 <mc47> last time someone else came to the IRC with the same need :D
18:05:27 <ttmx> Issue is that those "between windows" gaps don't stack on top of eachother
18:05:35 <ttmx> They collide with eachother
18:06:24 <ttmx> Any idea how I would do this behaviour?
18:07:00 <mc47> what do you mean "don't stack"?
18:07:02 <mc47> . spacingRaw False (Border 0 0 0 0) True (Border 15 15 15 15) True -- between windows
18:07:02 <mc47> . gaps [(U, 30), (R, 30), (L, 30), (D, 30)] -- along the screen, excluding docks
18:07:02 <mc47>
18:07:04 <mc47> I tried this
18:07:33 <mc47> you have to reset your layout btw, with meta-shift-pace
18:07:51 <ttmx> That does seem to mostly work!
18:07:57 <ttmx> Just still has small gaps on the top part
18:08:01 <ttmx> Uploaded file: https://uploads.kiwiirc.com/files/b18b0567f773351ce41ad0e171467e16/image.png
18:08:26 <ttmx> I just recompiled xmonad with some "breaking" changes so it forced the layout reset xD
18:10:06 <ttmx> Hmm, if I place the avoidstruts in the beginning it has consistent gaps, but they are enormous?
18:11:03 × ttmx quits (5e3ee76f@gateway/web/cgi-irc/kiwiirc.com/ip.94.62.231.111) (Quit: Connection closed)
18:12:16 ttmx joins (5e3ee76f@gateway/web/cgi-irc/kiwiirc.com/ip.94.62.231.111)
18:12:19 <ttmx> I might have accidentally killed xmonad, woops
18:12:31 <ttmx> Anyway
18:12:42 <ttmx> Uploaded file: https://uploads.kiwiirc.com/files/2decc758aff0ceb3b8e7fdd8d63ad4f0/image.png
18:13:23 <ttmx> Yeaaahh, gaps are too big xD
18:13:28 <mc47> avoidStruts should be at the beginning AFAIK
18:13:43 <mc47> so I guess you play with the parameters till you find something that looks good
18:14:10 <ttmx> Mhm, you're right
18:14:24 <ttmx> I'm not quite sure I will?
18:14:59 <ttmx> Jk! I did!
18:15:03 <ttmx> That was... Fast.
18:15:09 <ttmx> Last time I was here for hours and couldn't do it xd
18:15:22 <ttmx> The middle gaps are still too wide
18:15:29 <ttmx> Because they don't stack >:c
18:15:42 <ttmx> Uploaded file: https://uploads.kiwiirc.com/files/cb6f630aa8c741dba255bbf9406e1279/image.png
18:15:54 <ttmx> If you look here, this is 15+15 pixels
18:15:57 <ttmx> Instead of just 15.
18:16:28 <ttmx> I'd have to make it 7.5 to be 15 pixels
18:16:34 <ttmx> BUT IT DOESN'T ACCEPT NON INTS
18:16:44 <geekosaur> neither does X11
18:16:54 <geekosaur> so you couldn't make it 7.5 pixels anyway
18:17:39 <mc47> not sure you'll find a difference between 15 or 16 pixels
18:17:44 <ttmx> Well yes, but i3 does it 😎
18:17:59 <mc47> and I'm not sure there is a "constant" gap layout out-there
18:18:27 <ttmx> It just sets the 15 pixel gap between them, instead of 7.5 css type margin
18:18:41 <ttmx> Any chance I can get the gaps to "overlap"?
18:19:43 <geekosaur> nope
18:19:48 <mc47> No idea, still didn't dive into the layout terrirotry
18:21:17 <ttmx> I think what I have got is good enough then
18:23:44 <ttmx> Aaand now for fullscreen
18:24:05 <ttmx> I wanna have keybind that just fullscreens whatever I'm looking at, how would I do so?
18:24:41 <ttmx> It should make it so that only that window is on my screen and nothing else, not even the xmobar
18:26:39 <mc47> This is helpful
18:26:39 <mc47> https://hackage.haskell.org/package/xmonad-contrib-0.16/docs/XMonad-Layout-MultiToggle.html
18:27:47 <mc47> but you'd also need to toggle the gaps, avoid struts and the spacing
18:28:25 <mc47> I think this should do it
18:28:27 <mc47> https://github.com/TheMC47/dotfiles/blob/master/.xmonad/src/Config.hs#L221
18:29:07 <ttmx> Hmmm
18:29:27 <mc47> and you bind that to a key
18:29:54 <ttmx> Does that somehow get rid of borders too?
18:30:24 <mc47> yes it does
18:31:11 <ttmx> Where does your NBFULL come from?
18:31:26 <mc47> OH
18:31:27 <mc47> yes
18:31:36 <mc47> that's from the git version, it's not released yet
18:31:54 <ttmx> I'm using the git version aswell though Hmmmmmmmmmm
18:32:04 <mc47> oh wait
18:32:05 <mc47> no no
18:32:09 <ttmx> I can grab it again?
18:32:11 <mc47> it's from XMonad.Layout.MultiToggle.Instances
18:32:14 <mc47> I was mistaken
18:32:15 <ttmx> oh, lmao
18:32:24 <geekosaur> was gonna say that looked like a multitoggle instance
18:32:44 <ttmx> It also doesn't like the Toggle :(
18:33:03 <mc47> what do you mean?
18:33:23 <ttmx> Uploaded file: https://uploads.kiwiirc.com/files/7c0698f4b007767ee9016e5fa16f10ca/image.png
18:35:33 <mc47> are you importing it correctly?
18:35:57 <ttmx> import XMonad.Layout.MultiToggle.Instances ?
18:36:19 <mc47> you also need XMonad.Layout.MultiToggle
18:36:25 <ttmx> Oh, thank you
18:36:41 <ttmx> My hand is very warm from all this hand holding xD
18:37:01 <mc47> hahaha :D
18:38:05 <mc47> I have to go eat something now and probably study ;)
18:38:09 <ttmx> Alsoooooooooooo, togglestruts does not toggle my bar :(
18:39:06 <ttmx> Huh, it does not seem to eliminate borders noes
18:39:13 <ttmx> But good luck with studies!
18:39:18 geekosaur wonders if combining struts and gaps is to blame since they use the same underlying mechanism
18:39:35 <ttmx> I'm really happy with what you helped me do!
18:39:51 <ttmx> Is this the correct way to restart xmonad?
18:39:52 <ttmx> , ((modm , xK_F2 ), spawn "xmonad --restart")
18:40:12 <ttmx> I feel its a little weird to spawn a shell to do something "inside" xmonad
18:40:21 <mc47> with pleasure :D thanks
18:40:44 <ttmx> I'll hop onto geekosaur :P
18:41:20 <ttmx> ToggleStruts only toggles accounting it for gaps or not
18:41:24 <ttmx> But it doesn't hide it.
18:42:09 <geekosaur> there's a built-in function but we don't use it, even the default config shells out to xmonad --restart
18:42:31 <geekosaur> I'm only partially around this afternoon
18:43:00 <ttmx> Thats fair!
18:43:08 <geekosaur> one oddity of how we handle docks is if they put themselves on top then toggling struts overlays the window instead of hiding the dock
18:43:16 <ttmx> But yep, got it. It just feels weird to spawn a shell.
18:43:33 <ttmx> How would "toggleStruts" even know it is a dock?
18:44:01 <geekosaur> manageDocks
18:44:19 <geekosaur> a "strut" is a property attached to a window saying how much space to leave for it
18:44:22 <ttmx> Well I think thats the issue, I don't have that anywhere on my config.
18:44:51 <geekosaur> if you have the docks combinator then it added manageStruts for you
18:45:07 <ttmx> Docks combinator?
18:45:26 <ttmx> I have very manual docks I think?
18:45:44 <ttmx> I'm surprised it is even picked up by togglestruts at all
18:46:13 <geekosaur> pastebin your config
18:46:18 <geekosaur> @where paste
18:46:18 <lambdabot> Help us help you: please paste full code, input and/or output at eg https://paste.tomsmeding.com
18:47:03 <ttmx> I already pasted it, but I will again! Give me a sec
18:47:14 <Liskni_si> spawning the shell for restart is almost definitely wrong
18:47:18 <ttmx> https://termbin.com/kbbn2
18:47:29 <Liskni_si> there's a "restart" function in XMonad.Operations
18:47:37 <Liskni_si> or maybe in core or wherever
18:47:43 <Liskni_si> it's imported by import XMonad
18:48:39 <geekosaur> Liskni_si, did you look at the default config's keybindings? it's not used directly any more
18:48:46 <geekosaur> hasn't been for several versions
18:49:01 <geekosaur> https://github.com/xmonad/xmonad/blob/master/src/XMonad/Config.hs#L222
18:49:17 <Liskni_si> oh
18:50:42 <geekosaur> ttmx, you have the docks combinator
18:51:02 <geekosaur>     xmonad $ docks . ewmh $ def
18:51:16 <Liskni_si> now I remember my config uses the restart function so that it can execute a wrapper that resets environment variables instead
18:51:20 <geekosaur> (no line numbers so that's the best I can do)
18:51:47 <Liskni_si> sorry for the confusion then
18:52:48 <ttmx> Right uh... I did not know that was the docks combinator xD
18:54:00 <ttmx> Also geekosaur, fun hack I learned the other day for line numbers curl "https://termbin.com/kbbn2" |nl
18:54:22 <ttmx> Well, how would I fix the dock behaviour then?
18:54:29 <ttmx> If I already have the docks combinator setup?
18:56:22 × geekosaur quits (82650c7a@130.101.12.122) (Ping timeout: 240 seconds)
19:04:59 × idhugo quits (~idhugo@80-62-117-97-mobile.dk.customer.tdc.net) (Ping timeout: 265 seconds)
19:07:44 <vrs> ahh xmobarstrip, that's the one I have a patch in :D
19:09:35 <vrs> (https://github.com/xmonad/xmonad-contrib/pull/2)
19:10:15 geekosaur joins (82650c7a@130.101.12.122)
19:14:36 × hexo quits (~hexo@gateway/tor-sasl/hexo) (Remote host closed the connection)
19:14:55 hexo joins (~hexo@gateway/tor-sasl/hexo)
19:21:09 <ttmx> Riight, how do I get an XMB icon?
19:21:17 <ttmx> or XPM
19:23:15 <ttmx> I wanna grab these into xmonad :( https://github.com/Barbarossa93/Genome/tree/main/.config/qtile/icons
19:25:26 <Liskni_si> you can use icons in xmobar via <icon=…>
19:25:33 <Liskni_si> although maybe not PNG
19:29:11 <ttmx> Yeah exactly...
19:29:14 × sundbry quits (~quassel@99-42-143-129.lightspeed.sntcca.sbcglobal.net) (Ping timeout: 272 seconds)
19:29:31 <ttmx> that format is vectorial right?
19:29:44 <ttmx> So I can't convert it from the png :(
19:34:07 <Liskni_si> xbm is bitmap
19:34:39 <Liskni_si> it can even use xpm
19:34:57 <Liskni_si> if you're feeling adventurous enough for such bleeding edge technology
19:34:58 <Liskni_si> :-D
19:35:20 <Liskni_si> (The XBM format is superseded by XPM, which first appeared for X11 in 1989.)
19:36:57 <ttmx> Goddamn
19:37:13 <ttmx> B o o m e r formats
19:37:18 <ttmx> Older than me by quite a bit
19:37:30 <mc47> I made the cut, I'm barely older than it :D
19:37:35 <ttmx> Right, if its bitmap then it must be convertible from png
19:37:45 <ttmx> B o o m e r
19:37:53 <Liskni_si> mc47: oh, how come you're still studying then?
19:39:03 <mc47> I'm almost 23, and in my 5th semester of my bachelor's
19:39:23 <mc47> with one "gap" year after highschool (actually, language year)
19:39:37 <Liskni_si> oh, so it's more of a off-by-10 than actually being a boomer
19:39:54 <mc47> yeah :D
19:40:18 <Liskni_si> you'd need to be 32+ to be alive when XBM was hot stuff
19:40:35 <mc47> oh, I read that 1999
19:40:52 <mc47> that's what happens when I spend the whole day in front of a screen, things get blurry...
19:41:01 <Liskni_si> :-)
19:41:23 geekosaur hides
19:43:53 <mc47> On another note, is there an easy way to access the "base" constructor of the current layout?
19:44:23 <mc47> like the number of windows of the master pane, when I have the tall layout active
19:47:58 <Liskni_si> no
19:48:04 <geekosaur> no, in part because you have no guarantee that it's even meaningful (the best you can do is introspecting the description to see that it's "Tall")
19:48:37 <Liskni_si> I have some inspection patches in my tree that can be used for this, but it's undocumented and work in progress
19:48:46 <mc47> that kinda sucks
19:49:01 <Liskni_si> I might use some feedback for them though :-)
19:49:16 <mc47> would someone need to traverse the "ModifiedLayout" and "Change" chain ?
19:49:42 <Liskni_si> that's only one of the hurdles one has to go through :-)
19:50:46 <mc47> "only" one...
19:50:50 <Liskni_si> https://github.com/liskin/xmonad-contrib/commit/0f97b26047923472da0406f864679690307dd2ed, https://github.com/liskin/xmonad-contrib/commit/b50ae2a4035ced6db3503956e47c21287de39427, https://github.com/liskin/xmonad-contrib/commit/30305e58a23fc200f95a034d9d966ea03818dec5
19:53:22 <mc47> oh that looks much more complicated than from what I've imagined
19:54:30 <geekosaur> I'd ask what you do if it doesn't have a master pane (say, Tabbed). or it has two (Mastered Tall or similar)
19:55:13 <geekosaur> you can get arbitrarily complex with this stuff and there is serious question as to what you can meaningfully ask about the current layout
19:57:13 <Liskni_si> mc47: you can also send a message with IORef in it and have the layout handle the message by writing something into it
19:57:27 <Liskni_si> or just alter the layout to handle a message by putting something in extensible state
19:57:56 <Liskni_si> it's a hack but it will take quite a while before I get the inspection stuff upstream
19:58:03 <Liskni_si> (anyway brb dinner)
20:04:09 × ttmx quits (5e3ee76f@gateway/web/cgi-irc/kiwiirc.com/ip.94.62.231.111) (Ping timeout: 264 seconds)
20:04:21 <mc47> That was also my guess, I'll probably add something to the extensible state
20:05:30 <mc47> but... why are layouts so complicated?
20:09:09 <geekosaur> what were you expecting them to be? they're arbitrary functions, often in X (~ IO), encoded as constructor chains
20:10:36 <mc47> I haven't given it much thought, really
20:17:36 adamik joins (~nodelet@unaffiliated/adamik)
20:20:11 <adamik> First time with Xmonad - is it advisable to continue with the darcs template and add to it as I see fit, or will that inevitably cause conflict?
20:21:21 <adamik> I am still wrapping my head around the syntax used, and apart from piping Xmobar and compton, I'm struggling to find how to add the new imports to myLayout.
20:35:06 × mc47 quits (~yecinem@89.246.239.190) (Remote host closed the connection)
20:36:16 × evanjs quits (~evanjs@075-129-098-007.res.spectrum.com) (Read error: Connection reset by peer)
20:37:40 evanjs joins (~evanjs@075-129-098-007.res.spectrum.com)
21:05:50 Liskni_si opened 8 pull requests in the last 2 days and should probably take a break now :-)
21:10:47 <geekosaur> hm, think I'll have to add UTF8 encoding to my config when this lands
21:11:00 <geekosaur> none of this helps with logging over dbus :)
21:11:12 × notis quits (~notis@92.118.13.23) (Ping timeout: 272 seconds)
21:12:33 notis joins (~notis@185.51.134.222)
21:14:11 × notis quits (~notis@185.51.134.222) (Client Quit)
21:14:26 notis joins (~notis@185.51.134.222)
21:23:18 molinus[m] joins (molinusmat@gateway/shell/matrix.org/x-vvucyaqehpgwepna)
21:29:25 × notis quits (~notis@185.51.134.222) (Ping timeout: 240 seconds)
21:31:49 notis joins (~notis@185.51.134.222)
21:33:04 ttmx joins (5e3ee76f@gateway/web/cgi-irc/kiwiirc.com/ip.94.62.231.111)
21:33:12 <ttmx> Hello again! Any of the devs for xmonad.org here?
21:37:12 sundbry joins (~quassel@99-42-143-129.lightspeed.sntcca.sbcglobal.net)
21:39:40 <geekosaur> several people with access to it are here. that doesn't mean we necessarily have any business touching it >.>
21:40:48 <geekosaur> if you have found a problem with the web site you can file an issue against the xmonad-web repo
21:43:05 × evanjs quits (~evanjs@075-129-098-007.res.spectrum.com) (Ping timeout: 240 seconds)
21:43:12 <ttmx> Its not a problem!
21:43:30 <ttmx> I'm simply curious on why you guys don't show off all the fancy setups people make with xmonad.
21:43:41 <ttmx> I've always found that weird in most wms
21:43:52 <geekosaur> there was an attempt to update the stuff on the wiki a few years ago, that stalled out
21:44:02 <geekosaur> I think there's still an issue for it
21:44:19 evanjs joins (~evanjs@075-129-098-007.res.spectrum.com)
21:44:32 <ttmx> Just hop over to r/unixporn and ask people with xmonad setups for permission :P
21:44:36 <geekosaur> the main problem is people make their setups and then drift away and we have no way to contact them afterward
21:45:20 <ttmx> Well, you might be able to get a few of them, and then just put those first in the little slideshows! xD
21:46:09 <ttmx> Place a clause in the license that says any content posted to r/unixporn is by default usable by you guys :P
21:47:10 <ttmx> Unrelated, but this is your cpu module, can I change the text displayed in "Cpu:"?
21:47:15 <ttmx> Uploaded file: https://uploads.kiwiirc.com/files/888643e502c0ed754ce942319d3aff8b/image.png
21:48:04 <ttmx> Changing the website also is dependent on your objectives for xmonad ofc
21:49:31 <ttmx> If you want to "keep your userbase small and elitist" and with "No novices asking stupid questions" then a super minimalist and oldschool website is the way to go
21:50:34 <ttmx> Since not super knowledgeable people won't want to use what looks not flashy and antiquated or something
21:50:47 <ttmx> While more powerusers don't really care and know they can play around with it.
21:51:22 <ttmx> But having nice looking little setups is nice for bringing a more general audience to the cause
21:51:48 <ttmx> Completely understandable if you have already thought this out and you think I'm making pointless critique! Just tell me so hahaha
21:52:34 × geekosaur quits (82650c7a@130.101.12.122) (Quit: Connection closed)
21:53:06 <ttmx> My talks were so bad that geekosaur ragequit
22:00:47 <ttmx> Can I resize the icons inside xmobar?
22:01:01 <ttmx> Or do I have to resize them outside?
22:08:12 × adamik quits (~nodelet@unaffiliated/adamik) (Quit: leaving)
22:09:31 <ttmx> I'm trying to fix xmb by hand :)))))))))))))))
22:09:58 <Liskni_si> I'm not sure any of us really thinks about acquiring users
22:10:25 <Liskni_si> would be nice if we could attract people who contribute meaningfully, to both documentation and code
22:11:34 <Liskni_si> but users who don't contribute and just ask questions, well, those are probably better off helping each other on reddit and so on
22:11:58 <Liskni_si> we can barely keep up with the existing flow of issues and pull requests :-/
22:12:00 <ttmx> Totally understandable!
22:12:09 <ttmx> I have to share I'm proud of this one
22:12:16 <ttmx> Uploaded file: https://uploads.kiwiirc.com/files/42c16f64564c638e5c7c32e549923743/image.png
22:12:31 <ttmx> Uploaded file: https://uploads.kiwiirc.com/files/0c560c7adbdd9a3ef09694b5cba2809d/image.png
22:12:37 <ttmx> Bottom one was the original
22:12:42 <Liskni_si> (I wanted to clean up the website over Christmas and here we are in the middle of February still struggling with the same draft PRs … :-/)
22:12:56 <ttmx> WAIT Noooooooooooooooo I just messed up and have to do it again
22:14:39 <ttmx> Okay I got it again
22:15:02 <ttmx> If you give me directions I can maybe help out on the website? I do some webdev stuff
22:15:39 <Liskni_si> https://github.com/xmonad/xmonad-web
22:16:24 <Liskni_si> here are the sources and it's being deployed from the repo using github pages, so it you fork it and tell github you want it deployed somewhere, you can play with it all day long :-)
22:16:46 <ttmx> I know yep, I just have no idea what _you_ want
22:16:50 <Liskni_si> oh
22:16:59 <ttmx> Aaand how would I change the background for an icon?
22:19:14 <Liskni_si> tbh I don't really know where to start, I haven't seen the website for a while
22:19:23 <ttmx> Uploaded file: https://uploads.kiwiirc.com/files/ba5d65f5d91b54ddf591591f716632d3/image.png
22:19:37 <Liskni_si> would be good to go and make sure the information there is up to date, like check links and so on
22:19:39 <ttmx> If you notice here, the icon is missing the bg on top and on the bottom
22:19:54 <ttmx> Understandable yep
22:20:18 <Liskni_si> the rss is totally broken for example and it'd be good if it was generated from the same source as the news
22:20:48 <ttmx> I have no experience with RSS :/
22:20:51 <Liskni_si> and if someone added some more recent videos, screenshots, tutorials, and so on
22:21:22 idhugo joins (~idhugo@80-62-117-97-mobile.dk.customer.tdc.net)
22:21:42 <Liskni_si> fixing the RSS is something I can deal with, I have that on my personal website which also uses github pages, so it'll be a copypaste sort of
22:22:58 <Liskni_si> re icon background: no idea, sorry
22:23:04 <ttmx> I just added empty space to the background icon hahaha
22:23:07 <ttmx> And it worked!
22:23:17 <ttmx> I'm editing it by hand!!! It feels really cool xD
22:23:40 <ttmx> Its such a simple format that I can edit the files by hand, how cool is that
22:24:05 <Liskni_si> you should try "bitmap"
22:24:23 <Liskni_si> (in debian it's in x11-apps)
22:24:33 <Liskni_si> that will give you a glimpse of the past
22:27:36 <ttmx> I'm fine for now :P
22:27:48 <ttmx> Editing hex by hand was fun enough
22:38:59 <ttmx> I made 2 more icons!
22:39:06 <ttmx> I love this
22:39:10 <ttmx> I hate using image editors
22:39:31 <ttmx> Uploaded file: https://uploads.kiwiirc.com/files/4698b566b371c8b03e5dc07c654d03d7/image.png
22:41:45 × idhugo quits (~idhugo@80-62-117-97-mobile.dk.customer.tdc.net) (Ping timeout: 272 seconds)
22:53:22 × seschwar quits (~seschwar@unaffiliated/seschwar) (Quit: :wq)
22:57:01 <ttmx> Uploaded file: https://uploads.kiwiirc.com/files/70734d221bababef5031609afbcc1505/image.png
22:57:08 <ttmx> How cool does this look though
23:18:28 <Liskni_si> ttmx: what does that orange-ish icon next to the window title mean?
23:29:35 <ttmx> Just looks neat, no meaning on that one hahaha
23:29:55 <ttmx> Its static
23:39:20 × fionnan quits (~fionnan@80.111.86.154) (Remote host closed the connection)
23:46:55 <Liskni_si> :-)

All times are in UTC on 2021-02-16.