Home liberachat/#xmonad: Logs Calendar

Logs: liberachat/#xmonad

←Prev  Next→
Page 1 .. 582 583 584 585 586 587 588 589 590 591 592 .. 1849
184,882 events total
2022-04-09 13:38:51 <DeepMajumder[m]> <geekosaur> "that could happen if it doesn'..." <- Bang on! Although, the same problem happens for alacritty as well. In fact, the alacritty problem is even more bizzare - each time I hit the keybind for it, a new alacritty window opens (I have spawned alacritty with `alacritty --class alacritty-scratch`, and used `className` for matching against it). I have no clue what's going on.
2022-04-09 13:39:27 <geekosaur> that one's more common; you might check with xprop what it actually has set
2022-04-09 13:39:48 <geekosaur> I think you can make spotify work with DynamicPropertu
2022-04-09 13:39:54 <geekosaur> *DynamicProperty
2022-04-09 13:42:22 <geekosaur> use the example in there but put namedScratchpadManageHook instead of the explicit check for spotify
2022-04-09 13:42:58 <geekosaur> (full name is XMonad.Hooks.DynamicProperty)
2022-04-09 13:47:09 <Solid> mc47: there don't seem to be any good overnight trains available from my location and it's starting in the morning on sat so yeah probably
2022-04-09 13:48:15 <mc47> alright cool
2022-04-09 13:48:23 <mc47> I'll probably do the same, but just to see the city
2022-04-09 13:51:14 <DeepMajumder[m]> <geekosaur> "that one's more common; you..." <- So I should put `dynamicPropertyChange "WM_CLASS" (namedScratchpadManageHook myScratchpads) <+> handleEventHook def` for `handleEventHook`?
2022-04-09 13:51:45 <geekosaur> yes
2022-04-09 13:55:24 <DeepMajumder[m]> geekosaur: Thank you so much! It works like a charm. As for the alacritty problem, I verified that the class name is being set alright. But even after the awesome fix that you mentioned, it still doesn't work :(
2022-04-09 13:55:40 <DeepMajumder[m]> Perhaps this is an alacritty specific problem.
2022-04-09 13:56:09 <geekosaur> dunno. a number of people here use alacritty but I don't know how many use it as a scratchpad
2022-04-09 13:56:10 <Solid> DeepMajumder[m]: alacritty works just fine for me (without DynamicProperty, I should mention)
2022-04-09 13:56:20 <mc47> same
2022-04-09 13:56:29 <geekosaur> right, the DynamicProperty is for the Spotify scratchypad
2022-04-09 13:56:47 <mc47> (haven't read all the logs yet, but I've been using it seamlessly for a long time)
2022-04-09 13:58:01 <DeepMajumder[m]> myScratchpads :: [NamedScratchpad]... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/b510397dea4d963831abb97e527504746f6a34b7)
2022-04-09 13:58:11 <DeepMajumder[m]> * ```myScratchpads :: \[NamedScratchpad\]... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/3c6368e9d412ce01897d4c341740909dcb4e938a)
2022-04-09 13:58:28 <DeepMajumder[m]> * ```... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/c13bf49b7c96ff32c3e8c307033cdb6a2ead34da)
2022-04-09 13:58:58 <DeepMajumder[m]> * ```... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/11c6e0edfa48f646576e5dda79ebe9aafdc8d1e4)
2022-04-09 13:59:29 <DeepMajumder[m]> Solid: So do you set the class name with `--class <class_name>` or some other method?
2022-04-09 13:59:33 <Solid> DeepMajumder[m]: --class in alacritty sets the instance name (the first string in WM_CLASS)
2022-04-09 13:59:41 <Solid> className queries the second string, however
2022-04-09 14:00:10 <DeepMajumder[m]> Solid: Well, that makes sense for the behaviour.
2022-04-09 14:00:11 <Solid> you want to use appName
2022-04-09 14:00:46 <DeepMajumder[m]> Solid: Brilliant! Thank you so much!
2022-04-09 14:03:16 pantsu is now known as mion
2022-04-09 14:08:02 <amenonsen> i want to celebrate my return to xmonad with some time spent trying out a new contrib module.
2022-04-09 14:09:14 <DeepMajumder[m]> amenonsen: That's nice!! I tried out scratchpad for the first time today, after returning to Xmonad after a year or so. And it works like a charm, thanks to all the help I got here.
2022-04-09 14:09:59 <geekosaur> we're up over 300 contribs now, take your pick :)
2022-04-09 14:10:41 <amenonsen> yes, i just need to skim the docs to find something likely.
2022-04-09 14:11:11 <geekosaur> https://hackage.haskell.org/package/xmonad-contrib
2022-04-09 14:11:31 <amenonsen> (yes, i know, already looking there)
2022-04-09 14:12:03 <amenonsen> fortunately, i'm fairly conservative in terms of the features i use, so i shouldn't have much trouble finding something shiny and new.
2022-04-09 14:13:34 <amenonsen> oh, one thing i miss in my xmonad setup is that i use XMonad.Prompt.Pass, which matches paths only from the beginning, rather than doing a substring search. let me first go and see if there's some way to make it do that.
2022-04-09 14:14:21 <Solid> there is!
2022-04-09 14:14:44 <geekosaur> I think that's functionality pof Prompt, rather than of specific Prompt instances
2022-04-09 14:14:48 <Solid> XMonad.Prompt.FuzzyMatch
2022-04-09 14:16:17 <amenonsen> wow, thank you so much.
2022-04-09 14:20:11 × mc47 quits (~mc47@xmonad/TheMC47) (Read error: Connection reset by peer)
2022-04-09 14:24:55 jao joins (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net)
2022-04-09 14:34:44 <amenonsen> it works beautifully.
2022-04-09 14:35:46 <amenonsen> now, what's this scratchpad business?
2022-04-09 14:36:11 <amenonsen> DeepMajumder[m]: XMonad.Util.Scratchpad? what are you using it for?
2022-04-09 14:37:08 <DeepMajumder[m]> amenonsen: It'
2022-04-09 14:38:12 <DeepMajumder[m]> amenonsen: It's basically a "workspace" to contain windows which you want to temporarily show and hide. If you've used dropdown terminals, then scratchpads can be used to make them.
2022-04-09 14:38:48 <geekosaur> https://github.com/geekosaur/xmonad.hs/blob/skkukuk/xmonad.hs#L56-L74 fwiw
2022-04-09 14:38:52 <DeepMajumder[m]> I use it for that and to contain my spotify window. I reveal the window (which floats above everything else) to change songs and then hide it back.
2022-04-09 14:38:55 <amenonsen> no, i haven't used them. is it for taking notes, or what?
2022-04-09 14:39:06 <geekosaur> you can use it for that too
2022-04-09 14:39:17 <geekosaur> hm, lemme dig out the one I used on my old desktop
2022-04-09 14:39:51 <geekosaur> https://github.com/geekosaur/xmonad.hs/blob/pyanfar/xmonad.hs#L63-L111
2022-04-09 14:39:57 <amenonsen> ah, ok. that example is useful. i can imagine calling up a calculator that way (right now i just open a terminal and run bc).
2022-04-09 14:41:18 <DeepMajumder[m]> amenonsen: Yeah, basically, anything that you want to grab when you want and then hide it, but persist it in the background.
2022-04-09 15:06:03 × lambdabot quits (~lambdabot@haskell/bot/lambdabot) (Ping timeout: 260 seconds)
2022-04-09 15:08:41 lambdabot joins (~lambdabot@haskell/bot/lambdabot)
2022-04-09 15:19:44 mc47 joins (~mc47@xmonad/TheMC47)
2022-04-09 15:27:20 <liskin> Solid, mc47: I haven't made any specific plans yet as I don't tend to plan that much ahead, but given what Solid said I'd be sleep deprived if I tried to arrive on Saturday :-)
2022-04-09 15:28:13 <liskin> Might want to visit some friends in Zurich as well
2022-04-09 16:17:03 benin joins (~benin@183.82.204.110)
2022-04-09 16:35:35 thonoht[m] joins (~thonohtma@2001:470:69fc:105::d7be)
2022-04-09 17:07:51 × geekosaur quits (~geekosaur@xmonad/geekosaur) (Remote host closed the connection)
2022-04-09 17:08:16 geekosaur joins (~geekosaur@xmonad/geekosaur)
2022-04-09 17:13:59 × jao quits (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) (Remote host closed the connection)
2022-04-09 17:20:02 jao joins (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net)
2022-04-09 17:29:54 <amenonsen> is there a way to hide a workspace and everything in it?
2022-04-09 17:31:12 <amenonsen> (or anything reasonably approximating that—i just have a "work" workspace, and i want to be able to skip it in my prevWS/nextWS/etc. operations during the weekend)
2022-04-09 17:46:42 <amenonsen> described that way, it sounds like i should be able to just write functions that wrap {prev,next}WS and skip a particular index based on some flag (though that's well beyond my current familiarity with haskell).
2022-04-09 17:48:44 <amenonsen> XMonad.Actions.CycleWS says "to only cycle through some subset of workspaces". maybe i should investigate that first.
2022-04-09 17:50:06 <fizzie> Given how popular XMonad.Util.NamedScratchpad is, and given that you generally never want to actually see the "NSP" workspace it uses, I would imagine for most things there's some way to ignore that, which (with sufficient effort) could be extended for your use case as well.
2022-04-09 17:50:18 <fizzie> XMonad.Actions.DynamicWorkspaceOrder might work for you as well.
2022-04-09 17:50:28 <fizzie> From the description: "Remember a dynamically updateable ordering on workspaces, together with tools for using this ordering with XMonad.Actions.CycleWS and XMonad.Hooks.StatusBar.PP."
2022-04-09 17:51:28 <amenonsen> fizzie: yes, i was just looking at ignoringWSs: "Cycle through workspaces that are not in the given list. This could, for example, be used for skipping the workspace reserved for XMonad.Util.NamedScratchpad"
2022-04-09 17:53:02 <amenonsen> hmm.
2022-04-09 17:54:33 <fizzie> Curiously enough, though, skimming the XMonad.Actions.DynamicWorkspaceOrder there seems to be methods to swap workspaces in the dynamic order, to change them, to remove them, but _not_ to add them. (I was thinking you could use that and call its `removeName` to drop the work workspace for the weekend, but then I don't know how you'd get it back.)
2022-04-09 17:54:58 <fizzie> But maybe the instructions on how to use that custom ordering with a statusbar PP and with CycleWS will be useful anyway.
2022-04-09 17:55:04 <amenonsen> there's mention of "hiddenWS" to cycle through non-visible workspaces. but i can't figure out how a workspace becomes non-visible.
2022-04-09 17:55:52 <amenonsen> failing that, though, i'm thinking maybe i can use DWO's swap method to move my work workspace to the end of the list, and use CycleWS's ignoreWSs to ignore the last two workspaces, whatever they are (assuming one of them is the named scratchpad one).
2022-04-09 17:56:57 <fizzie> I think `ignoreWSs` ignores by name. So you wouldn't have to put them anywhere specific in the order.
2022-04-09 17:57:12 <amenonsen> yeah, but how to un-ignore during the week?
2022-04-09 17:58:13 <fizzie> Oh, right. Well, yeah. You could stuff the list of currently ignored workspaces into XMonad.Util.ExtensibleState, and have your cycling keybindings pull it from there.
2022-04-09 17:59:01 <amenonsen> do you happen to know anything about hiddenWS? does that just mean workspaces that aren't the one you're looking at?
2022-04-09 17:59:31 <fizzie> Yes, I believe "hidden" in that context usually just means "not currently visible on any monitor", not specifically hidden ones.
2022-04-09 17:59:46 <amenonsen> right, ok.
2022-04-09 18:00:12 <fizzie> (ExtensibleState isn't super-simple to use, but it's got an example for storing a list of integers, which is not too far from storing a list of strings instead.)
2022-04-09 18:01:44 <amenonsen> hmm.
2022-04-09 20:12:05 × mc47 quits (~mc47@xmonad/TheMC47) (Remote host closed the connection)
2022-04-09 20:12:25 mc47 joins (~mc47@xmonad/TheMC47)
2022-04-09 21:27:31 kidany joins (~kidany@68.205.87.94)
2022-04-09 22:16:40 × mc47 quits (~mc47@xmonad/TheMC47) (Read error: Connection reset by peer)
2022-04-09 23:47:11 abhixec_ joins (~abhixec@c-67-169-139-16.hsd1.ca.comcast.net)
2022-04-10 00:47:08 × kidany quits (~kidany@68.205.87.94) (Quit: Leaving)
2022-04-10 01:02:17 × benin quits (~benin@183.82.204.110) (Quit: The Lounge - https://thelounge.chat)
2022-04-10 02:03:42 × banc quits (banc@gateway/vpn/airvpn/banc) (Ping timeout: 272 seconds)
2022-04-10 02:22:57 banc joins (banc@gateway/vpn/airvpn/banc)
2022-04-10 02:54:42 × steve_ quits (~steve@ool-182c2b80.dyn.optonline.net) (Ping timeout: 246 seconds)
2022-04-10 03:33:53 × jao quits (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) (Ping timeout: 256 seconds)
2022-04-10 03:38:53 benin joins (~benin@183.82.204.110)

All times are in UTC.