Home liberachat/#xmonad: Logs Calendar

Logs on 2022-02-21 (liberachat/#xmonad)

01:03:03 × seschwar quits (~seschwar@user/seschwar) (Quit: :wq)
01:28:00 × noex quits (~null@user/noex) (Ping timeout: 252 seconds)
01:30:05 noex joins (~null@user/noex)
01:51:52 × bla quits (~bla@79.191.153.179.ipv4.supernova.orange.pl) (Ping timeout: 256 seconds)
01:52:16 blaa joins (~bla@79.191.75.239.ipv4.supernova.orange.pl)
02:11:37 × catman quits (~catman@user/catman) (Ping timeout: 240 seconds)
02:16:29 × thunderrd quits (~thunderrd@183.182.111.132) (Remote host closed the connection)
02:16:45 catman joins (~catman@user/catman)
02:23:53 × steve__ quits (~steve@ool-182c2b80.dyn.optonline.net) (Ping timeout: 256 seconds)
02:33:56 × geekosaur quits (~geekosaur@xmonad/geekosaur) (Remote host closed the connection)
02:35:20 × Hash quits (~Hash@hashsecurity.org) (Quit: https://hashsecurity.org)
02:35:45 Hash joins (~Hash@hashsecurity.org)
02:49:58 geekosaur joins (~geekosaur@xmonad/geekosaur)
02:58:20 × Czernobog quits (~Czernobog@user/czernobog) (Quit: ZNC 1.8.2 - https://znc.in)
02:59:58 Czernobog joins (~Czernobog@user/czernobog)
03:04:36 × banc quits (banc@gateway/vpn/airvpn/banc) (Ping timeout: 240 seconds)
03:10:27 × werneta quits (~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net) (Read error: Connection reset by peer)
03:22:43 banc joins (banc@gateway/vpn/airvpn/banc)
03:23:48 × td_ quits (~td@94.134.91.130) (Ping timeout: 240 seconds)
03:24:56 werneta joins (~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net)
03:26:01 td_ joins (~td@muedsl-82-207-238-047.citykom.de)
05:11:34 toastloop joins (~toastloop@user/toastloop)
05:39:17 × mvk quits (~mvk@2607:fea8:5cdc:bf00::99e7) (Ping timeout: 240 seconds)
06:57:17 × frosch03 quits (~user@2a02:8070:7ab:1b00:94f5:f5ea:a494:4b46) (Ping timeout: 240 seconds)
07:15:47 <Solid> matterix[m]: dmenu should list items horizontally by default; perhaps you gave it the -l option?
08:07:42 mc47 joins (~mc47@xmonad/TheMC47)
08:27:08 dschrempf joins (~dominik@070-207.dynamic.dsl.fonira.net)
08:40:53 cfricke joins (~cfricke@user/cfricke)
08:48:57 × toastloop quits (~toastloop@user/toastloop) (Quit: Leaving)
08:49:32 toastloop joins (~toastloop@user/toastloop)
09:16:57 × raghavgururajan quits (ea769b8000@user/raghavgururajan) (Ping timeout: 240 seconds)
09:17:02 × zoglesby quits (f0f8ca1525@user/zoglesby) (Ping timeout: 240 seconds)
09:18:40 raghavgururajan joins (ea769b8000@user/raghavgururajan)
09:18:46 zoglesby joins (f0f8ca1525@user/zoglesby)
09:19:02 × samhh quits (7569f027cf@2604:bf00:561:2000::e4) (Ping timeout: 240 seconds)
09:19:20 samhh joins (7569f027cf@2604:bf00:561:2000::e4)
09:55:25 toastloop parts (~toastloop@user/toastloop) (Leaving)
10:01:09 × geekosaur quits (~geekosaur@xmonad/geekosaur) (Ping timeout: 272 seconds)
10:01:44 geekosaur joins (~geekosaur@xmonad/geekosaur)
10:48:57 × cfricke quits (~cfricke@user/cfricke) (Ping timeout: 240 seconds)
11:13:10 jao joins (~jao@static-68-235-44-61.cust.tzulo.com)
11:23:26 × geekosaur quits (~geekosaur@xmonad/geekosaur) (Remote host closed the connection)
11:25:10 geekosaur joins (~geekosaur@xmonad/geekosaur)
12:21:06 × jao quits (~jao@static-68-235-44-61.cust.tzulo.com) (Ping timeout: 272 seconds)
12:23:10 jao joins (~jao@66.63.167.109)
12:28:48 × jao quits (~jao@66.63.167.109) (Ping timeout: 256 seconds)
12:54:26 × geekosaur quits (~geekosaur@xmonad/geekosaur) (Remote host closed the connection)
12:59:27 geekosaur joins (~geekosaur@xmonad/geekosaur)
13:31:38 <Drishal[m]> is there a way to import my xmonad colorscheme modules into xmobar config?
13:31:41 Drishal[m] uploaded an image: (126KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/GLJuZeWSUOEPUEqVkgTaSLUj/image.png >
13:31:55 <Drishal[m]> (for eg this one)
13:32:41 <geekosaur> you would have to switch to the actual Haskell config
13:33:11 <geekosaur> the one that starts with "Config {" only looks like Haskell; you can't use bindings or imports, etc.
13:34:06 <Drishal[m]> geekosaur: aah
13:34:06 <Drishal[m]> are there any example actual haskell configs which I can refer to ?
13:34:50 <Drishal[m]> > <@geekosaur:libera.chat> you would have to switch to the actual Haskell config
13:34:50 <Drishal[m]> * aah
13:34:50 <Drishal[m]> are there any example actual haskell xmobar configs which I can refer to ?
13:34:52 <lambdabot> <hint>:1:1: error: parse error on input ‘<@’
13:35:11 <geekosaur> there probably are but I wouldn't know them. I don't use xmobar, I don't know much in the way of details
13:36:11 <Drishal[m]> well nvm I just searched for haskell xmobar configs and found them 😅
13:36:18 <Drishal[m]> * well nvm I just searched for xmobar.hs configs and found them 😅
13:36:41 <geekosaur> yay github :)
13:36:59 <Drishal[m]> geekosaur: you are reffering to this kind of config right?
13:36:59 <Drishal[m]> https://github.com/jaor/xmobar/blob/master/examples/xmobar.hs
13:37:49 <geekosaur> yes, although that also includes an additional simple plugin
13:38:05 <Drishal[m]> geekosaur: meaning/
13:38:06 <geekosaur> but you can import your Colorsmodule into that and use it
13:38:09 <Drishal[m]> > <@geekosaur:libera.chat> yes, although that also includes an additional simple plugin
13:38:09 <Drishal[m]> * meaning?
13:38:11 <lambdabot> <hint>:1:1: error: parse error on input ‘<@’
13:38:26 <geekosaur> https://github.com/jaor/xmobar/blob/master/examples/xmobar.hs#L21-L28
13:38:44 <geekosaur> which allows you to use %HelloWorld% in the template
13:38:48 <geekosaur> not that it doesmuch
13:39:31 <geekosaur> adding your own plugins is anotherreason you might switch to xmobar.hs
13:42:00 <geekosaur> also you don't need to ping me on every exchange, we being the only two active in the channel :)
13:44:44 <geekosaur> mm, I am wondering if the "import XMonad" in those modules can cause problems. it's not being used, so it could be safely removed
13:44:55 <Drishal[m]> <geekosaur> "which allows you to use %..." <- aah so thats what you were referring to 😅
13:44:59 <geekosaur> and I don't know if it couldconflict with something in xmobar
13:48:18 <Drishal[m]> the only way is to try it and see
13:48:19 <Drishal[m]> :P
13:48:26 <Drishal[m]> which I am gonna do rn
14:07:31 peri4n joins (~peri4n@85.232.9.17)
14:09:43 <Drishal[m]> or I wonder, is there a way to altogether integerate xmobar config right into my xmonad config?
14:10:02 <Drishal[m]> (as I maintain a reasonably well documented xmonad config
14:10:08 <Drishal[m]> * xmonad config)
14:10:53 <Drishal[m]> * xmonad config in emacs org mode)
14:12:08 <geekosaur> not easily. they're different pograms and have very different event loops
14:12:19 <geekosaur> it might work to make a common config that can be imported into both
14:17:04 <Drishal[m]> geekosaur: hmm
14:17:04 <Drishal[m]> I was thinking of trying to make it as easy to maintain my dots as well xD
14:18:46 <Drishal[m]> atm i am writing my org config in `~/dotfiles/xmonad/xmonad.org` and tangling to `~/.xmonad/xmonad.hs` with command to launch bar in `~/dotfiles/xmobar.hs` lol
14:19:11 <Drishal[m]> plus the theme modules are stored in ~/.xmonad xDD
14:19:25 <Drishal[m]> basically my entire dotfiles management is a bit of a mess
14:19:55 <peri4n> This might be a huge time sink but have you looked into home-manager/nix?
14:20:48 <peri4n> Home-manager is the single best thing to manage your dotfiles but it is relatively complex.
14:24:32 <Drishal[m]> peri4n: yes which is what I am currently using
14:24:32 <Drishal[m]> but the thing is I dont wanna type home manager switch flake each time I modify a small thing
14:25:08 <Drishal[m]> or is there a way to integerate home manager commands into Emacs?
14:27:52 <peri4n> I see. Yeah frequently changing things is not where nix shines. My point was that it is possible to wire everything safely.
14:30:54 geekosaur just uses a "dotty" repo and a perl script (should be trivial to convert to python or js if that's your thing)
14:31:22 <geekosaur> xmonad.hs is a separate repo but that one I can just drop in place
14:36:06 telser joins (~quassel@user/telser)
14:49:16 <Solid> Drishal[m]: why not just tangle to xmobar parts to xmobar.hs?
14:49:36 <Drishal[m]> Solid: ooh good idea 👀
14:49:44 <Solid> s/to/the/
14:52:30 × telser quits (~quassel@user/telser) (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)
14:55:23 <Drishal[m]> <Solid> "s/to/the/" <- btw whats the source block options to tangle sutff to another file?
14:55:31 <Drishal[m]> > <@Solid:libera.chat> s/to/the/
14:55:31 <Drishal[m]> * btw whats the source block options to tangle that particular block to another file?
14:55:33 <lambdabot> <hint>:1:1: error: parse error on input ‘<@’
14:56:43 <Solid> I think it's just :tangle file.ext
14:57:52 telser joins (~quassel@user/telser)
15:13:20 <Drishal[m]> well this also gives me an idea to keep the ENTIRE xmonad related stuff right into this directory
15:13:20 <Drishal[m]> which also means other modules :P
15:15:38 <Drishal[m]> * well this also gives me an idea to keep the ENTIRE xmonad related stuff right into this one org file
15:15:38 <Drishal[m]> which also means other modules :P
15:31:26 × noex quits (~null@user/noex) (Ping timeout: 260 seconds)
15:32:11 noex joins (~null@user/noex)
15:47:05 <Drishal[m]> lol what
15:47:06 Drishal[m] uploaded an image: (116KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/lpUzriaMraSllAZNttrXYZOr/image.png >
15:48:43 <Drishal[m]> dracula.hs... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/d46d30362fdf4127141c4d1cb46b67186380fa2f)
15:49:12 <geekosaur> you may need `stack exec xmobar xmobar.hs` for it to find everything
15:49:23 <geekosaur> stack likes to keep everything hidden in its guts
15:50:13 <geekosaur> alsounless you specify xmonad as a dependency of xmobar, stack won't expose xmonad to xmobar
15:50:28 <geekosaur> since that import isn't doing anything,I'd just remove it
15:55:12 Drishal[m] uploaded an image: (32KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/aLWTDrOXyHpHABriasRxvDDh/image.png >
15:55:33 <Drishal[m]> <geekosaur> "since that import isn't doing..." <- for some reason ghc does not seem to like nerd font symbols 👀
15:56:07 <geekosaur> yes, ghc places a lot of imo unnecessary restrictions on string literals
15:56:30 <geekosaur> you'll have to replace it with an escape sequence. conveniently, it told you which one
15:59:21 <Drishal[m]> geekosaur: this this one correct?
15:59:21 <Drishal[m]> ```haskell
15:59:21 <Drishal[m]> <fc=#50fa7b> \58911 </fc>
15:59:21 <Drishal[m]> ```
15:59:29 <Drishal[m]> s/one/way/, s///
15:59:53 × peri4n quits (~peri4n@85.232.9.17) (Ping timeout: 256 seconds)
16:00:03 <geekosaur> yes
16:00:14 <geekosaur> unless you prefer the hex version for some reason
16:02:18 <Drishal[m]> geekosaur: but is there any way to force ghc to parse the symbol as it is
16:02:20 <Drishal[m]> s//?/
16:03:29 <geekosaur> nope
16:04:22 <geekosaur> I wish there were but they apply the same restrictions everywherein the source so you can't use e.g. private use area characters in Char or String literals or comments even though they shouldn't affect anything
16:05:10 <Solid> afaik the unicode character tables were updated for 9.2.x
16:05:14 <geekosaur> I can see the point about consistency (it also means it's harder to apply some of the recent source hacks involving RTL switches etc.) but it's annoying in cases like this
16:05:40 <geekosaur> the character tables were but the restriction on PUA characters remains
16:06:04 <geekosaur> and I highly doubt they assigned a character slot for bind :)
16:06:16 <geekosaur> > generalCategory '\58911'
16:06:17 <lambdabot> PrivateUse
16:06:21 <Solid> oh, I see
16:06:39 seschwar joins (~seschwar@user/seschwar)
16:11:50 × samhh quits (7569f027cf@2604:bf00:561:2000::e4) (Remote host closed the connection)
16:11:50 × zoglesby quits (f0f8ca1525@user/zoglesby) (Remote host closed the connection)
16:11:51 × raghavgururajan quits (ea769b8000@user/raghavgururajan) (Remote host closed the connection)
16:12:31 samhh joins (7569f027cf@2604:bf00:561:2000::e4)
16:12:38 zoglesby joins (f0f8ca1525@user/zoglesby)
16:12:50 raghavgururajan joins (ea769b8000@user/raghavgururajan)
16:15:15 <Drishal[m]> btw can I call a color variable inside fc like this ?
16:15:15 <Drishal[m]> ```
16:15:15 <Drishal[m]> <fc=colgrey>\62532</fc>
16:15:15 <Drishal[m]> ```
16:15:52 <geekosaur> it's just a string
16:16:24 <geekosaur> "<fc=" ++ colgrey ++ "\62532</fc>"
16:17:04 <geekosaur> mm, I don't know if xmobar uses Text instead of String. might want to play it safe and use <> instead of ++
16:17:32 <Drishal[m]> hmm 👀
16:17:39 <Drishal[m]> this is gonnna become tricky to do
16:18:16 <geekosaur> ? annoying I can see, but tricky?
16:18:39 <Drishal[m]> this is gonna be annoying xD
16:18:39 <Drishal[m]> ```haskell
16:18:39 <Drishal[m]> , template = "<fc=#50fa7b> \58911 </fc> %XMonadLog% } %date% { %battery%<fc=colgrey>\62532</fc>%dynnetwork% <fc=colgrey>\62532</fc> %multicpu% <fc=colgrey>\62532</fc> %memory% <fc=colgrey>\62532</fc> %trayerpad%"
16:18:39 <Drishal[m]> ```
16:18:49 <geekosaur> there are some packages on hackage which let you do binding interpolation but I wouldn't waste much time on them
16:19:14 <geekosaur> > generalCategory '\62532'
16:19:16 <lambdabot> PrivateUse
16:19:33 <geekosaur> huh. bullets are included in unicode
16:19:36 <geekosaur>
16:20:32 <Drishal[m]> yep this breaks the bar
16:20:32 <Drishal[m]> ```haskell
16:20:32 <Drishal[m]> %battery%<fc= " ++ colgrey ++ ">\62532</fc>
16:20:32 <Drishal[m]> ```
16:20:40 <Solid> > generalCategory '\8729'
16:20:42 <lambdabot> MathSymbol
16:20:47 <Solid> probably that one
16:20:55 <Drishal[m]> s///, s/%/"...%/, s/>/>..."/
16:20:58 <geekosaur> > text '\8729'
16:21:00 <lambdabot> error:
16:21:00 <lambdabot> • Couldn't match type ‘Char’ with ‘[Char]’
16:21:00 <lambdabot> Expected type: String
16:21:08 <geekosaur> > text "\8729"
16:21:10 <lambdabot>
16:21:27 <Drishal[m]> ooh wait I put an accidental space lol
16:21:51 <geekosaur> reminds me of breaking pango markup with a stray comma
16:21:59 <geekosaur> didn't notice for 3 years :)
16:22:23 <Solid> :D
16:26:16 <geekosaur> well, I did notice I wasn't getting urgency hints. I didn't notice it was breaking the whole bar
16:26:26 <geekosaur> when I did, I found the typo
16:29:57 <Drishal[m]> RIP Xmonad log xD
16:30:14 Drishal[m] uploaded an image: (100KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/nuSypFWBbYNsnlcBptEQPVTk/image.png >
16:31:06 <geekosaur> source?
16:32:58 <Drishal[m]> geekosaur: here https://gitlab.com/drishal/dotfiles/-/blob/master/xmonad/README.org#xmobar-config
16:33:57 Drishal[m] uploaded an image: (14KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/YhGTTdcWRaLCmffeFFivPmWL/image.png >
16:34:01 <Drishal[m]> geekosaur: this part is not going to be tangled
16:34:29 <Drishal[m]> > <@geekosaur:libera.chat> source?
16:34:29 <Drishal[m]> * (this part in the image is not going to be tangled, just saved it for a future reference)
16:34:30 <lambdabot> <hint>:1:1: error: parse error on input ‘<@’
16:40:53 <geekosaur> hm,don't see anything wrong with the template. the "Updating..." probably goes away when you switch workspaces, unless you needed to use %XMonadPropLog% instead of %XMonadLog%?
16:41:15 <geekosaur> the fact that the rest of the bar is blank…
16:41:48 <geekosaur> not seeing it unless %XMonadLog% is breaking the whole thing
16:42:46 <geekosaur> no, that one's right
16:42:57 <geekosaur> shows how much I know about xmobar :(
16:43:11 <Drishal[m]> geekosaur: one thing: am I launching xmobar the right way?
16:43:11 <Drishal[m]> ```haskell
16:43:11 <Drishal[m]> . withEasySB (statusBarProp "stack exec /home/drishal/.local/bin/xmobar ~/.xmonad/xmobar.hs" (pure myXmobarPP)) defToggleStrutsKey
16:43:11 <Drishal[m]> ```
16:43:20 sagax joins (~sagax_nb@user/sagax)
16:43:44 <geekosaur> looks right to me, yes
16:43:54 <geekosaur> if you weren't then you wouldn't get a bar at all
16:45:39 <Drishal[m]> geekosaur: tbh tho with this the bar does take a while to load
16:46:56 <geekosaur> sure, it'scompiling, and stack has someoverhead of its own
16:47:27 <geekosaur> the only other thing I can suggest is running a standard xmobar config through a preprocessor of some kind
16:48:44 <geekosaur> I wouldn't be afraid of doing that but I can't say I'd recommend m4 to most people :)
16:50:49 <Drishal[m]> or just manually make xmobar conifg for each color scheme :P
16:52:14 <Drishal[m]> tbh I have a small python script which would find and replace stuff for me
16:58:12 × samhh quits (7569f027cf@2604:bf00:561:2000::e4) (Remote host closed the connection)
16:58:12 × zoglesby quits (f0f8ca1525@user/zoglesby) (Remote host closed the connection)
16:58:12 × raghavgururajan quits (ea769b8000@user/raghavgururajan) (Remote host closed the connection)
17:04:15 samhh joins (7569f027cf@2604:bf00:561:2000::e4)
17:04:31 zoglesby joins (f0f8ca1525@user/zoglesby)
17:04:37 raghavgururajan joins (ea769b8000@user/raghavgururajan)
17:20:57 <Drishal[m]> btw how does this look ?
17:20:59 Drishal[m] uploaded an image: (326KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/nNhdhCkEiyTzWRPGFmZfdobQ/image.png >
17:27:06 <geekosaur> looks fine to me
17:54:38 <Solid> Drishal[m]: you can also just `stack install` xmobar and recompile only when you want to change the colours
17:57:49 <Drishal[m]> Solid: Not a bad idea 👀
18:38:57 × Nahra quits (~user@static.161.95.99.88.clients.your-server.de) (Remote host closed the connection)
18:46:48 benin joins (~benin@59.88.179.150)
18:57:34 c209e6dc-4d76-47 joins (~aditya@2601:249:4300:1296:195:dac6:592c:a55a)
19:08:08 benin7 joins (benin@gateway/vpn/protonvpn/benin)
19:09:37 × benin quits (~benin@59.88.179.150) (Ping timeout: 240 seconds)
19:09:37 benin7 is now known as benin
19:12:13 benin2 joins (~benin@59.88.179.150)
19:13:57 × benin quits (benin@gateway/vpn/protonvpn/benin) (Ping timeout: 240 seconds)
19:13:57 benin2 is now known as benin
19:34:05 yauhsien_ joins (~Yau-Hsien@61-231-19-150.dynamic-ip.hinet.net)
19:37:29 × yauhsien quits (~Yau-Hsien@61-231-37-106.dynamic-ip.hinet.net) (Ping timeout: 272 seconds)
20:52:17 × benin quits (~benin@59.88.179.150) (Ping timeout: 240 seconds)
20:54:57 benin joins (~benin@59.88.179.150)
21:10:11 × catman quits (~catman@user/catman) (Quit: WeeChat 3.5-dev)
21:12:43 catman joins (~catman@user/catman)
21:20:04 yauhsienhuangtw joins (~Yau-Hsien@61-231-19-150.dynamic-ip.hinet.net)
21:23:10 × yauhsien_ quits (~Yau-Hsien@61-231-19-150.dynamic-ip.hinet.net) (Ping timeout: 256 seconds)
21:23:49 × c209e6dc-4d76-47 quits (~aditya@2601:249:4300:1296:195:dac6:592c:a55a) (Quit: Konversation terminated!)
21:27:11 steve__ joins (~steve@ool-182c2b80.dyn.optonline.net)
22:40:57 × steve__ quits (~steve@ool-182c2b80.dyn.optonline.net) (Ping timeout: 240 seconds)
22:43:40 × dschrempf quits (~dominik@070-207.dynamic.dsl.fonira.net) (Quit: WeeChat 3.3)
22:44:51 × blaa quits (~bla@79.191.75.239.ipv4.supernova.orange.pl) (Remote host closed the connection)
23:01:48 × mc47 quits (~mc47@xmonad/TheMC47) (Remote host closed the connection)

All times are in UTC on 2022-02-21.