Logs: liberachat/#xmonad
| 2024-05-03 14:23:08 | → | tv joins (~tv@user/tv) |
| 2024-05-03 14:23:29 | → | Guest9624 joins (~roo@39.sub-174-235-49.myvzw.com) |
| 2024-05-03 15:05:09 | → | ft joins (~ft@p3e9bc1bf.dip0.t-ipconnect.de) |
| 2024-05-03 15:09:36 | × | Guest9624 quits (~roo@39.sub-174-235-49.myvzw.com) (Quit: Leaving) |
| 2024-05-03 15:53:23 | × | sajenim quits (~sajenim@user/sajenim) (Ping timeout: 260 seconds) |
| 2024-05-03 17:29:45 | → | acidbong joins (6e5528b381@198.108.77.243) |
| 2024-05-03 17:35:13 | <acidbong> | hi there, hello. do questions about xmobar belong here? I can't see any chats in its repo's README |
| 2024-05-03 17:35:51 | <geekosaur> | yes |
| 2024-05-03 17:35:58 | <geekosaur> | (although I probably can't help) |
| 2024-05-03 17:38:58 | <acidbong> | it's fine |
| 2024-05-03 17:38:58 | <acidbong> | anyway, about the Locks module or the templating in general: is it possible to remove the spacing between outputs when one is empty? example config and output on the screenshot below |
| 2024-05-03 17:39:22 | <acidbong> | https://uploads.hmm.st/acidbong/MsxUq58zgYNv/92ec8887-9dfc-4d11-93a5-9b07f81510d8.png |
| 2024-05-03 17:43:05 | <liskin> | acidbong: just looked at the source and the answer is no |
| 2024-05-03 17:43:26 | <liskin> | most other monitors let you customize the formatting somehow but Locks is really very simple stupid |
| 2024-05-03 17:44:50 | <acidbong> | sadge |
| 2024-05-03 17:44:50 | <acidbong> | i guess i'll separate kbd and locks with a vertical bar to show there's something on the right (if the widget is empty) |
| 2024-05-03 17:45:13 | <liskin> | you could patch Locks to include the space if its output is nonempty, and then omit the space in template… |
| 2024-05-03 17:45:19 | <liskin> | but you'd need to be patching xmobar |
| 2024-05-03 17:45:34 | <liskin> | suppose than shouldn't be that difficult in nix though |
| 2024-05-03 17:45:51 | <liskin> | s/than/that/ |
| 2024-05-03 18:10:15 | <acidbong> | it wouldn't be, but will take a lot of time to compile + I don't know Haskell apart from making an Xmonad config |
| 2024-05-03 18:47:08 | <acidbong> | damn, xmobar doesn't have a headphone indicator |
| 2024-05-03 19:20:04 | <liskin> | will it? xmobar compiles in a couple seconds on my 6 year old laptop :-) |
| 2024-05-03 20:25:35 | <acidbong> | although yeah, it's a quick one |
| 2024-05-03 20:26:07 | <acidbong> | i forgot that on Gentoo i had to compile all its deps (and xmobar has a LOT) |
| 2024-05-03 20:27:10 | <liskin> | mostly the same ones you need to compile your xmonad config anyway… |
| 2024-05-03 20:28:12 | <geekosaur> | not if you build it with all plugins enabled 🙂 |
| 2024-05-03 20:28:21 | <geekosaur> | last I checked, we didn't depend on mpd |
| 2024-05-03 20:35:27 | <liskin> | oh, right, I never tried that |
| 2024-05-03 20:35:56 | <liskin> | I've only been using the basic set, as everything else is better done in bash than whatever the Haskell impl in xmobar is |
| 2024-05-03 20:40:37 | × | ectospasm quits (~ectospasm@user/ectospasm) (Quit: WeeChat 4.2.2) |
| 2024-05-03 20:40:57 | → | ectospasm joins (~ectospasm@user/ectospasm) |
| 2024-05-03 22:58:36 | <haskellbridge> | <Nexilva> Hi guys |
| 2024-05-03 22:59:00 | <geekosaur> | hello |
| 2024-05-03 22:59:03 | <haskellbridge> | <Nexilva> How can I send this to monitor #2 |
| 2024-05-03 22:59:04 | <haskellbridge> | <Nexilva> ```name `oneOf` [ "Diablo II: Resurrected" ] --> (doF . W.view <> doShift) "18:Diablo" |
| 2024-05-03 22:59:05 | <haskellbridge> | <Nexilva> ``` |
| 2024-05-03 22:59:11 | <haskellbridge> | <Nexilva> How can I send this to monitor #2 |
| 2024-05-03 22:59:12 | <haskellbridge> | <Nexilva> `name `oneOf` \[ "Diablo II: Resurrected" \] --> (doF . W.view \<> doShift) "18:Diablo"` |
| 2024-05-03 22:59:21 | <haskellbridge> | <Nexilva> Hope you're doing well today |
| 2024-05-03 22:59:35 | <haskellbridge> | <Nexilva> How can I send this to monitor #2 |
| 2024-05-03 22:59:35 | <haskellbridge> | <Nexilva> `name `oneOf` [ "Diablo II: Resurrected" ] --> (doF . W.view <> doShift) "18:Diablo"` |
| 2024-05-03 22:59:51 | <geekosaur> | edits don't work IRC-side |
| 2024-05-03 22:59:57 | <haskellbridge> | <Nexilva> Ohhh |
| 2024-05-03 22:59:58 | <haskellbridge> | <Nexilva> Sorry |
| 2024-05-03 23:00:38 | <haskellbridge> | <Nexilva> `name oneOf [ "Diablo II: Resurrected" ] --> (doF . W.view <> doShift) "18:Diablo" THEN SEND TO MONITOR #2 or SWITCH TO MON 2 AND MAKE 18 Active` |
| 2024-05-03 23:00:43 | <haskellbridge> | <Nexilva> How can I do that? |
| 2024-05-03 23:03:55 | <haskellbridge> | <Nexilva> --> (doF $ W.greedyView "18:Diablo" <+> W.shift "18:Diablo" <+> W.view "2") |
| 2024-05-03 23:04:24 | <haskellbridge> | <Nexilva> No first shift, then greedyview, then view 2 |
| 2024-05-03 23:04:49 | → | kaskal- joins (~kaskal@2001:4bb8:2d2:1257:60b1:1057:17df:5755) |
| 2024-05-03 23:05:28 | <haskellbridge> | <Nexilva> I have no idea how to do this, my haskell sucks |
| 2024-05-03 23:05:44 | <geekosaur> | poking at it |
| 2024-05-03 23:07:44 | × | kaskal quits (~kaskal@089144220117.atnat0029.highway.webapn.at) (Quit: ZNC - https://znc.in) |
| 2024-05-03 23:09:17 | <geekosaur> | https://paste.tomsmeding.com/fphslrKL there's probably a more optimal way to do it |
| 2024-05-03 23:09:30 | <geekosaur> | the Nothing case is for when you only have one monitor for some reason |
| 2024-05-03 23:10:44 | <geekosaur> | mm, actually that's a bad idea |
| 2024-05-03 23:19:03 | <geekosaur> | https://paste.tomsmeding.com/sObZZjk2 |
| 2024-05-03 23:21:25 | <haskellbridge> | <Nexilva> 196 | ask >>= \w -> liftX (screenWorkspace 2 >>= \case |
| 2024-05-03 23:21:31 | <haskellbridge> | <Nexilva> Suggested fix: Perhaps you intended to use LambdaCase |
| 2024-05-03 23:21:39 | <haskellbridge> | <Nexilva> Please check the file for errors. |
| 2024-05-03 23:21:53 | <geekosaur> | yes, sorry, I did use LambdaCase (the "\case") |
| 2024-05-03 23:22:23 | <haskellbridge> | <Nexilva> I was pasting compile logs it didn't compile |
| 2024-05-03 23:22:25 | <geekosaur> | if you prefer not tu enable it, replace with: \x -> case x of |
| 2024-05-03 23:22:44 | <liskin> | and there's also https://xmonad.github.io/xmonad-docs/xmonad-contrib-0.18.0.9/XMonad-Actions-PhysicalScreens.html if the xinerama screen ordering isn't good enough |
| 2024-05-03 23:22:48 | <haskellbridge> | <Nexilva> I have noidea what you even did ha |
| 2024-05-03 23:23:49 | <geekosaur> | the sequence "\case" is not standard Haskell. you can either put "{-# LANGUAGE LambdaCase #-}" at the top of the file, or you can replace "\case" with "\x -> case x of" |
| 2024-05-03 23:25:54 | <haskellbridge> | <Nexilva> https://bpa.st/I3YA |
| 2024-05-03 23:26:12 | <haskellbridge> | <Nexilva> https://bpa.st/W5LQ |
| 2024-05-03 23:32:31 | <geekosaur> | sorry, you need to import Data.Semigroup |
| 2024-05-03 23:33:01 | <geekosaur> | or Data.Monoid |
| 2024-05-03 23:33:18 | <geekosaur> | (I tested it in my xmonad.hs, where I already have Data.Monoid imported for other reasons) |
| 2024-05-03 23:49:39 | × | catman quits (~catman@user/catman) (Remote host closed the connection) |
| 2024-05-03 23:57:25 | → | catman joins (~catman@user/catman) |
| 2024-05-03 23:59:54 | <haskellbridge> | <Nexilva> https://bpa.st/XLRQ after import. sorry was eating dinner |
| 2024-05-04 00:00:12 | × | catman quits (~catman@user/catman) (Client Quit) |
| 2024-05-04 00:01:06 | <geekosaur> | hrm |
| 2024-05-04 00:01:23 | → | catman joins (~catman@user/catman) |
| 2024-05-04 00:01:26 | <geekosaur> | I missed that, it's supposed to be using the function instance since those are functions] |
| 2024-05-04 00:01:42 | <geekosaur> | wait |
| 2024-05-04 00:03:27 | <geekosaur> | used the wrong operator in the wrong place |
| 2024-05-04 00:04:07 | <geekosaur> | https://paste.tomsmeding.com/eBOTVin9 |
| 2024-05-04 00:05:43 | <geekosaur> | :: Eq s => Query (Endo (W.StackSet String l Window s sd)) |
| 2024-05-04 00:05:47 | <geekosaur> | that looks more sensible |
| 2024-05-04 00:07:20 | <haskellbridge> | <Nexilva> Thanks |
| 2024-05-04 00:08:29 | <haskellbridge> | <Nexilva> I noticed that it puts the window in the monitor where the mouse cursor is. Can we always send it to monitor #2 regardless of which monitor the mouse is currently in? |
| 2024-05-04 00:09:54 | <haskellbridge> | <Nexilva> or wait |
| 2024-05-04 00:10:32 | <haskellbridge> | <Nexilva> if I'm on monitor1, launch the game from a window in monitor one, it will switch to WS 18, but game window stays on monitor 1 |
| 2024-05-04 00:10:34 | <liskin> | Nexilva: do you actually play those games or do you just like to play with making them work in xmonad? :-D |
| 2024-05-04 00:10:37 | <geekosaur> | that sounds wrong. it should focus the second monitor, then move your window to the diablo workspace, then show the diablo workspace on the second monitor (unless it's on the first monitor) |
| 2024-05-04 00:10:45 | <haskellbridge> | <Nexilva> I play them 🙂 |
| 2024-05-04 00:11:01 | <liskin> | I mean, I'm not taking the piss, I realised I probably enjoy more the fiddling than the actual playing |
| 2024-05-04 00:11:07 | <geekosaur> | the "unless" is somewhat difficult to resolve |
| 2024-05-04 00:11:27 | <liskin> | I did play D2 for a bit yesterday, but still spent more time overall making it work |
| 2024-05-04 00:11:45 | <haskellbridge> | <Nexilva> https://bpa.st/SBWQ here's my whole file |
| 2024-05-04 00:11:59 | <liskin> | anyway, good night all :-) |
| 2024-05-04 00:12:23 | <haskellbridge> | <Nexilva> If you ever wanna play my mod |
| 2024-05-04 00:12:26 | <haskellbridge> | <Nexilva> That'd be cool |
| 2024-05-04 00:12:31 | <geekosaur> | hm, try swapping the first two operations (the first W.view and the W.shiftWin |
| 2024-05-04 00:12:33 | <haskellbridge> | <Nexilva> https://im.stoned.io |
| 2024-05-04 00:12:34 | <geekosaur> | ) |
All times are in UTC.