Home liberachat/#xmonad: Logs Calendar

Logs: liberachat/#xmonad

←Prev  Next→ 184,733 events total
2024-06-13 15:57:50 rascasse joins (~rascasse@user/diep)
2024-06-13 16:11:43 × xmonadtrack quits (~xmonadtra@user/geekosaur/bot/xmonadtrack) (Remote host closed the connection)
2024-06-13 16:12:33 × haskellbridge quits (~hackager@syn-024-093-192-219.res.spectrum.com) (Remote host closed the connection)
2024-06-13 16:18:38 haskellbridge joins (~hackager@syn-024-093-192-219.res.spectrum.com)
2024-06-13 16:18:49 xmonadtrack joins (~xmonadtra@syn-024-093-192-219.res.spectrum.com)
2024-06-13 16:18:49 × xmonadtrack quits (~xmonadtra@syn-024-093-192-219.res.spectrum.com) (Changing host)
2024-06-13 16:18:49 xmonadtrack joins (~xmonadtra@user/geekosaur/bot/xmonadtrack)
2024-06-13 16:22:43 × cfricke quits (~cfricke@user/cfricke) (Quit: WeeChat 4.2.2)
2024-06-13 17:54:22 ft joins (~ft@p3e9bcb39.dip0.t-ipconnect.de)
2024-06-13 19:36:39 mekeor joins (~user@2001:a61:10ae:1901:3241:bc6e:53bb:fccc)
2024-06-13 20:38:13 × rascasse quits (~rascasse@user/diep) (Remote host closed the connection)
2024-06-13 21:15:51 × mekeor quits (~user@2001:a61:10ae:1901:3241:bc6e:53bb:fccc) (Ping timeout: 264 seconds)
2024-06-13 21:44:54 <haskellbridge> <iqubic (she/her)> I'm looking to set up some Named Scratchpads. I'm not sure what "Query Bool" as the query parameter of the NS constructor? How do I know if I want to use "className" or "appName" and how do I get those values?
2024-06-13 21:47:13 <haskellbridge> <iqubic (she/her)> I'm wanting to make an Emacs window into a scratchpad. According to what I've read online using "emacsclient -c --frame-parameters='(quote (name . "scratchmacs"))'" as the way to launch Emacs sets either the "className" or the "appName" and I'm not sure which.
2024-06-13 21:49:43 <geekosaur> a Query Bool is what goes on the left side of `-->` in a ManageHook
2024-06-13 21:49:46 <haskellbridge> <iqubic (she/her)> Using "xprop" gives this piece of info: "WM_CLASS(STRING) = "scratchmacs", "Emacs"". I think that means I want to use something like "appName =? scratchmacs" right?
2024-06-13 21:50:02 <geekosaur> (NamedScratchpads in effect build custom ManageHooks)
2024-06-13 21:50:19 <geekosaur> with quotes around "scratchmacs", yes
2024-06-13 21:50:32 <haskellbridge> <iqubic (she/her)> Right. Because that has to be a string.
2024-06-13 21:51:09 <geekosaur> https://github.com/geekosaur/xmonad.hs/blob/hilfy-2023/xmonad.hs#L94-L132
2024-06-13 21:51:39 <geekosaur> (and `remoteCrawl` is just above it)
2024-06-13 21:51:58 <haskellbridge> <iqubic (she/her)> So, appName is the first string returned by WM_CLASS? Got it.
2024-06-13 21:52:09 <geekosaur> yes, and className is the second
2024-06-13 21:52:56 <haskellbridge> <iqubic (she/her)> I don't see any way to change the class name of a new emacs window, but I don't have a way to change the appName
2024-06-13 21:53:14 <geekosaur> there's a utility script in xmonad-contrib (that sadly doesn't get installed) that outputs properties in ManageHook format: https://github.com/xmonad/xmonad-contrib/blob/master/scripts/window-properties.sh
2024-06-13 21:53:41 <geekosaur> in general you don't change className, it's supposed to apply to all instances
2024-06-13 21:55:28 <haskellbridge> <iqubic (she/her)> Right. What's going on here is that I have Emacs running as a daemon in the background, and then I'm just firing up a client so that I can do some edits and things. And then I can close that window without losing all of the Emacs state.
2024-06-13 21:56:31 <haskellbridge> <iqubic (she/her)> What does "(noTaskbar <> doFloatPlace)" mean
2024-06-13 21:58:33 <geekosaur> doFloatPlace just composes a PlaceHook with doFloat (https://github.com/geekosaur/xmonad.hs/blob/hilfy-2023/xmonad.hs#L298-L299)
2024-06-13 21:59:09 <geekosaur> noTaskBar is from XMonad.Util.NoTaskbar and hides windows from EWMH compliant taskbars
2024-06-13 21:59:16 <haskellbridge> <iqubic (she/her)> Why are you doing that? What benefits does that give you?
2024-06-13 21:59:19 <geekosaur> (I use xmonad as WM for Mate)
2024-06-13 21:59:38 <haskellbridge> <iqubic (she/her)> I see. I didn't know you could use that.
2024-06-13 21:59:42 <haskellbridge> <iqubic (she/her)> +do
2024-06-13 22:00:07 <haskellbridge> <iqubic (she/her)> I'm running XMonad without any sort of DE
2024-06-13 22:00:27 <geekosaur> because I open like 8 `sxiv` windows (still trying to reproduce https://github.com/xmonad/xmonad-contrib/issues/753) and I don't want them clogging my taskbar
2024-06-13 22:02:28 <geekosaur> the XMonad.Desktop hierarchy provides support for xmonad as WM for a number of desktops. read the wiki because you generally need to reconfigure the DE to use xmonad; for example https://wiki.haskell.org/Xmonad/Using_xmonad_in_MATE
2024-06-13 22:02:30 <haskellbridge> <iqubic (she/her)> Do you know if XMobar is EWMH compliant? I don't want named scratchpads to show up in the list of workspaces that XMobar reports.
2024-06-13 22:02:39 <geekosaur> it's not
2024-06-13 22:04:11 <haskellbridge> <iqubic (she/her)> Got it. So I'd probably have to modify my Pretty Printer to explicitly exclude those.
2024-06-13 22:04:14 <geekosaur> to hide the NSP workspace from the information that xmobar gets, you want https://hackage.haskell.org/package/xmonad-contrib-0.18.0/docs/XMonad-Hooks-StatusBar-PP.html#v:filterOutWsPP
2024-06-13 22:04:56 <haskellbridge> <iqubic (she/her)> Yeah. I can totally use that!
2024-06-13 22:06:07 <haskellbridge> <iqubic (she/her)> What is "myPlaceHook" doing for you? (noTaskbar <> doFloatPlace)
2024-06-13 22:06:07 <haskellbridge> <iqubic (she/her)> -(noTaskbar <> doFloatPlace)
2024-06-13 22:06:13 <haskellbridge> <iqubic (she/her)> https://github.com/geekosaur/xmonad.hs/blob/hilfy-2023/xmonad.hs#L296C1-L296C42
2024-06-13 22:07:29 <geekosaur> places floating windows near the center of the screen, not allowing them to go outside the screen unless they're straight-up too big to fit, and trying to keep them from overlapping each other
2024-06-13 22:09:39 <haskellbridge> <iqubic (she/her)> If I want to do something simple, can't I just use "customFloating"?
2024-06-13 22:10:02 <geekosaur> yes
2024-06-13 22:10:50 <haskellbridge> <iqubic (she/her)> What do the 4 parameters to "W.RationalRect" even specify? The docs don't explain it. It just shows it as 4 strict Rationals with no explanation.
2024-06-13 22:11:40 <geekosaur> it's an X112 Rectangle rephrased as a proportion of the screen, since it can be applied to screens with different sizes
2024-06-13 22:12:40 <haskellbridge> <iqubic (she/her)> Ah. I see.
2024-06-13 22:13:11 <geekosaur> https://github.com/geekosaur/xmonad.hs/blob/hilfy-2023/xmonad.hs#L112
2024-06-13 22:14:26 <geekosaur> start a quarter of the way across the screen horizontally and right at the top vertically, width is half the screen, height is 35/100 of the screen
2024-06-13 22:14:57 <haskellbridge> <iqubic (she/her)> Right. I see.
2024-06-13 22:15:05 <haskellbridge> <iqubic (she/her)> "myPlaceHook = inBounds $ smart (0.5, 0.5)"
2024-06-13 22:15:17 <haskellbridge> <iqubic (she/her)> What do the two 0.5s there mean?
2024-06-13 22:15:34 <geekosaur> https://imgur.com/CtdtqU0.png
2024-06-13 22:15:54 <geekosaur> indicates the center of the screen (halfway across in both X and Y dimensions)
2024-06-13 22:16:49 <haskellbridge> <iqubic (she/her)> Right. Got it. I'll have a play with this and see what I can get setup.
2024-06-13 22:16:53 <haskellbridge> <iqubic (she/her)> * set up.
2024-06-13 22:17:33 <haskellbridge> <iqubic (she/her)> I assume your most recent image is wide because you have a dual-head setup. Is that right?
2024-06-13 22:17:39 <geekosaur> yes
2024-06-13 22:17:59 <haskellbridge> <iqubic (she/her)> Cool. Thanks for helping me understand this.
2024-06-13 22:19:09 <haskellbridge> <iqubic (she/her)> I've been using XMonad for a while, but I've only just now decided to make major changes to my config.
2024-06-13 22:19:56 <haskellbridge> <iqubic (she/her)> It's actually really easy to use XMonad with NixOS.
2024-06-13 22:21:00 <haskellbridge> <iqubic (she/her)> I had a few ideas for making my own layouts, but then found out that all of them could be found in contrib already.
2024-06-13 22:29:20 <haskellbridge> <iqubic (she/her)> As a woman in tech spaces, people sometimes don't want to help me. Thank you for helping me understand XMonad.
2024-06-13 22:29:44 <haskellbridge> <iqubic (she/her)> And to make matters worse, I'm a trans woman!
2024-06-13 22:57:28 × MrElendig quits (~Urist@archlinux/op/MrElendig) (Quit: Hans, get the flammenwerfer)
2024-06-13 22:59:01 MrElendig joins (~Urist@archlinux/op/MrElendig)
2024-06-14 02:43:34 × terrorjack quits (~terrorjac@2a01:4f8:c17:87f8::) (Quit: The Lounge - https://thelounge.chat)
2024-06-14 02:47:47 terrorjack joins (~terrorjac@2a01:4f8:c17:87f8::)
2024-06-14 02:53:48 × td_ quits (~td@i53870929.versanet.de) (Ping timeout: 256 seconds)
2024-06-14 02:55:32 td_ joins (~td@i53870931.versanet.de)
2024-06-14 03:31:51 <haskellbridge> <iqubic (she/her)> geekosaur: Is there a better way to provide types for layouts than just listing out everything?!?! Or is the answer that I just need to cry?
2024-06-14 03:31:53 <haskellbridge> ... long message truncated: https://kf8nh.com/_matrix/media/v3/download/kf8nh.com/KBZQKAtOElBBlOyBBAoZIwYd (3 lines)
2024-06-14 03:32:16 <geekosaur> cry, or make an LSP client do it for you
2024-06-14 03:32:40 <haskellbridge> <iqubic (she/her)> Got it... I'm not gonna specify types for this.
2024-06-14 03:32:58 <haskellbridge> <iqubic (she/her)> Also, why did the haskell bridge react to that message?
2024-06-14 03:33:04 <geekosaur> (sadly, while they'll happily write out the type signature, they don't add the imports needed for it to work)
2024-06-14 03:33:38 <haskellbridge> <iqubic (she/her)> I know what you mean. I'm just not gonna add the type signature there...
2024-06-14 03:33:47 <geekosaur> one emote means it split it into separate lines for IRC, the other means it was too long so it pastebinned it
2024-06-14 03:34:08 <haskellbridge> <iqubic (she/her)> Oh? Is this channel bridged to IRC?
2024-06-14 03:34:18 <geekosaur> yes
2024-06-14 03:34:37 <geekosaur> #xmonad on libera
2024-06-14 03:42:25 <haskellbridge> <iqubic (she/her)> Where's the default layoutHook defined?
2024-06-14 03:43:24 <geekosaur> https://github.com/xmonad/xmonad/blob/master/src/XMonad/Config.hs#L135-L149
2024-06-14 03:45:07 <haskellbridge> <iqubic (she/her)> I mainly just wanted to have the default values for Tall, because I like those defaults.
2024-06-14 03:46:29 <haskellbridge> <iqubic (she/her)> Do I need to have any special imports to get the Tall, Mirrored, and Full data constructors in scope, or are those defaults?
2024-06-14 03:46:53 <geekosaur> you should get those with `import XMonad`
2024-06-14 03:47:36 <geekosaur> which re-exports everything exported by the core modules, except for XMonad.StackSet which collides with Prelude functions (by convention we import that qualified as W when needed)
2024-06-14 03:48:10 <haskellbridge> <iqubic (she/her)> Why do we use W? Why is that the letter we use?
2024-06-14 03:49:05 <geekosaur> I think you'd have to ask Spencer about that
2024-06-14 03:49:21 <geekosaur> I think he's in #haskell:matrix.org as @SpencerJanssen
2024-06-14 03:49:41 <haskellbridge> <iqubic (she/her)> Is it work it to use X.L.WindowNavigation ?
2024-06-14 03:50:08 <haskellbridge> <iqubic (she/her)> s/work/worth
2024-06-14 03:52:31 <geekosaur> depends. I don't, but I usually don't have enough visible windows in a workspace to justify it
2024-06-14 03:57:26 <haskellbridge> <iqubic (she/her)> I'm wanting to use X.L.Combo, which advocates using X.L.WindowNavigation for some reason...
2024-06-14 03:58:35 <geekosaur> that's so you can easily move windows between panes
2024-06-14 03:58:50 <geekosaur> by binding keys to send Move messages

All times are in UTC.