Logs: liberachat/#xmonad
| 2022-02-21 14:12:19 | <geekosaur> | it might work to make a common config that can be imported into both |
| 2022-02-21 14:17:04 | <Drishal[m]> | geekosaur: hmm |
| 2022-02-21 14:17:04 | <Drishal[m]> | I was thinking of trying to make it as easy to maintain my dots as well xD |
| 2022-02-21 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 |
| 2022-02-21 14:19:11 | <Drishal[m]> | plus the theme modules are stored in ~/.xmonad xDD |
| 2022-02-21 14:19:25 | <Drishal[m]> | basically my entire dotfiles management is a bit of a mess |
| 2022-02-21 14:19:55 | <peri4n> | This might be a huge time sink but have you looked into home-manager/nix? |
| 2022-02-21 14:20:48 | <peri4n> | Home-manager is the single best thing to manage your dotfiles but it is relatively complex. |
| 2022-02-21 14:24:32 | <Drishal[m]> | peri4n: yes which is what I am currently using |
| 2022-02-21 14:24:32 | <Drishal[m]> | but the thing is I dont wanna type home manager switch flake each time I modify a small thing |
| 2022-02-21 14:25:08 | <Drishal[m]> | or is there a way to integerate home manager commands into Emacs? |
| 2022-02-21 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. |
| 2022-02-21 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) |
| 2022-02-21 14:31:22 | <geekosaur> | xmonad.hs is a separate repo but that one I can just drop in place |
| 2022-02-21 14:36:06 | β | telser joins (~quassel@user/telser) |
| 2022-02-21 14:49:16 | <Solid> | Drishal[m]: why not just tangle to xmobar parts to xmobar.hs? |
| 2022-02-21 14:49:36 | <Drishal[m]> | Solid: ooh good idea π |
| 2022-02-21 14:49:44 | <Solid> | s/to/the/ |
| 2022-02-21 14:52:30 | Γ | telser quits (~quassel@user/telser) (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) |
| 2022-02-21 14:55:23 | <Drishal[m]> | <Solid> "s/to/the/" <- btw whats the source block options to tangle sutff to another file? |
| 2022-02-21 14:55:31 | <Drishal[m]> | > <@Solid:libera.chat> s/to/the/ |
| 2022-02-21 14:55:31 | <Drishal[m]> | * btw whats the source block options to tangle that particular block to another file? |
| 2022-02-21 14:55:33 | <lambdabot> | <hint>:1:1: error: parse error on input β<@β |
| 2022-02-21 14:56:43 | <Solid> | I think it's just :tangle file.ext |
| 2022-02-21 14:57:52 | β | telser joins (~quassel@user/telser) |
| 2022-02-21 15:13:20 | <Drishal[m]> | well this also gives me an idea to keep the ENTIRE xmonad related stuff right into this directory |
| 2022-02-21 15:13:20 | <Drishal[m]> | which also means other modules :P |
| 2022-02-21 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 |
| 2022-02-21 15:15:38 | <Drishal[m]> | which also means other modules :P |
| 2022-02-21 15:31:26 | Γ | noex quits (~null@user/noex) (Ping timeout: 260 seconds) |
| 2022-02-21 15:32:11 | β | noex joins (~null@user/noex) |
| 2022-02-21 15:47:05 | <Drishal[m]> | lol what |
| 2022-02-21 15:47:06 | Drishal[m] | uploaded an image: (116KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/lpUzriaMraSllAZNttrXYZOr/image.png > |
| 2022-02-21 15:48:43 | <Drishal[m]> | dracula.hs... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/d46d30362fdf4127141c4d1cb46b67186380fa2f) |
| 2022-02-21 15:49:12 | <geekosaur> | you may need `stack exec xmobar xmobar.hs` for it to find everything |
| 2022-02-21 15:49:23 | <geekosaur> | stack likes to keep everything hidden in its guts |
| 2022-02-21 15:50:13 | <geekosaur> | alsounless you specify xmonad as a dependency of xmobar, stack won't expose xmonad to xmobar |
| 2022-02-21 15:50:28 | <geekosaur> | since that import isn't doing anything,I'd just remove it |
| 2022-02-21 15:55:12 | Drishal[m] | uploaded an image: (32KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/aLWTDrOXyHpHABriasRxvDDh/image.png > |
| 2022-02-21 15:55:33 | <Drishal[m]> | <geekosaur> "since that import isn't doing..." <- for some reason ghc does not seem to like nerd font symbols π |
| 2022-02-21 15:56:07 | <geekosaur> | yes, ghc places a lot of imo unnecessary restrictions on string literals |
| 2022-02-21 15:56:30 | <geekosaur> | you'll have to replace it with an escape sequence. conveniently, it told you which one |
| 2022-02-21 15:59:21 | <Drishal[m]> | geekosaur: this this one correct? |
| 2022-02-21 15:59:21 | <Drishal[m]> | ```haskell |
| 2022-02-21 15:59:21 | <Drishal[m]> | <fc=#50fa7b> \58911 </fc> |
| 2022-02-21 15:59:21 | <Drishal[m]> | ``` |
| 2022-02-21 15:59:29 | <Drishal[m]> | s/one/way/, s/// |
| 2022-02-21 15:59:53 | Γ | peri4n quits (~peri4n@85.232.9.17) (Ping timeout: 256 seconds) |
| 2022-02-21 16:00:03 | <geekosaur> | yes |
| 2022-02-21 16:00:14 | <geekosaur> | unless you prefer the hex version for some reason |
| 2022-02-21 16:02:18 | <Drishal[m]> | geekosaur: but is there any way to force ghc to parse the symbol as it is |
| 2022-02-21 16:02:20 | <Drishal[m]> | s//?/ |
| 2022-02-21 16:03:29 | <geekosaur> | nope |
| 2022-02-21 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 |
| 2022-02-21 16:05:10 | <Solid> | afaik the unicode character tables were updated for 9.2.x |
| 2022-02-21 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 |
| 2022-02-21 16:05:40 | <geekosaur> | the character tables were but the restriction on PUA characters remains |
| 2022-02-21 16:06:04 | <geekosaur> | and I highly doubt they assigned a character slot for bind :) |
| 2022-02-21 16:06:16 | <geekosaur> | > generalCategory '\58911' |
| 2022-02-21 16:06:17 | <lambdabot> | PrivateUse |
| 2022-02-21 16:06:21 | <Solid> | oh, I see |
| 2022-02-21 16:06:39 | β | seschwar joins (~seschwar@user/seschwar) |
| 2022-02-21 16:11:50 | Γ | samhh quits (7569f027cf@2604:bf00:561:2000::e4) (Remote host closed the connection) |
| 2022-02-21 16:11:50 | Γ | zoglesby quits (f0f8ca1525@user/zoglesby) (Remote host closed the connection) |
| 2022-02-21 16:11:51 | Γ | raghavgururajan quits (ea769b8000@user/raghavgururajan) (Remote host closed the connection) |
| 2022-02-21 16:12:31 | β | samhh joins (7569f027cf@2604:bf00:561:2000::e4) |
| 2022-02-21 16:12:38 | β | zoglesby joins (f0f8ca1525@user/zoglesby) |
| 2022-02-21 16:12:50 | β | raghavgururajan joins (ea769b8000@user/raghavgururajan) |
| 2022-02-21 16:15:15 | <Drishal[m]> | btw can I call a color variable inside fc like this ? |
| 2022-02-21 16:15:15 | <Drishal[m]> | ``` |
| 2022-02-21 16:15:15 | <Drishal[m]> | <fc=colgrey>\62532</fc> |
| 2022-02-21 16:15:15 | <Drishal[m]> | ``` |
| 2022-02-21 16:15:52 | <geekosaur> | it's just a string |
| 2022-02-21 16:16:24 | <geekosaur> | "<fc=" ++ colgrey ++ "\62532</fc>" |
| 2022-02-21 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 ++ |
| 2022-02-21 16:17:32 | <Drishal[m]> | hmm π |
| 2022-02-21 16:17:39 | <Drishal[m]> | this is gonnna become tricky to do |
| 2022-02-21 16:18:16 | <geekosaur> | ? annoying I can see, but tricky? |
| 2022-02-21 16:18:39 | <Drishal[m]> | this is gonna be annoying xD |
| 2022-02-21 16:18:39 | <Drishal[m]> | ```haskell |
| 2022-02-21 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%" |
| 2022-02-21 16:18:39 | <Drishal[m]> | ``` |
| 2022-02-21 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 |
| 2022-02-21 16:19:14 | <geekosaur> | > generalCategory '\62532' |
| 2022-02-21 16:19:16 | <lambdabot> | PrivateUse |
| 2022-02-21 16:19:33 | <geekosaur> | huh. bullets are included in unicode |
| 2022-02-21 16:19:36 | <geekosaur> | β’ |
| 2022-02-21 16:20:32 | <Drishal[m]> | yep this breaks the bar |
| 2022-02-21 16:20:32 | <Drishal[m]> | ```haskell |
| 2022-02-21 16:20:32 | <Drishal[m]> | %battery%<fc= " ++ colgrey ++ ">\62532</fc> |
| 2022-02-21 16:20:32 | <Drishal[m]> | ``` |
| 2022-02-21 16:20:40 | <Solid> | > generalCategory '\8729' |
| 2022-02-21 16:20:42 | <lambdabot> | MathSymbol |
| 2022-02-21 16:20:47 | <Solid> | probably that one |
| 2022-02-21 16:20:55 | <Drishal[m]> | s///, s/%/"...%/, s/>/>..."/ |
| 2022-02-21 16:20:58 | <geekosaur> | > text '\8729' |
| 2022-02-21 16:21:00 | <lambdabot> | error: |
| 2022-02-21 16:21:00 | <lambdabot> | β’ Couldn't match type βCharβ with β[Char]β |
| 2022-02-21 16:21:00 | <lambdabot> | Expected type: String |
| 2022-02-21 16:21:08 | <geekosaur> | > text "\8729" |
All times are in UTC.