Home liberachat/#xmonad: Logs Calendar

Logs on 2021-10-19 (liberachat/#xmonad)

00:07:02 <abhixec> ah I missed that *facepalm*
00:11:43 × abhixec quits (~abhixec@c-67-169-139-16.hsd1.ca.comcast.net) (Quit: restarting)
00:59:41 abhixec joins (~abhixec@c-67-169-139-16.hsd1.ca.comcast.net)
01:25:47 <liskin> uff, #399 is no more and #626 is almost ready for review, I'm almost certain I can finish this tomorrow
01:40:35 × abhixec quits (~abhixec@c-67-169-139-16.hsd1.ca.comcast.net) (Ping timeout: 258 seconds)
01:43:44 cjb94216 joins (~cjb@user/cjb)
01:45:52 × cjb quits (~cjb@user/cjb) (Ping timeout: 260 seconds)
01:46:28 cjb94216 is now known as cjb
01:49:33 abhixec joins (~abhixec@c-67-169-139-16.hsd1.ca.comcast.net)
02:03:03 × banc quits (banc@gateway/vpn/airvpn/banc) (Ping timeout: 265 seconds)
02:24:15 banc joins (banc@gateway/vpn/airvpn/banc)
02:44:08 × td_ quits (~td@muedsl-82-207-238-233.citykom.de) (Ping timeout: 265 seconds)
02:45:43 td_ joins (~td@muedsl-82-207-238-089.citykom.de)
04:46:35 × rekahsoft quits (~rekahsoft@52.129.35.150) (Ping timeout: 264 seconds)
04:49:59 × thunderrd quits (~thunderrd@183.182.110.19) (Read error: Connection reset by peer)
04:50:19 thunderrd joins (~thunderrd@183.182.110.19)
04:54:02 × cjb quits (~cjb@user/cjb) ()
05:13:04 × geekosaur quits (~geekosaur@xmonad/geekosaur) (Remote host closed the connection)
05:18:14 geekosaur joins (~geekosaur@xmonad/geekosaur)
05:59:20 mc47 joins (~mc47@xmonad/TheMC47)
06:20:52 × mc47 quits (~mc47@xmonad/TheMC47) (Remote host closed the connection)
06:49:28 dschrempf joins (~dominik@070-207.dynamic.dsl.fonira.net)
06:53:09 qbt joins (~qbt@user/edun)
06:53:35 qbt parts (~qbt@user/edun) ()
07:06:15 <Solid> ^^^^ good news, everybody!
07:06:38 <Solid> s/body/one/
08:06:13 mc47 joins (~mc47@xmonad/TheMC47)
08:17:29 × geekosaur quits (~geekosaur@xmonad/geekosaur) (Remote host closed the connection)
08:17:54 geekosaur joins (~geekosaur@xmonad/geekosaur)
08:37:35 × mc47 quits (~mc47@xmonad/TheMC47) (Ping timeout: 264 seconds)
08:40:49 mc47 joins (~mc47@xmonad/TheMC47)
09:22:26 FOSS_Human joins (~lol111@user/foss-human/x-0231813)
09:27:04 FOSS_Human parts (~lol111@user/foss-human/x-0231813) ()
09:27:28 FOSS_Human joins (~lol111@user/foss-human/x-0231813)
09:35:31 cyr4x3 joins (~cyr4x3@139.47.115.87)
09:37:17 × cyr4x3 quits (~cyr4x3@139.47.115.87) (Client Quit)
10:01:56 × mc47 quits (~mc47@xmonad/TheMC47) (Remote host closed the connection)
11:32:55 mc47 joins (~mc47@xmonad/TheMC47)
11:59:47 qbt joins (~qbt@user/edun)
12:02:12 × mc47 quits (~mc47@xmonad/TheMC47) (Remote host closed the connection)
12:27:12 qbt parts (~qbt@user/edun) ()
14:28:19 ASSISTENZA joins (~Username@net-47-53-74-164.cust.vodafonedsl.it)
14:28:19 × ASSISTENZA quits (~Username@net-47-53-74-164.cust.vodafonedsl.it) (Excess Flood)
14:42:29 ASSISTENZA joins (~Username@net-47-53-74-164.cust.vodafonedsl.it)
14:42:30 × ASSISTENZA quits (~Username@net-47-53-74-164.cust.vodafonedsl.it) (Excess Flood)
14:59:01 wonko joins (~wjc@62.115.229.50)
14:59:55 mc47 joins (~mc47@xmonad/TheMC47)
15:04:37 × mc47 quits (~mc47@xmonad/TheMC47) (Client Quit)
15:22:21 Safeguard-IRC joins (~Safeguard@151.42.88.177)
15:24:53 <Safeguard-IRC> hello, I have a question: recently I have been toying around with the variouos prompt from xmonad-contrib, and I came across the input prompt; the page makes an example fireEmployee :: String -> (). now, I wanted to make a function that takes the user input and launches a browser with that search query, but I cannot wrap my head around the ?+ operator, can anyone help me in composing it?
15:25:39 <FOSS_Human> https://hackage.haskell.org/package/xmonad-contrib-0.16/docs/XMonad-Prompt-Input.html#v:-63--43-
15:28:37 <FOSS_Human> Safeguard-IRC: There's a prompt that already does what you want: https://hackage.haskell.org/package/xmonad-contrib-0.16/docs/XMonad-Actions-Search.html
15:29:24 <Safeguard-IRC> wot how did I miss that
15:29:50 <FOSS_Human> lol, no problem
15:34:39 <Safeguard-IRC> okay i've been trying it out, but it does not open my any browser, do I need to declare the Browser type?
15:35:39 <geekosaur> it tries the browser identified by $BROWSER in the environment first
15:35:46 <geekosaur> that's probably not set
15:35:52 <Safeguard-IRC> indeed it's not set
15:36:07 <Safeguard-IRC> but can I use a myBrowser variable declared in xmonad.hs?
15:36:41 <FOSS_Human> https://hackage.haskell.org/package/xmonad-contrib-0.16/docs/XMonad-Actions-Search.html#t:Browser
15:36:45 <FOSS_Human> Takes a filepath
15:36:59 <geekosaur> you might just pass the name of a browser (e.g. "chromium") where it wants a Browser
15:37:07 <Safeguard-IRC> ah dumb me, I just put "qutebrowser"
15:39:28 <Safeguard-IRC> it keeps sayingthat it's not in scope as a data constructor, do I need to import anything else beside XMonad.Action.Search ?
15:40:14 <geekosaur> what are you actually doing?
15:40:18 <geekosaur> @where paste
15:40:18 <lambdabot> Help us help you: please paste full code, input and/or output at e.g. https://paste.tomsmeding.com
15:41:06 <Safeguard-IRC> https://termbin.com/0bn3, line 581 and 463
15:41:29 <Safeguard-IRC> pardon the mess in the file, I need to clean it up
15:43:09 <geekosaur> you don't set Browser, it's the name of a type and can't be assigned to
15:43:25 <liskin> hm, shouldn't https://hackage.haskell.org/package/xmonad-contrib-0.16/docs/XMonad-Prompt-Shell.html#v:getBrowser default to sensible-browser or x-www-browser rather than hardcoding firefox?
15:43:29 <geekosaur> instead, where a function signature asks for a Browser, you pass the string "qutebrowser"
15:43:57 <geekosaur> liskin, probably
15:44:30 <geekosaur> I think debianoids patch it to be "x-www-browser"
15:45:49 <liskin> yeah that's my first thought: that some distros might not have these aliases
15:46:32 <geekosaur> Safeguard-IRC, when you write `Browser = "qutebrowser"`, it does not do an assignment because `Browser` is not a variable, it is a data constructor and there is no such data constructor. And if there were, you wouldn't be able to assign to it; instead it would do a pattern match (except the types don't match so you'd get another compile error)
15:47:05 <Safeguard-IRC> so.. let's see if I got this right: I should redefine promptSearchBrowser like this in my xmonad.hs: promptSearchBrowser :: XPConfig -> "/usr/bin/qutebrowser" -> SearchEngine -> X () ?
15:47:45 <geekosaur> nope
15:48:01 <Safeguard-IRC> okay then I did not understand
15:48:50 <geekosaur> you call promptSearchBrowser as: promptSearchBrowser myXPConfig "qutebrowser" S.google
15:49:02 <geekosaur> (substitute your chosen SearchEngine
15:49:19 <Safeguard-IRC> ... I feel stupid
15:50:34 <geekosaur> rowser is an alias for FilePath, which is itself an alias for String, so you pass a String for that argument
15:50:40 <geekosaur> *Browser
15:52:36 <Safeguard-IRC> okay I got it
15:53:36 <Safeguard-IRC> I've been trying to do the following: browser = "/usr/bin" <> myBrowser, but it does not seem to work. myBrowser is also a String, and putting /usr/bin/qutebrowser works
15:54:00 <FOSS_Human> ??
15:54:11 <Safeguard-IRC> pardon me, let me be more clear
15:54:19 <FOSS_Human> Just declare a function name like: `myBrowser = "/usr/bin/firefox"` ??
15:54:19 <geekosaur> <> doesn't add a slash, so it ends up /usr/binqutebrowser
15:54:42 <Safeguard-IRC> i've mistyped, there is a slash
15:54:51 <Safeguard-IRC> browser :: String
15:54:51 <Safeguard-IRC> browser = "/usr/bin/" <> myBrowser
15:55:21 <Safeguard-IRC> ((altMask, xK_o), promptSearchBrowser myXPConfig browser duckduckgo ),
15:56:40 <geekosaur> @where paste
15:56:40 <lambdabot> Help us help you: please paste full code, input and/or output at e.g. https://paste.tomsmeding.com
15:56:43 <geekosaur> include the error
15:56:51 <Safeguard-IRC> there is no error, it just does not work
15:57:26 <geekosaur> interesting. there should be no difference
15:57:42 <Safeguard-IRC> line 463, 581 and 582: https://termbin.com/nw3z9
15:59:14 <FOSS_Human> Safeguard-IRC:
15:59:21 <FOSS_Human> myBrowser :: String
15:59:22 <FOSS_Human> myBrowser = "/usr/bin/qutebrowser"
15:59:24 <FOSS_Human> ((altMask, xK_o), promptSearchBrowser myXPConfig myBrowser duckduckgo ),
15:59:25 <FOSS_Human> ??
15:59:31 <Safeguard-IRC> let me try
16:00:06 <Solid> Safeguard-IRC: myBrowser has a space at the end, so it tries to execute /usr/bin/qutebrowser\s
16:00:09 <Solid> which doesn't exist
16:00:26 <geekosaur> yeh, just noticed that
16:00:34 <Safeguard-IRC> FOSS_HUman not working
16:01:06 <Safeguard-IRC> oh wait, I put a space, in myBrowser, now it's working
16:01:07 <geekosaur> get rid of the space, promptSearchBrowser uses safeSpawn so it thinks the space is part of the command name
16:02:05 <Safeguard-IRC> hmhm okay
16:02:56 <Safeguard-IRC> what about the "/usr/bin/" <> myBrowser, it fails because it puts a \s at the end?
16:03:17 <geekosaur> myBrowser had the space in it, so it was just copied over
16:03:26 <Safeguard-IRC> let me try
16:03:28 <geekosaur> <> doesn't know you expected it to skip the space
16:04:12 <Safeguard-IRC> yeah now it works, thank you all
16:04:46 <Safeguard-IRC> another question: If I ever manage to make a irc bridge, will a IRC<->Telegram bridge be allowed here?
16:06:19 <geekosaur> suspect we'd want to discuss that on the mailing list with everyone else involved; not everyone is on here at the same time (I think I only overlap with mc47 during my evening, for example)
16:06:48 <Safeguard-IRC> yes yes I get it
16:06:50 <FOSS_Human> Dunno about everyone else but it's 5pm for me here in the UK rn
16:07:19 <geekosaur> 12:07 US/Eastern
16:07:31 <Safeguard-IRC> 6:07 in It
16:07:46 <FOSS_Human> Wow big time differences lol
16:08:00 <Safeguard-IRC> oh sorry, 6 PM i meant
16:08:06 <FOSS_Human> Oh k
16:08:29 <geekosaur> and I log IRC in UTC becuase in many of the channels I'm in there are even bigger spreads
16:09:48 <Safeguard-IRC> another question: I've been looking at the source of the multi searchengine, and at the end it as (prefixAware google), if I redefine multi with prefixAware duckduckgo, will it default to ddg?
16:10:27 <Safeguard-IRC> or is there a better way to do it?
16:12:16 <Solid> you don't have to redefine anything that X.A.Search already defines
16:12:36 <Safeguard-IRC> but how I would make multi define to ddg then?
16:12:48 <Solid> the docs for !> show an example of how to define your own multi search engine: https://hackage.haskell.org/package/xmonad-contrib-0.16/docs/XMonad-Actions-Search.html#v:-33--62-
16:13:21 <Safeguard-IRC> aaaah
16:13:24 <FOSS_Human> Wow cool!, I might add this to my setup aswell
16:13:33 <Safeguard-IRC> today I really can't read
16:13:46 <Safeguard-IRC> I'm sorry haha, I shoud look more carefully at the docs
16:14:53 <geekosaur> searchEngineF takes a function that can build arbitrary search engines, that's the closest you come to needing to modify code
16:15:08 <geekosaur> but for most cases !> covers what you want
16:15:53 mc47 joins (~mc47@xmonad/TheMC47)
16:17:34 <Safeguard-IRC> ..it's not working, I defined multiengine like this: multiEngine = intelligent (wikipedia !> duckduckgo !> youtube !>amazon !> (prefixAware duckduckgo))
16:17:34 <Safeguard-IRC> but typing like youtube:test, youtube: test, youtube test just opens ddg with that query
16:18:39 <Safeguard-IRC> just uusing multi works tough
16:19:36 <geekosaur> it's youtube:test
16:20:14 <Safeguard-IRC> yes,still not working, see the first example
16:20:33 <geekosaur> sorry, missed that
16:20:35 <geekosaur> hm
16:23:23 <Safeguard-IRC> well for now it's not needed, since I use mostly ddg's bangs
16:27:16 × humky quits (~humky@user/humky) (Remote host closed the connection)
16:27:36 humky joins (~humky@user/humky)
16:27:50 <Solid> lol
16:27:55 <Solid> yeah it's a bug in X.A.Search
16:28:41 <Solid> how the !> operator associates is not specified and so it associates to the left by default
16:29:02 <Solid> which then mangles names when combining search engines like s1 !> s2 !> s3
16:29:15 <Solid> mulit sensibly folds to the right so it doesn't have that behaviour
16:32:40 <Safeguard-IRC> hm I think I see
16:34:12 <Safeguard-IRC> well, thank you all for your help, and sorry for beign so dumb
16:34:13 <Solid> the tl;dr is to specify your search engines as `multiEngine = intelligent (foldr1 (!>) [wikipedia, youtube, amazon, prefixAware duckduckgo])' for now
16:34:29 <Safeguard-IRC> Solid let me try
16:34:46 <Solid> (you might have to import Data.List or something for foldr1)
16:36:04 <Safeguard-IRC> I have already Data.List imported ^^ matter of fact I was wrangling with it before, if you see my {single,dual}Mon functions I use intercalate. but apparently there is a type mismatch if I add to dualMon systray, since it's X() and intercalate makes them char (?)
16:36:59 × dschrempf quits (~dominik@070-207.dynamic.dsl.fonira.net) (Ping timeout: 264 seconds)
16:37:19 <Safeguard-IRC> Solid: yep that is working, thanks
16:38:18 seschwar joins (~seschwar@user/seschwar)
16:38:46 × Safeguard-IRC quits (~Safeguard@151.42.88.177) (Remote host closed the connection)
16:40:09 Safeguard-IRC joins (~Safeguard@151.42.88.177)
17:04:20 × Safeguard-IRC quits (~Safeguard@151.42.88.177) (Quit: Leaving)
17:08:29 × geekosaur quits (~geekosaur@xmonad/geekosaur) (Remote host closed the connection)
17:08:51 Safeguard-IRC joins (~Safeguard@151.42.88.177)
17:08:54 geekosaur joins (~geekosaur@xmonad/geekosaur)
17:13:15 <liskin> $ make -C ~/.xmonad-testing .sub/xmonad-something
17:13:33 <liskin> how could I lived without something like this :-)
17:14:04 <liskin> creates a subdir, three git workdirs (X11, xmonad, xmonad-contrib), dummy xmonad.hs, Makefile, and builds that
17:42:33 cyr4x3 joins (~cyr4x3@139.47.115.87)
17:42:33 × cyr4x3 quits (~cyr4x3@139.47.115.87) (Client Quit)
17:43:18 cyr4x3 joins (~cyr4x3@139.47.115.87)
17:44:11 × cyr4x3 quits (~cyr4x3@139.47.115.87) (Client Quit)
17:49:24 × electr0n quits (~electr0n@about/security/founder/electr0n) (Quit: WeeChat 3.3)
17:56:03 × FOSS_Human quits (~lol111@user/foss-human/x-0231813) (Quit: Client Closed)
18:04:39 qbt joins (~qbt@user/edun)
18:04:41 × qbt quits (~qbt@user/edun) (Client Quit)
18:10:08 × humky quits (~humky@user/humky) (Remote host closed the connection)
18:10:26 humky joins (~humky@user/humky)
18:19:40 alternateved joins (~user@staticline-31-183-146-132.toya.net.pl)
18:20:04 × Safeguard-IRC quits (~Safeguard@151.42.88.177) (Quit: Leaving)
18:25:11 dschrempf joins (~dominik@070-207.dynamic.dsl.fonira.net)
18:26:05 Safeguard-IRC joins (~Safeguard@151.42.88.177)
18:26:17 <Solid> sounds like a good addition to scripts/ :)
18:28:05 <liskin> it's rather tied to my spiderweb of dotfiles Makefiles
18:28:48 <Solid> ah I see
18:30:53 <Safeguard-IRC> I'm back with two more questions: is there something akin to showwsname but for generic purpose? like, I have a submap, and when I press the keystroke to trigger it (control space) I would like to have a little popup showing the options
18:32:51 <Safeguard-IRC> the second question is: how do I map something to the question mark and exclamation key? I tried xK_question, but it does not seem to be working
18:36:52 <alternateved> I think you would need something akin to (modMask .|. shiftMask, xK_slash)
18:37:06 <Solid> 1. I don't believe something like this exists (well, there's of course things like X.U.XUtils, but these basically amount to libraries for drawing arbitrary things)
18:37:46 <alternateved> The same goes for exclamation key - you would need to start with `1` key
18:37:57 <alternateved> but it depends of course on your keyboard layout
18:38:01 <Safeguard-IRC> us
18:38:42 <alternateved> So what I've advised should apply
18:38:43 × dschrempf quits (~dominik@070-207.dynamic.dsl.fonira.net) (Ping timeout: 258 seconds)
18:38:49 <Safeguard-IRC> since I have it on a submap I do control-space, then shift+1 to make exclamation mark or shift+/ to make question mark but both don't work
18:39:04 <Safeguard-IRC> let me try
18:39:07 Solid was playing around with the idea of something like a popup for submaps a while ago but didn't have enough motivation to finish it
18:39:12 <Solid> maybe I'll pick that back up after the release
18:39:37 <Solid> would give me a chance to perhaps look into making X.U.XUtils a bit more ergonomic in places
18:40:33 <Safeguard-IRC> alternateved yeah that worked.I feel it's a bit hacking, but hey it works
18:41:20 <alternateved> As far as I know, this is how it works for most X window managers
18:41:35 <Safeguard-IRC> about the arbitrary showing I need to look at XMonad.Utils.XUtils?
18:43:25 <Solid> you'd essentially need to write it yourself
18:43:42 <Safeguard-IRC> hmm.. I think a stumpwm approach is better for my sanity then lol
18:44:00 <Safeguard-IRC> like bind control-space ? to make a little yad popup (which is what i'm using right now)
18:46:22 cyr4x3 joins (~cyr4x3@139.47.115.87)
18:50:59 <geekosaur> there are smarter window managers which recognize the need to add shift, but they then have more problems with keyboards that have alternative mappings
19:12:57 dschrempf joins (~dominik@070-207.dynamic.dsl.fonira.net)
19:20:18 × humky quits (~humky@user/humky) (Remote host closed the connection)
19:20:38 humky joins (~humky@user/humky)
19:21:02 <mc47> For some reason, reddit is suggesting r/de_DEV as a "deutsche Version von r/xmonad" lol
19:21:18 <mc47> s/DEV/EDV
19:22:25 × dschrempf quits (~dominik@070-207.dynamic.dsl.fonira.net) (Ping timeout: 258 seconds)
19:23:47 × humky quits (~humky@user/humky) (Remote host closed the connection)
19:30:19 × Safeguard-IRC quits (~Safeguard@151.42.88.177) (Quit: Leaving)
19:45:16 × cyr4x3 quits (~cyr4x3@139.47.115.87) (Quit: WeeChat 2.3)
19:53:36 <Solid> lol
19:55:23 × wonko quits (~wjc@62.115.229.50) (Ping timeout: 258 seconds)
19:58:48 dschrempf joins (~dominik@070-207.dynamic.dsl.fonira.net)
20:38:01 × mc47 quits (~mc47@xmonad/TheMC47) (Remote host closed the connection)
20:38:14 × dschrempf quits (~dominik@070-207.dynamic.dsl.fonira.net) (Ping timeout: 260 seconds)
21:17:56 <liskin> mc47[m]: https://github.com/xmonad/xmonad-contrib/blob/master/XMonad/Doc/Extending.hs#L1904 is still after #593
21:20:03 <liskin> I mean, the section does mention StatusBar briefly, but it doesn't appear to reflect that DynamicLog is not the recommended interface now
21:21:09 <geekosaur> it even suggests the old DynamicLog interface that assumes you run xmonad | xmobar
21:35:21 humky joins (~humky@user/humky)
22:06:33 × alternateved quits (~user@staticline-31-183-146-132.toya.net.pl) (Ping timeout: 265 seconds)
22:32:41 × seschwar quits (~seschwar@user/seschwar) (Quit: :wq)
22:57:56 × tomsmeding quits (~tomsmedin@tomsmeding.com) (Ping timeout: 265 seconds)
22:59:11 × davve quits (davve@bsd.douchedata.com) (Ping timeout: 264 seconds)
23:18:33 × catman quits (~catman@user/catman) (Ping timeout: 258 seconds)
23:27:54 tomsmeding joins (~tomsmedin@tomsmeding.com)
23:31:38 davve joins (davve@bsd.douchedata.com)
23:37:59 electr0n joins (~electr0n@about/security/founder/electr0n)
23:39:50 × rundown quits (~eb0t@90.196.142.168) (Read error: Connection reset by peer)
23:41:08 catman joins (~catman@user/catman)
23:45:49 rundown joins (~eb0t@90.199.166.206)
23:57:59 <liskin> my yesterday's optimism of finishing #626 today was perhaps a bit clouded by not thinking straight at 3:30 in the morning :-/
23:58:33 <liskin> actually 2:30, but I didn't fall asleep until 4
23:59:10 <liskin> anyway, the only missing bit is adjustment of X.H.Focus docs, so I'm gonna get some sleep today and hopefully do it tomorrow morning :-)

All times are in UTC on 2021-10-19.