Home liberachat/#xmonad: Logs Calendar

Logs on 2023-11-06 (liberachat/#xmonad)

01:04:42 hightower3 joins (~hightower@169-216.dsl.iskon.hr)
01:07:11 × hightower2 quits (~hightower@211-188.dsl.iskon.hr) (Ping timeout: 260 seconds)
03:15:35 × [Leary] quits (~Leary]@user/Leary/x-0910699) (Remote host closed the connection)
03:15:49 [Leary] joins (~Leary]@user/Leary/x-0910699)
03:39:01 × td_ quits (~td@i5387091C.versanet.de) (Ping timeout: 240 seconds)
03:40:59 td_ joins (~td@i53870928.versanet.de)
07:17:21 × thunderrd quits (~thunderrd@183.182.114.97) (Ping timeout: 240 seconds)
07:30:33 thunderrd joins (~thunderrd@183.182.111.58)
09:45:00 Manu38 joins (~Manu38@casperdock.inrialpes.fr)
09:45:02 <Manu38> Hi
09:46:52 <Manu38> I am using `XPropertyLog` in my `xmobar` to display the value of a X11 property (the current layout of my keyboard : azerty or bepo). It works perfectly except the fact that I am not able to include an icon along with the text in the same way I am doing with standard Xmobar plugins like `Battery` for example.
09:47:34 <Manu38> In these plugins, to have an icon, I am using things like `<fn=1>\xf004</fn>` in the template paramater.
09:47:54 <Manu38> Anyone here using `XPropertyLog` with an icon ?
10:39:13 <liskin> Yeah I'm using icons in XPropertyLog, works flawlessly
10:40:02 × ft quits (~ft@p4fc2a529.dip0.t-ipconnect.de) (Quit: leaving)
10:47:22 <Manu38> liskin : I'll then check again your config, even if mine is config file while yours is pure haskell.
10:50:11 <Manu38> The thing is that if I add an icon in the `-t` option of a plugin it works fine. It does not work when I add it directly in the `template` "field" of my xmobar config.
10:50:33 × td_ quits (~td@i53870928.versanet.de) (Quit: waking up from the american dream ...)
10:51:02 <liskin> Perhaps you want to elaborate on what "does not work" means exactly?
10:51:25 <liskin> If we know what you're seeing instead of what you expect to be seeing, it'd be much easier to offer advice.
10:51:30 <Manu38> The icon is not displayed, and I have weird square symbols instead of it.
10:51:49 <liskin> Well then that's clearly a character encoding issue isn't it?
10:52:30 <liskin> Either you're having the good old double-utf-8 issue, or your locale isn't set properly.
10:53:11 <Manu38> Don't know since I have no issue with icons when they are specified inside plugins directly.
10:53:12 <liskin> (s/set/generated/, possibly)
10:53:52 <liskin> If it works in xmobar directly then it's more likely a double encoding issue
11:04:39 <Manu38> liskin correct me if I am wrong, but looking here https://github.com/liskin/dotfiles/blob/home/.xmonad/xmobar.hs I don't see that you are using icons along with XPropertyLog.
11:05:36 <liskin> Manu38: uh, what? looking at xmobar.hs you won't be able to tell whether I am or I am not
11:06:20 <Manu38> Ok, then I definitely missunderstood something :)
11:07:01 <liskin> anyway, looking at my config you won't find much I thnk
11:07:13 <Manu38> To me `xmobar.hs` fully includes the configuration of your status bar.
11:07:23 <liskin> what you need to be looking at is exactly how the data gets from xmonad to xmobar
11:07:39 <liskin> and I mean the full sequence of functions involved
11:08:14 <liskin> and also versions of these, as the fixes for the double encoding issues went in in late 2020/early 2021, and perhaps some distros might be shipping old crap
11:08:21 <Manu38> Oh I understand your point. My problem is not on the part sent by Xmonad to Xmobar with `UnsafeXMonadLog`. This is fine.
11:09:07 <liskin> So where is it?
11:09:15 <liskin> 10:46 <Manu38> I am using `XPropertyLog` in my `xmobar` to display the value of a X11 property (the current layout of my keyboard : azerty or bepo). It works perfectly except the fact that I am not able to include an icon along with the text in the same way I am doing with standard Xmobar plugins like `Battery` for example.
11:10:21 <Manu38> On the part of my Xmobar showing my XProperty
11:10:47 <Manu38> Said differently
11:11:47 <liskin> wtf
11:11:54 <Manu38> In line 24 of your `xmobar.hs` file, I would like to have ` [ "<fn=1>\xf004</fn> %_XMOBAR_DND%" ]` instead of just ` [ "%_XMOBAR_DND%" ]`
11:12:19 <Manu38> To have an icon just before showing the text of the property.
11:12:23 <Manu38> Am I clear ?
11:12:38 <liskin> yeah that should just work
11:13:28 <liskin> so you're seeing no icons in xmobar whatsoever anywhere?
11:13:52 <Manu38> Cool if I am clear and sorry for the complexity of this dialog :(
11:14:08 <Manu38> No I am seeing icons, wait let me show you a screeshot
11:18:13 <Manu38> https://postimg.cc/64w5Yj2v
11:19:28 <Manu38> Here the problem is just before the date.
11:20:04 <liskin> so what does the config look like then?
11:20:22 td_ joins (~td@i53870926.versanet.de)
11:22:40 <Manu38> `template = " <fn=1>\xf073</fn>%date%"`
11:23:56 <Manu38> with `Run Date "<fc=#b5c9e5> %a %Y-%m-%d</fc> <fc=#8be9fd><fn=1>\xf017</fn> %H:%M:%S</fc>" "date" 10`
11:25:17 <Manu38> And if I move the icon from `template` to the `Run Date` like below it is ok :
11:25:17 <Manu38> `template = "%date%"`
11:25:18 <Manu38> `Run Date "<fc=#b5c9e5><fn=1>\xf073</fn> %a %Y-%m-%d</fc> <fc=#8be9fd><fn=1>\xf017</fn> %H:%M:%S</fc>" "date" 10`
11:25:43 <liskin> any chance we can see the whole thing?
11:26:21 <Manu38> Sure, 2 sec
11:28:49 <Manu38> Here it is https://pastebin.com/MThMi6vi
11:29:53 <Manu38> The problem is on line 48, the keyboard icon is not properly displayed, but instead it is shown as 6 rectangles (like the rectangles in front of the date in my previous screenshot)
11:31:37 <liskin> right, I understand now
11:32:28 <Manu38> Again, sorry I should have posted the whole thing since the beginning instead of trying to explain the problem with my bad english.
11:32:56 <liskin> you were right I don't do this in my config
11:33:01 <liskin> but I just tried and it just works :-)
11:33:52 <liskin> can you paste the whole config that *does not* work
11:34:24 <Manu38> The one I pasted above is the one that does not work
11:35:08 <Manu38> But I am on Ubuntu, which often late with its packages, and maybe I have this problem of double encoding you where mentionning.
11:35:11 <liskin> you said it only doesn't work if you move the icon to the template
11:35:16 <liskin> and there are no icons in the template there
11:35:58 <Manu38> There is an icon, the keyboard one, line 48
11:36:02 <Manu38> `<fn=1>\xf11c</fn>`
11:36:16 <Manu38> After the action.
11:36:57 <liskin> ah, that one
11:37:50 <liskin> I was looking for one before the date, as that was in the screenshot
11:38:48 <Manu38> Sorry, the screenshot was from tests I did. But you got the issue now I think.
11:39:02 <Manu38> I mean, you understood the issue.
11:39:44 <liskin> yeah, I do understand it, I just can't reproduce it with the xmobar version I have
11:40:25 <Manu38> I can resume it by : icons specified by things like `<fn=1>\xf11c</fn>` in the `template` field of the xmobar config are not displayed properly.
11:40:58 <Manu38> I have version 0.36
11:41:30 <liskin> what I'd suggest you do is create the absolute minimal xmobar config that reproduces it (e.g. just two things in the template - an icon and %date% and then an icon in date's command definition) and if that still doesn't work then report it to xmobar upstream
11:43:06 <Manu38> Yes.
11:43:10 <Manu38> Thank you very much.
11:46:26 <liskin> it's possible you're actually just running into the double encoding bug
11:46:36 <liskin> the fix for that one went in in 0.38
11:46:42 <liskin> (April 2021)
11:47:51 <liskin> it's a bit strange though
11:48:27 <liskin> UTF8.isUTF8Encoded "\xf11c" is False, so that shouldn't happen
12:20:45 <Manu38> Ok. That's not crucial at all for me :)
12:21:10 <Manu38> I was just asking about this "bug" here to better understand.
12:21:50 <Manu38> I can live my Xmonad life without my keyboard icon, since I know "bepo" and "azerty" words are related to my keyboard :)
12:23:47 <liskin> you can also just try updating xmobar…
12:24:10 <liskin> (personally I'd recommend 0.44 as later versions use a different font rendering code which might break all sorts of stuff)
12:24:50 <Manu38> I guess then that I would have to recompile it, right ?
12:26:39 <liskin> Suppose so, dunno where you got the current one.
12:27:11 <Manu38> from Ubuntu's package manager :)
12:33:19 × mightybyte quits (~mightybyt@ec2-52-201-220-249.compute-1.amazonaws.com) (Server closed connection)
12:33:34 mightybyte joins (~mightybyt@ec2-52-201-220-249.compute-1.amazonaws.com)
12:36:14 × thunderrd quits (~thunderrd@183.182.111.58) (Remote host closed the connection)
12:37:03 × Manu38 quits (~Manu38@casperdock.inrialpes.fr) (Ping timeout: 248 seconds)
12:39:47 thunderrd joins (~thunderrd@183.182.111.58)
12:40:10 × thunderrd quits (~thunderrd@183.182.111.58) (Remote host closed the connection)
13:17:57 thunderrd joins (~thunderrd@183.182.111.58)
14:46:26 × bsima quits (~bsima@2604:a880:400:d0::19f1:7001) (Quit: ZNC 1.8.2 - https://znc.in)
14:47:09 bsima joins (~bsima@143.198.118.179)
17:05:01 × hightower3 quits (~hightower@169-216.dsl.iskon.hr) (Ping timeout: 240 seconds)
18:35:58 × thunderrd quits (~thunderrd@183.182.111.58) (Remote host closed the connection)
18:46:36 × Natch quits (~natch@c-9e07225c.038-60-73746f7.bbcust.telenor.se) (Ping timeout: 248 seconds)
18:47:55 Natch joins (~natch@c-9e07225c.038-60-73746f7.bbcust.telenor.se)
19:11:38 <Solid> [Leary]: if you have time, would you be so kind and help a new and stupid user with the nix flake? :)
19:14:18 raghavgururajan_ joins (ea769b8000@2604:bf00:561:2000::242)
19:14:30 alethkit_ joins (23bd17ddc6@sourcehut/user/alethkit)
19:14:38 jmct_ joins (sid160793@id-160793.tinside.irccloud.com)
19:15:05 immibis_ joins (~quassel@social.immibis.com)
19:17:17 jusa_ joins (~jusa@kraa.fi)
19:17:26 _qw_ joins (~eqw@31.134.178.99)
19:18:00 dexter2 joins (dexter@2a01:7e00::f03c:91ff:fe86:59ec)
19:18:21 × jmct quits (sid160793@id-160793.tinside.irccloud.com) (Ping timeout: 246 seconds)
19:18:21 × alethkit quits (23bd17ddc6@sourcehut/user/alethkit) (Ping timeout: 246 seconds)
19:18:23 × raghavgururajan quits (ea769b8000@user/raghavgururajan) (Ping timeout: 246 seconds)
19:18:25 × jusa quits (~jusa@kraa.fi) (Ping timeout: 246 seconds)
19:18:25 × _qw quits (~eqw@31.134.178.99) (Ping timeout: 246 seconds)
19:18:25 × immibis quits (~quassel@social.immibis.com) (Ping timeout: 246 seconds)
19:18:26 × dexter1 quits (dexter@2a01:7e00::f03c:91ff:fe86:59ec) (Ping timeout: 246 seconds)
19:18:28 jmct_ is now known as jmct
19:18:29 alethkit_ is now known as alethkit
19:18:46 × raghavgururajan_ quits (ea769b8000@2604:bf00:561:2000::242) (Read error: Connection reset by peer)
19:18:46 × alethkit quits (23bd17ddc6@sourcehut/user/alethkit) (Read error: Connection reset by peer)
19:18:47 × zoglesby quits (f0f8ca1525@user/zoglesby) (Read error: Connection reset by peer)
19:18:47 × samhh quits (7569f027cf@2604:bf00:561:2000::e4) (Read error: Connection reset by peer)
19:19:01 zoglesby joins (f0f8ca1525@2604:bf00:561:2000::64)
19:19:01 raghavgururajan joins (ea769b8000@user/raghavgururajan)
19:19:02 × zoglesby quits (f0f8ca1525@2604:bf00:561:2000::64) (Changing host)
19:19:02 zoglesby joins (f0f8ca1525@user/zoglesby)
19:19:58 hightower2 joins (~hightower@235-112.dsl.iskon.hr)
19:20:05 alethkit joins (23bd17ddc6@sourcehut/user/alethkit)
19:20:18 × hightower2 quits (~hightower@235-112.dsl.iskon.hr) (Remote host closed the connection)
19:20:38 samhh_ joins (7569f027cf@2604:bf00:561:2000::e4)
19:20:42 hightower2 joins (~hightower@235-112.dsl.iskon.hr)
20:40:28 ft joins (~ft@p4fc2a529.dip0.t-ipconnect.de)
20:50:39 todi joins (~todi@p4fd1a3e6.dip0.t-ipconnect.de)
20:50:58 × todi quits (~todi@p4fd1a3e6.dip0.t-ipconnect.de) (Read error: Connection reset by peer)
21:35:54 justache is now known as justThanks
21:42:23 todi joins (~todi@p4fd1a3e6.dip0.t-ipconnect.de)
21:43:07 × todi quits (~todi@p4fd1a3e6.dip0.t-ipconnect.de) (Read error: Connection reset by peer)
21:46:26 todi joins (~todi@p4fd1a3e6.dip0.t-ipconnect.de)
21:47:40 × todi quits (~todi@p4fd1a3e6.dip0.t-ipconnect.de) (Read error: Connection reset by peer)
21:52:32 todi joins (~todi@p4fd1a3e6.dip0.t-ipconnect.de)
21:52:44 × todi quits (~todi@p4fd1a3e6.dip0.t-ipconnect.de) (Read error: Connection reset by peer)
21:56:31 todi joins (~todi@p4fd1a3e6.dip0.t-ipconnect.de)
21:58:36 × todi quits (~todi@p4fd1a3e6.dip0.t-ipconnect.de) (Read error: Connection reset by peer)
22:01:54 todi joins (~todi@p4fd1a3e6.dip0.t-ipconnect.de)
22:02:21 × todi quits (~todi@p4fd1a3e6.dip0.t-ipconnect.de) (Read error: Connection reset by peer)
22:06:07 todi joins (~todi@p4fd1a3e6.dip0.t-ipconnect.de)
22:06:07 × todi quits (~todi@p4fd1a3e6.dip0.t-ipconnect.de) (Read error: Connection reset by peer)
22:09:18 todi joins (~todi@p4fd1a3e6.dip0.t-ipconnect.de)
22:09:48 × todi quits (~todi@p4fd1a3e6.dip0.t-ipconnect.de) (Read error: Connection reset by peer)
22:15:43 todi joins (~todi@p4fd1a3e6.dip0.t-ipconnect.de)
22:17:12 × todi quits (~todi@p4fd1a3e6.dip0.t-ipconnect.de) (Read error: Connection reset by peer)
22:20:18 todi joins (~todi@p4fd1a3e6.dip0.t-ipconnect.de)
22:20:53 × todi quits (~todi@p4fd1a3e6.dip0.t-ipconnect.de) (Read error: Connection reset by peer)

All times are in UTC on 2023-11-06.