Home freenode/#xmonad: Logs Calendar

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

00:04:56 gzj joins (~gzj@unaffiliated/gzj)
00:42:22 × notis quits (~notis@92.118.13.191) (Ping timeout: 276 seconds)
01:45:30 × p71 quits (~chatzilla@097-083-185-160.res.spectrum.com) (Remote host closed the connection)
01:50:47 p71 joins (~chatzilla@097-083-185-160.res.spectrum.com)
01:57:07 × gzj quits (~gzj@unaffiliated/gzj) (Remote host closed the connection)
01:57:29 gzj joins (~gzj@unaffiliated/gzj)
02:01:29 GZJ0X_ joins (~gzj@unaffiliated/gzj)
02:04:57 × gzj quits (~gzj@unaffiliated/gzj) (Ping timeout: 265 seconds)
02:53:05 × GZJ0X_ quits (~gzj@unaffiliated/gzj) (Remote host closed the connection)
02:53:26 GZJ0X_ joins (~gzj@unaffiliated/gzj)
02:55:06 × GZJ0X_ quits (~gzj@unaffiliated/gzj) (Remote host closed the connection)
02:55:28 GZJ0X_ joins (~gzj@unaffiliated/gzj)
03:03:10 × xaltsc quits (~xaltsc@unaffiliated/xaltsc) (Ping timeout: 265 seconds)
03:27:26 × toniz4 quits (~toniz4@unaffiliated/toniz4) (Quit: leaving)
03:27:42 werneta joins (~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net)
03:48:36 × theDon quits (~td@94.134.91.130) (Ping timeout: 240 seconds)
03:50:37 theDon joins (~td@94.134.91.67)
04:22:59 materiyolo joins (~materiyol@112.204.160.151)
04:34:20 × juliusdelta quits (~jd@23-127-25-87.lightspeed.rcsntx.sbcglobal.net) (Quit: leaving)
04:41:13 × styledash quits (~styledash@157.230.173.136) (Quit: The Lounge - https://thelounge.chat)
04:42:22 styledash joins (~styledash@157.230.173.136)
05:00:06 × GZJ0X_ quits (~gzj@unaffiliated/gzj) (Read error: Connection reset by peer)
05:00:26 GZJ0X_ joins (~gzj@unaffiliated/gzj)
05:02:10 × GZJ0X_ quits (~gzj@unaffiliated/gzj) (Remote host closed the connection)
05:02:29 GZJ0X_ joins (~gzj@unaffiliated/gzj)
05:03:03 × GZJ0X_ quits (~gzj@unaffiliated/gzj) (Remote host closed the connection)
05:03:22 GZJ0X_ joins (~gzj@unaffiliated/gzj)
06:01:08 × GZJ0X_ quits (~gzj@unaffiliated/gzj) (Remote host closed the connection)
06:01:28 GZJ0X_ joins (~gzj@unaffiliated/gzj)
06:04:20 palo1 joins (~weechat@c-base/crew/palo)
06:07:21 × palo quits (~weechat@c-base/crew/palo) (Ping timeout: 246 seconds)
06:07:21 palo1 is now known as palo
06:16:07 × GZJ0X_ quits (~gzj@unaffiliated/gzj) (Read error: Connection reset by peer)
06:16:29 GZJ0X_ joins (~gzj@unaffiliated/gzj)
06:19:30 × growpotkin quits (~growpotki@130-45-30-154.dyn.grandenetworks.net) (Quit: ZNC 1.8.2 - https://znc.in)
06:20:19 growpotkin joins (~growpotki@130-45-30-154.dyn.grandenetworks.net)
06:49:08 × GZJ0X_ quits (~gzj@unaffiliated/gzj) (Remote host closed the connection)
06:49:29 GZJ0X_ joins (~gzj@unaffiliated/gzj)
06:55:06 × GZJ0X_ quits (~gzj@unaffiliated/gzj) (Remote host closed the connection)
06:55:27 GZJ0X_ joins (~gzj@unaffiliated/gzj)
06:57:12 growpotk- joins (~growpotki@130-45-30-154.dyn.grandenetworks.net)
06:59:54 toniz4 joins (~toniz4@unaffiliated/toniz4)
07:32:57 × growpotk- quits (~growpotki@130-45-30-154.dyn.grandenetworks.net) (Ping timeout: 264 seconds)
07:44:07 × GZJ0X_ quits (~gzj@unaffiliated/gzj) (Read error: Connection reset by peer)
07:44:29 GZJ0X_ joins (~gzj@unaffiliated/gzj)
07:54:07 × growpotkin quits (~growpotki@130-45-30-154.dyn.grandenetworks.net) (Quit: ZNC 1.8.2 - https://znc.in)
08:01:02 GZJ0X__ joins (~gzj@unaffiliated/gzj)
08:03:33 × GZJ0X_ quits (~gzj@unaffiliated/gzj) (Ping timeout: 246 seconds)
08:33:07 × GZJ0X__ quits (~gzj@unaffiliated/gzj) (Remote host closed the connection)
08:33:28 GZJ0X__ joins (~gzj@unaffiliated/gzj)
08:37:50 notis joins (~notis@92.118.13.191)
09:00:16 × toniz4 quits (~toniz4@unaffiliated/toniz4) (Ping timeout: 240 seconds)
09:02:22 toniz4 joins (~toniz4@unaffiliated/toniz4)
10:00:53 malook joins (~Thunderbi@2a02:9b0:4000:12ac:440d:3384:4a25:a033)
10:01:21 malook parts (~Thunderbi@2a02:9b0:4000:12ac:440d:3384:4a25:a033) ()
10:06:02 mc47 joins (~yecinem@89.246.239.190)
10:10:20 × toniz4 quits (~toniz4@unaffiliated/toniz4) (Quit: leaving)
10:10:36 toniz4 joins (~toniz4@unaffiliated/toniz4)
10:10:36 × toniz4 quits (~toniz4@unaffiliated/toniz4) (Client Quit)
10:14:01 toniz4 joins (~toniz4@unaffiliated/toniz4)
10:21:50 Tanish2002 joins (6746a730@103.70.167.48)
10:24:20 seschwar joins (~seschwar@unaffiliated/seschwar)
10:59:50 Tanish200229 joins (6746a730@103.70.167.48)
11:00:43 × Tanish2002 quits (6746a730@103.70.167.48) (Ping timeout: 240 seconds)
11:03:10 Tanish200229 is now known as Tanish2002
11:17:15 × terrorjack quits (~terrorjac@ec2-52-47-143-92.eu-west-3.compute.amazonaws.com) (Quit: The Lounge - https://thelounge.chat)
11:37:05 × GZJ0X__ quits (~gzj@unaffiliated/gzj) (Read error: Connection reset by peer)
11:37:26 GZJ0X__ joins (~gzj@unaffiliated/gzj)
11:38:07 × GZJ0X__ quits (~gzj@unaffiliated/gzj) (Remote host closed the connection)
11:38:30 GZJ0X__ joins (~gzj@unaffiliated/gzj)
11:45:19 × toniz4 quits (~toniz4@unaffiliated/toniz4) (Quit: leaving)
11:45:40 toniz4 joins (~toniz4@unaffiliated/toniz4)
11:49:23 terrorjack joins (~terrorjac@ec2-18-162-149-225.ap-east-1.compute.amazonaws.com)
11:53:44 × toniz4 quits (~toniz4@unaffiliated/toniz4) (Quit: leaving)
11:54:07 toniz4 joins (~toniz4@unaffiliated/toniz4)
12:06:57 codedmart_ is now known as codedmart
12:09:03 × Tanish2002 quits (6746a730@103.70.167.48) (Ping timeout: 240 seconds)
12:33:18 xaltsc joins (~xaltsc@unaffiliated/xaltsc)
12:34:15 geekosaur joins (ac3a8f5e@172.58.143.94)
12:47:38 Tanish2002 joins (6746a730@103.70.167.48)
13:00:10 × GZJ0X__ quits (~gzj@unaffiliated/gzj) (Remote host closed the connection)
13:00:31 GZJ0X__ joins (~gzj@unaffiliated/gzj)
13:07:39 × dxld quits (~dxld@80-109-136-248.cable.dynamic.surfer.at) (Quit: Bye)
13:33:03 × Tanish2002 quits (6746a730@103.70.167.48) (Ping timeout: 240 seconds)
14:08:13 × GZJ0X__ quits (~gzj@unaffiliated/gzj) (Remote host closed the connection)
14:08:35 GZJ0X__ joins (~gzj@unaffiliated/gzj)
14:10:58 × notis quits (~notis@92.118.13.191) (Ping timeout: 276 seconds)
14:12:12 × GZJ0X__ quits (~gzj@unaffiliated/gzj) (Remote host closed the connection)
14:12:34 GZJ0X__ joins (~gzj@unaffiliated/gzj)
14:15:11 × GZJ0X__ quits (~gzj@unaffiliated/gzj) (Remote host closed the connection)
14:15:32 GZJ0X__ joins (~gzj@unaffiliated/gzj)
14:15:53 AZG256 joins (~user@78-56-98-5.static.zebra.lt)
14:16:02 Zetagon joins (~leo@c151-177-52-233.bredband.comhem.se)
14:16:14 × GZJ0X__ quits (~gzj@unaffiliated/gzj) (Remote host closed the connection)
14:16:36 GZJ0X__ joins (~gzj@unaffiliated/gzj)
14:17:11 × GZJ0X__ quits (~gzj@unaffiliated/gzj) (Remote host closed the connection)
14:17:33 GZJ0X__ joins (~gzj@unaffiliated/gzj)
14:18:12 × GZJ0X__ quits (~gzj@unaffiliated/gzj) (Remote host closed the connection)
14:18:35 GZJ0X__ joins (~gzj@unaffiliated/gzj)
14:19:43 <mc47> Might be a longshot, but did anyone successfully managed to correctly display arabic text (like window titles) on xmobar?
14:19:57 <mc47> Tried a couple of fonts and none worked correctly
14:20:13 × GZJ0X__ quits (~gzj@unaffiliated/gzj) (Remote host closed the connection)
14:23:46 <geekosaur> it probably needs to use a library such as pango to get RTL text support
14:26:26 <mc47> oh alright, and that would be on the xmonad side or the xmobar side?
14:26:51 <geekosaur> nope
14:28:21 <geekosaur> I don't know details here but I haven't seen an application handle RTL text properly without the use of an RTL-capable font rendering library
14:28:53 <geekosaur> (and many still get transitions wrong even when they do use such libraries, there are a few nits in chromium for example)
14:29:53 <mc47> so I'll probably need to write a custom plugin for xmobar to handle it
14:30:01 <mc47> wellp, doesn't seem worth it at the moment
14:30:03 <mc47> thanks!
14:30:42 <Liskni_si> not really a plugin, you'd need to integrate yet another text rendering path into it
14:31:07 <geekosaur> yes :(
14:32:21 <mc47> Oh, is that something like xft?
14:32:23 <mc47> TIL
14:32:55 <geekosaur> it's worse, it's at a lower level than xft
14:35:57 <Liskni_si> Pango is a special-purpose library for text and not a general-purpose graphics rendering library such as Cairo, with which Pango can be used. The Cairo documentation recommends Pango be used to "render" text rather than Cairo for all but the simplest text "rendering".
14:36:14 <Liskni_si> so that means polybar shouldn't render correctly either
14:36:23 <Liskni_si> but taffybar uses gtk, so that one should just work, I guess
14:38:40 <mc47> Alright, think I'll just stick with xmobar for now... I don't encounter arabic text a lot, so it's not that big a deal
14:38:43 <mc47> thanks
14:40:45 <Liskni_si> might be less hassle to just stick a transliterator somewhere in the middle, so that you can at least see something :-)
14:41:13 × toniz4 quits (~toniz4@unaffiliated/toniz4) (Quit: leaving)
14:41:36 toniz4 joins (~toniz4@unaffiliated/toniz4)
14:44:35 <mc47> it's... complicated! You can't really decide what vowel to put in without considering the whole word (and sometimes even the sentence) and the way text is written, all the information that could tell you what vowel to put is omitted (because you just know from the context how to pronounce the letters)
14:45:37 <Liskni_si> oh
14:46:08 <Liskni_si> silly me, I thought transliterating it may be easier than shaping it for rendering :-/
14:46:58 <geekosaur> nope
14:48:59 <mc47> I probably only have at most one window with an arabic title, so it's still okay
14:55:24 × geekosaur quits (ac3a8f5e@172.58.143.94) (Quit: Connection closed)
15:15:18 kelnoky joins (~shao@ip1f1285ec.dynamic.kabel-deutschland.de)
15:18:33 notis joins (~notis@92.118.13.23)
16:32:44 isovector joins (~isovector@172.103.216.166)
16:33:02 <isovector> i'm a haskell programmer trying to run rofi in -dmenu mode in xmonad via readProcess
16:33:46 <isovector> the code works fine in ghci, but as soon as i do it in xmonad, readProcess never seems to complete
16:35:28 <isovector> https://github.com/isovector/tino/blob/9303c0002f22f8a7a960e1ec16f1a6e915553607/tino-monad/src/Main.hs#L194-L206 i'm using notify-send to printf my way through the execution here; but none of them fire
16:35:47 <isovector> with definitions https://github.com/isovector/tino/blob/9303c0002f22f8a7a960e1ec16f1a6e915553607/tino-monad/src/Main.hs#L61-L78
16:35:58 <isovector> does xmonad do something weird to readProcess? or is this some issue with X or something?
16:40:18 <Liskni_si> not sure what's wrong with readProcess but there's runProcessWithInput in XMonad.Util.Run that does work
16:40:39 <Liskni_si> https://github.com/liskin/dotfiles/blob/home/.xmonad/XMonad/Util/My.hs#L62
16:41:38 <isovector> much obliged, thanks!
16:44:45 × xaltsc quits (~xaltsc@unaffiliated/xaltsc) (Ping timeout: 272 seconds)
16:44:55 × rafadc_ quits (~rafadc@213.37.16.152.dyn.user.ono.com) (Ping timeout: 260 seconds)
16:45:03 <isovector> that did the trick! you're amazing, Liskni_si! thanks
16:47:09 <Liskni_si> I guess it's got something to do with readProcessWithExitCode waiting for the process to exit, and xmonad interfering with that wait
16:50:37 <Liskni_si> yeah that's probably it, the manpage for waitpid says that if SIGCHLD is set to SIG_IGN, which it is by xmonad, waitpid just blocks
16:53:57 <isovector> marvelous. i just automated away a few minutes of work i do every few hours
16:58:06 <Liskni_si> I have something similar to what you did, but it looks for all git repos via locate (ugly hacks but works well), and combines rofi with frece to have the list ordered by frecency
16:58:19 <Liskni_si> https://github.com/liskin/dotfiles/blob/home/bin/rofi-git-all-repos and so on
17:21:34 geekosaur joins (82650c7a@130.101.12.122)
17:23:46 × materiyolo quits (~materiyol@112.204.160.151) (Quit: WeeChat 3.0)
17:31:18 dxld joins (~dxld@rush.pub.dxld.at)
17:50:05 × notis quits (~notis@92.118.13.23) (Quit: WeeChat 3.0)
17:52:49 notis joins (~notis@92.118.13.191)
18:02:40 × toniz4 quits (~toniz4@unaffiliated/toniz4) (Quit: leaving)
18:10:02 dementorr joins (5678ef88@86.120.239.136)
18:11:30 <dementorr> Hello! Is there a way to find out the current focused window id? (the hex value)
18:12:35 <dementorr> I think it should be here somewhere: https://hackage.haskell.org/package/xmonad-0.15/docs/XMonad-StackSet.html#t:StackSet
18:14:16 <Liskni_si> dementorr: https://hackage.haskell.org/package/xmonad-0.15/docs/XMonad-Operations.html#v:withFocused
18:14:45 <Liskni_si> or just do w <- withFocused W.peek
18:16:37 isovector parts (~isovector@172.103.216.166) ("WeeChat 2.9")
18:17:08 <dementorr> Liskni_si: So if I do (withFocused W.peek) I will get the number (like 0x350003)? Sorry for the dumb question
18:18:29 <geekosaur> I think it's just withFocused id, and you will get a number. "hex" has to do with how you display it, it's not an attribute of the window id
18:18:39 <Liskni_si> dementorr: You will get a Window, which is a number in the abstract sense. If you need it in hex, you'll then need to convert it to hex
18:18:59 <Liskni_si> oh, right, by withFocused W.peek I meant withWindowSet W.peek, sorry
18:19:09 <geekosaur> https://github.com/geekosaur/xmonad.hs/blob/pyanfar/xmonad.hs#L215
18:19:24 <dementorr> Okay, I'll try it out. Thanks guys!
18:19:54 <Liskni_si> geekosaur: why not just "xprop -id " ++ show w ?
18:20:22 <geekosaur> probaly would work but I prefer the hex id because some things do only work with it
18:20:39 <geekosaur> (they treat an unadorned number as a title prefix, for example)
18:21:05 <Liskni_si> I see
18:26:16 × Zetagon quits (~leo@c151-177-52-233.bredband.comhem.se) (Ping timeout: 240 seconds)
18:32:39 <geekosaur> also I think it redisplays it as it was given, and the hex one has some clues because of how the server allocates window IDs (this is probably a horrid hack that I should not rely on :)
18:33:55 × mc47 quits (~yecinem@89.246.239.190) (Remote host closed the connection)
18:42:18 xaltsc joins (~xaltsc@unaffiliated/xaltsc)
18:44:29 <dementorr> geekosaur: Thank you for your example! I have managed to do a screenshot of the current window without using the mouse :)
18:45:43 × geekosaur quits (82650c7a@130.101.12.122) (Ping timeout: 240 seconds)
18:46:57 × totte quits (~totte@chakra/totte) (Ping timeout: 256 seconds)
18:48:23 totte joins (~totte@chakra/totte)
18:57:00 × notis quits (~notis@92.118.13.191) (Ping timeout: 246 seconds)
19:03:54 geekosaur joins (82650c7a@130.101.12.122)
19:05:15 × AZG256 quits (~user@78-56-98-5.static.zebra.lt) (Quit: ERC (IRC client for Emacs 26.1))
19:05:44 <geekosaur> there's also an example of that using scrot, which doesn't need a window ID (but does need an unGrab)
19:09:16 × palo quits (~weechat@c-base/crew/palo) (Ping timeout: 240 seconds)
19:11:35 palo joins (~weechat@c-base/crew/palo)
19:29:47 × dementorr quits (5678ef88@86.120.239.136) (Quit: Connection closed)
19:40:44 abhixec joins (~abhixec@c-67-169-139-16.hsd1.ca.comcast.net)
19:41:39 <abhixec> When I have a floating scratchpad and switch focus to my master is there a way to make the scratch not be on top of the master?
19:51:00 jamik joins (~james@d75-155-42-59.abhsia.telus.net)
20:04:04 <geekosaur> not really
20:04:15 <geekosaur> our floating window handling is kinda horrible
20:07:05 <jamik> Hey guys, I'm trying to use the description of the current layout to decide whether to jump to another layout but I don't know how to reference the current layout. How do I get the current layout?
20:09:54 <jamik> On another note, is there an canonical way to refer to the last layout? I guess something like the workspace history contrib packgae but for layouts
20:10:59 <jamik> a*
20:15:09 <geekosaur> withWindowSet $ W.description . W.layout . W.workspace . W.current -- iirc
20:15:31 <geekosaur> and there's no good way to refer to the last layout, no
20:16:51 <jamik> thanks geekosaur, now that I know how to get the layour I can just keep track of the last one myself. Appreciate the help!
20:25:22 × geekosaur quits (82650c7a@130.101.12.122) (Ping timeout: 240 seconds)
20:36:35 notis joins (~notis@92.118.13.191)
20:38:39 geekosaur joins (82650c7a@130.101.12.122)
20:47:06 <abhixec> thanks geekosaur, is there any plans of making it better?
20:47:31 <geekosaur> not really, it'd require a lot of breaking changes to the core
20:52:40 <abhixec> how is that your name doesn't appear on '/names' list?
20:52:42 abhixec wonders
21:32:33 × geekosaur quits (82650c7a@130.101.12.122) (Quit: Connection closed)
21:54:35 × abhixec quits (~abhixec@c-67-169-139-16.hsd1.ca.comcast.net) (Remote host closed the connection)
21:57:43 abhixec joins (~abhixec@c-67-169-139-16.hsd1.ca.comcast.net)
22:14:03 deja joins (~deja@212095008174.public.telering.at)
22:30:31 × abhixec quits (~abhixec@c-67-169-139-16.hsd1.ca.comcast.net) (Remote host closed the connection)
22:54:37 growpotkin joins (~growpotki@130-45-30-154.dyn.grandenetworks.net)
22:59:03 × xaltsc quits (~xaltsc@unaffiliated/xaltsc) (Ping timeout: 272 seconds)

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