Logs: liberachat/#xmonad
| 2022-09-23 12:28:34 | × | coin_ex_exchange quits (~coinexexc@2001:470:69fc:105::2:87c8) (Quit: User was banned) |
| 2022-09-23 13:07:01 | × | benin0 quits (~benin@183.82.24.8) (Quit: The Lounge - https://thelounge.chat) |
| 2022-09-23 13:43:08 | → | mesaoptimizer joins (apotheosis@user/PapuaHardyNet) |
| 2022-09-23 13:43:25 | <mesaoptimizer> | how do I map a keybind to either switch to or open an instance of a program? |
| 2022-09-23 13:46:27 | <QNX> | mesaoptimizer: I recently did this using NamedScratchPads, you don't have to float the window |
| 2022-09-23 13:46:54 | <QNX> | Then you can bind a key to show the scratchpad workspace |
| 2022-09-23 13:46:57 | <QNX> | If that's what you want |
| 2022-09-23 13:47:06 | <geekosaur> | https://hackage.haskell.org/package/xmonad-contrib-0.17.1/docs/XMonad-Actions-WindowGo.html#v:runOrRaise |
| 2022-09-23 13:47:47 | <QNX> | Run or raise isn't a key shortcut to the actual app though |
| 2022-09-23 13:48:13 | <QNX> | But it does give you a little prompt where youcan type an app name, if it's already launched, it will switch to it, else it will run it. |
| 2022-09-23 13:48:13 | × | fjMSX quits (~hypni2p@2.92.213.55) (Read error: Connection reset by peer) |
| 2022-09-23 13:48:35 | <QNX> | But if you want a keyboard shortcut, that's probably with NamedScratchpads |
| 2022-09-23 13:48:52 | <QNX> | I'm also noob. :) |
| 2022-09-23 13:49:41 | <geekosaur> | no, because it can't auto-derive a Query Bool from a typed app name (see discussion of Firefox's name earlier in the file) |
| 2022-09-23 13:49:45 | <QNX> | Wait, this run or raise isn't the same |
| 2022-09-23 13:50:08 | <geekosaur> | first parameter is an app to run, second is a Query to identify a running instance window |
| 2022-09-23 13:50:23 | <QNX> | There is run/raise in prompts. I mistkenly thought that |
| 2022-09-23 13:50:36 | <QNX> | This is in Actions. I see. |
| 2022-09-23 13:53:52 | → | fjMSX joins (~hypni2p@2.92.213.55) |
| 2022-09-23 14:00:12 | <mesaoptimizer> | beautiful, thank you |
| 2022-09-23 14:01:06 | <mesaoptimizer> | xmonad is probably the best experience I've had working with a software, even better than emacs. With emacs debugging configs is a pain that xmonad doesn't have. |
| 2022-09-23 14:05:14 | <Lears> | I should hope so, or all our static types and purity would be in vain. Emacs config is a great terrible monster of hooks in hooks in hooks and they're all dynamic and there are no types. Just remembering it makes me shiver. |
| 2022-09-23 14:06:31 | <mesaoptimizer> | Lears: you don't use emacs anymore? if so, what do you use instead? |
| 2022-09-23 14:07:23 | <Lears> | I retreated to vim. |
| 2022-09-23 14:09:06 | <Lears> | I gather vim-script isn't actually any better, but luckily, I find a more-or-less plain vim does everything I need. |
| 2022-09-23 14:09:34 | <Lears> | (and evil-mode really doesn't) |
| 2022-09-23 14:11:30 | <mesaoptimizer> | I consider vimscript strictly worse than elisp. I once spent a few months maintaining and upgrading a vim-taskwarrior fork and that convinced me I couldn't stick with vim and vimscript any longer |
| 2022-09-23 14:12:51 | <floweynt[m]> | why is xmobar failing to parse <action> tags |
| 2022-09-23 14:13:10 | <QNX> | Then we need an emacs and vim like editor with sane types in haskell |
| 2022-09-23 14:13:25 | <geekosaur> | yi exists but is currently not maintained |
| 2022-09-23 14:15:03 | <geekosaur> | floweynt[m], did you use the unsafe version of the xmobar operation (https://codeberg.org/xmobar/xmobar/src/branch/master/doc/plugins.org#headline-64) |
| 2022-09-23 14:15:33 | <geekosaur> | by default xmobar rejects most tags for safety, you have to explicitly request that it honor them |
| 2022-09-23 14:16:34 | <Lears> | QNX: People have tried, but it's not that easy. I tried to get into yi way back, but the design was poor and the functionality it offered was too lacking. rasa is a more likely replacement; haven't looked at that in a few years... |
| 2022-09-23 14:17:03 | <floweynt[m]> | geekosaur: yeah, i think that fixed it |
| 2022-09-23 14:28:41 | × | thunderrd quits (~thunderrd@183.182.111.127) (Remote host closed the connection) |
| 2022-09-23 14:35:32 | → | uj[m] joins (~ujmatrixo@2001:470:69fc:105::2:888f) |
| 2022-09-23 14:36:39 | → | thunderrd joins (~thunderrd@183.182.111.127) |
| 2022-09-23 15:26:50 | <floweynt[m]> | time to figure out "why the fuck won't xmonad float touhou project" |
| 2022-09-23 15:27:51 | <geekosaur> | https://hackage.haskell.org/package/xmonad-contrib-0.17.1/docs/XMonad-Hooks-ManageDebug.html |
| 2022-09-23 15:46:38 | <floweynt[m]> | for some reason adding logLayout to ppExtras doesnt work |
| 2022-09-23 15:46:41 | <floweynt[m]> | this is very strange |
| 2022-09-23 15:47:35 | <floweynt[m]> | it prevents the entire status bar from updating |
| 2022-09-23 15:48:03 | <geekosaur> | when I get that ot usually means there's a bug in the markup and it confuses the status bar |
| 2022-09-23 15:48:15 | <geekosaur> | but in my case that's xmonad-log-applet |
| 2022-09-23 15:48:24 | <geekosaur> | *it |
| 2022-09-23 16:19:05 | × | Natch quits (~natch@c-9e07225c.038-60-73746f7.bbcust.telenor.se) (Remote host closed the connection) |
| 2022-09-23 16:31:28 | → | Natch joins (~natch@c-9e07225c.038-60-73746f7.bbcust.telenor.se) |
| 2022-09-23 16:42:44 | → | berberman joins (~berberman@user/berberman) |
| 2022-09-23 16:55:25 | × | berberman quits (~berberman@user/berberman) (Quit: ZNC 1.8.2 - https://znc.in) |
| 2022-09-23 16:56:12 | → | berberman joins (~berberman@user/berberman) |
| 2022-09-23 17:28:13 | × | Lears quits (~Leary]@user/Leary/x-0910699) (Remote host closed the connection) |
| 2022-09-23 17:29:04 | → | [Leary] joins (~Leary]@user/Leary/x-0910699) |
| 2022-09-23 17:35:56 | × | mesaoptimizer quits (apotheosis@user/PapuaHardyNet) (Quit: mesaoptimizer) |
| 2022-09-23 17:36:07 | → | mesaoptimizer joins (apotheosis@user/PapuaHardyNet) |
| 2022-09-23 18:09:48 | × | gauge_ quits (~gauge@user/gauge) (Quit: Quitting) |
| 2022-09-23 18:10:42 | → | gauge joins (~gauge@user/gauge) |
| 2022-09-23 18:21:29 | → | jao joins (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) |
| 2022-09-23 18:27:19 | × | gauge quits (~gauge@user/gauge) (Quit: Quitting) |
| 2022-09-23 18:28:04 | → | gauge joins (~gauge@user/gauge) |
| 2022-09-23 19:20:31 | <QNX> | Hello. I have a need to do the following, but I can't remember how |
| 2022-09-23 19:20:48 | <QNX> | I want to switch to a workspace after a doShift |
| 2022-09-23 19:21:20 | <QNX> | If I doShift a window to for example, workspace 3:, then I would also like to switch to that workspace automtically |
| 2022-09-23 19:22:15 | <geekosaur> | doShift "3" <> view "3" |
| 2022-09-23 19:22:24 | <geekosaur> | hm, might need to reverse them |
| 2022-09-23 19:25:52 | <QNX> | I got error both ways: , className =? "dolphin" --> doShift "4:FileManager" <> W.view "4:FileManager" |
| 2022-09-23 19:26:07 | <QNX> | I tried W.view and also just view by itself |
| 2022-09-23 19:26:12 | <QNX> | I also tried both orders |
| 2022-09-23 19:26:48 | <QNX> | Variable view not in scope, perhaps I meant W. ? |
| 2022-09-23 19:26:55 | <QNX> | Is the error. |
| 2022-09-23 19:27:54 | <QNX> | https://hackage.haskell.org/package/xmonad-0.17.1/docs/XMonad-ManageHook.html I don't see a view function here |
| 2022-09-23 19:30:00 | <QNX> | https://bbs.archlinux.org/viewtopic.php?id=66854 trying to understand this |
| 2022-09-23 19:30:01 | <geekosaur> | it's in XMonad.StackSet which is what's normally imported as W |
| 2022-09-23 19:30:17 | <QNX> | Yes I ahve it imported as W |
| 2022-09-23 19:31:04 | <geekosaur> | oh, right, need the doF so you can't use doShift |
| 2022-09-23 19:31:37 | <geekosaur> | doF (W.shift "4" <> W.view "4") -- (or W.greedyView if you prefer) |
| 2022-09-23 19:32:56 | <QNX> | , className =? "dolphin" --> doF (W.shift "4:FileManager") <+> doF (W.greedyview "4:FileManager") |
| 2022-09-23 19:33:09 | <QNX> | I trid this too, without luck, I got error on W.view or W.greedyview not in scope |
| 2022-09-23 19:33:49 | <QNX> | import qualified XMonad.StackSet as W < I have this in there too |
| 2022-09-23 19:34:17 | <geekosaur> | don't combine the doF's like that, for one; I showed it the way I did for a reason |
| 2022-09-23 19:34:18 | <QNX> | I tried greedyView and I didn't get error |
| 2022-09-23 19:34:24 | <QNX> | Oh sorry ok |
| 2022-09-23 19:34:27 | <QNX> | I copied from the site I pasted |
| 2022-09-23 19:34:48 | <geekosaur> | but it sounds like you have some other problem as view and greedyView are both definitely in XMonad.StackSet and have been since xmonad 0.1 |
| 2022-09-23 19:34:59 | <QNX> | I will paste my entire file |
| 2022-09-23 19:35:20 | <floweynt[m]> | can you compose loggers? |
| 2022-09-23 19:35:48 | <QNX> | https://bpa.st/RCRA xmonad.hs |
| 2022-09-23 19:35:53 | <geekosaur> | conmpose in what sense? |
| 2022-09-23 19:37:19 | <QNX> | I don't get error with W.greedyView (but I do if view is lower ase, with or without greedy) |
| 2022-09-23 19:38:45 | <geekosaur> | "W.greedyView" is correct, "W.greedyview" is not. "W.view" is correct. https://hackage.haskell.org/package/xmonad-0.17.1/docs/XMonad-StackSet.html#v:view |
| 2022-09-23 19:39:48 | <QNX> | I no longer have error with view or with greedyView |
| 2022-09-23 19:39:51 | <QNX> | Thank you |
| 2022-09-23 19:43:11 | <floweynt[m]> | <geekosaur> "conmpose in what sense?" <- concatenation |
| 2022-09-23 19:44:34 | <geekosaur> | liftA2 (++) logger1 logger2 |
| 2022-09-23 19:44:53 | <geekosaur> | (they're `Maybe String`s) |
| 2022-09-23 19:45:28 | <QNX> | So you were correct in saying that view first, then shift, and it works. |
| 2022-09-23 19:54:36 | × | berberman quits (~berberman@user/berberman) (Ping timeout: 260 seconds) |
| 2022-09-23 19:57:41 | <QNX> | https://bpa.st/SO4A In this bit of code, how can I consolidate these all into one line using regex type stuff like ... |
| 2022-09-23 19:58:07 | <QNX> | like ("mpv" | "obs" | "vlc") |
| 2022-09-23 19:58:19 | <QNX> | Instead of having to do them on each line separately |
| 2022-09-23 19:58:40 | <QNX> | (or not regex) but how can I combine them into one |
All times are in UTC.