Home liberachat/#xmonad: Logs Calendar

Logs: liberachat/#xmonad

←Prev  Next→ 184,733 events total
2024-06-16 01:14:27 × todi quits (~todi@p57803331.dip0.t-ipconnect.de) (Quit: ZNC - https://znc.in)
2024-06-16 01:14:45 todi joins (~todi@p57803331.dip0.t-ipconnect.de)
2024-06-16 02:54:47 × L29Ah quits (~L29Ah@wikipedia/L29Ah) (Ping timeout: 268 seconds)
2024-06-16 03:01:05 × td_ quits (~td@i53870937.versanet.de) (Ping timeout: 252 seconds)
2024-06-16 03:02:55 td_ joins (~td@i53870926.versanet.de)
2024-06-16 05:51:41 × thunderrd quits (~thunderrd@118.174.53.205) (Ping timeout: 240 seconds)
2024-06-16 06:09:35 × gauge quits (~gauge@user/gauge) (Ping timeout: 264 seconds)
2024-06-16 06:12:53 gauge joins (~gauge@user/gauge)
2024-06-16 09:51:48 tom_ parts (~tom@121.127.33.86) ()
2024-06-16 10:16:52 L29Ah joins (~L29Ah@wikipedia/L29Ah)
2024-06-16 12:02:42 Viking667 joins (~user@user/Viking667)
2024-06-16 12:04:00 <Viking667> 'llo all. I suspect this might be a FAQ, but how do I assign keys to extra desktops after the first nine? Default for those seem to be Mod-1 to Mod-9, but I'm not sure how to get hotkey access to other desktops.
2024-06-16 12:05:34 <Viking667> Could I utilise M-C-1..9 for further desktops?
2024-06-16 12:16:16 <Viking667> So far, I've got about eight extra lines with M-C-x (x :: Number) but this seems inefficient given the language.
2024-06-16 12:21:15 <vrs> yeah I have them bound like this https://paste.debian.net/hidden/7c9dd3c6/
2024-06-16 12:21:32 <vrs> but that's pretty specific to my setup, there are simpler examples in the config archive
2024-06-16 12:22:57 <vrs> you can see how the default config implements it: https://hackage.haskell.org/package/xmonad-0.18.0/docs/src/XMonad.Config.html#line-230
2024-06-16 12:23:42 <vrs> adjust for ezconfig and you'll be set
2024-06-16 12:25:45 <Viking667> hm. I'm on 0.17.0, not ever seen ezconfig. I was about to ask what getNthWS was
2024-06-16 12:26:38 <Viking667> And the default concurs with the behaviour I had before I upped the number of workspaces. I just had no way to _get_ to them.
2024-06-16 12:26:40 <vrs> it's specific to my setup (I have like 40 named workspaces and that function maps a number to the nth populated one)
2024-06-16 12:27:00 <Viking667> (the extras). I worked that bit out for clicking, but not for hotkeys until now.
2024-06-16 12:28:04 <Viking667> lol. I don't have THAT many workspaces - I just felt I needed more than the 10 provided.
2024-06-16 12:28:28 <vrs> this one has the classic implementation https://wiki.haskell.org/Xmonad/Config_archive/thoughtpolice%27s_xmonad.hs (look for greedyView)
2024-06-16 12:29:39 <Viking667> Yeah, again - it addresses 1..9, not 1..15 (in my case) or 0..39 (perhaps) for you.
2024-06-16 12:30:17 <vrs> workspaces are strings, they just happen to be map show [1..9]
2024-06-16 12:30:52 <Viking667> So I could click on the desktop name, I had to adjust things slightly for the numeric range. Kinda looks like this: myWorkspaceIndices = M.fromList $ zipWith (,) myWorkspaces [0,1..]
2024-06-16 12:32:20 <Viking667> clickable ws = "<action=xdotool set_desktop "++show i++">"++ws++"</action>" where i = fromJust $ M.lookup ws myWorkspaceIndices
2024-06-16 12:32:40 <Viking667> That seems to get me every link clickable.
2024-06-16 12:34:23 <Viking667> previously the command had held "<action=xdotool key super+"++show i++">"++ws++"</action>" where i = fromJust $ M.lookup ws myWorkspaceIndices but that ran out after 9 because there isn't a Mod-10 or Mod-12 or so on.
2024-06-16 12:34:46 <vrs> I don't see the problem yet, you can just bind M-C-<num> to W.view <num+10>?
2024-06-16 12:35:14 <vrs> respectively a lookup in your workspaceindices
2024-06-16 12:36:59 <Viking667> Ah. That's probably the bit I'm missing. I'm pretty new to Haskell, xmonad's been my only real exposure to it so far. I'll figure out what to do with that piece, but yes, it looks like it'd fit.
2024-06-16 12:37:20 × Viking667 quits (~user@user/Viking667) (Quit: bai)
2024-06-16 15:45:20 yaslam joins (~yaslam@user/yaslam)
2024-06-16 15:49:56 × yaslam quits (~yaslam@user/yaslam) (Quit: yaslam)
2024-06-16 17:30:57 ChubaDuba joins (~ChubaDuba@176.212.41.228)
2024-06-16 18:25:58 × ChubaDuba quits (~ChubaDuba@176.212.41.228) (Ping timeout: 246 seconds)
2024-06-16 18:26:04 ChubaDuba joins (~ChubaDuba@176.212.40.208)
2024-06-16 18:30:34 yaslam joins (~yaslam@user/yaslam)
2024-06-16 18:36:38 × yaslam quits (~yaslam@user/yaslam) (Quit: yaslam)
2024-06-16 19:19:19 Guest92 joins (~Guest37@ip-046-005-000-066.um12.pools.vodafone-ip.de)
2024-06-16 19:27:51 × Guest92 quits (~Guest37@ip-046-005-000-066.um12.pools.vodafone-ip.de) (Quit: Client closed)
2024-06-16 19:28:10 thorou joins (~thorou@ip-046-005-000-066.um12.pools.vodafone-ip.de)
2024-06-16 19:47:19 <thorou> hello, I'm trying to get a manage hook that does the same as doCenterFloat, but with fixed width/height in pixels. I want the window to take up more relative area on lower screen resolutions. I tried digging into the sources but my haskell isn't nearly good enough to make sense of most of it.
2024-06-16 19:48:23 <geekosaur> it's possible to write it, but it'll be lost as it's stored in RationalRects internally
2024-06-16 19:48:44 <geekosaur> because that's pretty much all you can do if you have monitors with different sizes/resolutions
2024-06-16 19:49:22 <thorou> i have different systems with one monitor each
2024-06-16 19:50:03 <geekosaur> fine, but xmonad has to support multi-monitor systems
2024-06-16 19:51:11 <thorou> i mean, getting the screen resolution and scaling the rect i feed into doCenterFloat would be good enough for my use case. i just can't figure out how to actually get the resolution
2024-06-16 19:58:21 <geekosaur> I don't think we have an exposed function that does it for you, but you can extract it from https://github.com/xmonad/xmonad/blob/master/src/XMonad/Operations.hs#L719-L756
2024-06-16 19:59:02 <geekosaur> (mosr of the actual work is https://github.com/xmonad/xmonad/blob/master/src/XMonad/Operations.hs#L727-L753)
2024-06-16 20:20:36 <geekosaur> sorry for vanishing on you, have to take 3 blood pressure readings and send them to my doctor every day 😕
2024-06-16 20:20:54 <geekosaur> anyway, the screen sizes are in the StackSet, in the Screen record
2024-06-16 20:21:48 <geekosaur> it's a bit obscure, because the StackSet is heavily parameterized so it can be tested with a proof assistant, and most of the types are X11 types that aren't available in the proof assistant
2024-06-16 20:22:30 <geekosaur> https://hackage.haskell.org/package/xmonad-0.18.0/docs/XMonad-StackSet.html#t:Screen
2024-06-16 20:22:43 <geekosaur> "sd" (screen detail) is a Rectangle
2024-06-16 20:26:50 <thorou> my haskell knowledge is essentially limited to trying random things until the compiler shuts up, i'm afraid i don't follow
2024-06-16 20:27:40 <geekosaur> you may want to spend some time with the haskell wikibook first, then; the StackSet won't make much sense without it
2024-06-16 20:27:45 <geekosaur> @where wikibook
2024-06-16 20:27:45 <lambdabot> http://en.wikibooks.org/wiki/Haskell
2024-06-16 20:28:16 × deepy quits (deepy@user/deepy) (Read error: Connection reset by peer)
2024-06-16 20:32:41 deepy joins (deepy@user/deepy)
2024-06-16 20:45:36 × ChubaDuba quits (~ChubaDuba@176.212.40.208) (Quit: WeeChat 4.2.1)
2024-06-16 21:02:46 <thorou> thanks, i will try
2024-06-16 21:02:52 × thorou quits (~thorou@ip-046-005-000-066.um12.pools.vodafone-ip.de) (Quit: Client closed)
2024-06-16 23:19:52 × ghormoon quits (~ghormoon@ghorland.net) (Ping timeout: 256 seconds)
2024-06-16 23:56:16 ghormoon joins (~ghormoon@ghorland.net)
2024-06-17 00:03:17 × L29Ah quits (~L29Ah@wikipedia/L29Ah) (Read error: Connection reset by peer)
2024-06-17 00:08:42 L29Ah joins (~L29Ah@wikipedia/L29Ah)
2024-06-17 01:45:07 <haskellbridge> <iqubic (she/her)> Ugh... Haskell Layout Rules are being a pain. Why doesn't this work? https://gist.github.com/IQubic/f8262777ebc4f9b9afe6b6aec895ea46
2024-06-17 01:53:12 <geekosaur> you need to indent the lines following the `NS` constructor, or they're treated as independent expressions. but that's not the cause of the error. the error is you're missing a close paren on line 8
2024-06-17 01:53:25 <geekosaur> (you will eventually get a type error from the other)
2024-06-17 03:00:15 × td_ quits (~td@i53870926.versanet.de) (Ping timeout: 264 seconds)
2024-06-17 03:01:38 td_ joins (~td@i53870910.versanet.de)
2024-06-17 04:18:23 ChubaDuba joins (~ChubaDuba@79.136.183.37)
2024-06-17 06:31:26 × ChubaDuba quits (~ChubaDuba@79.136.183.37) (Quit: Leaving)
2024-06-17 06:31:41 ChubaDuba joins (~ChubaDuba@79.136.183.37)
2024-06-17 08:02:10 × ChubaDuba quits (~ChubaDuba@79.136.183.37) (Quit: WeeChat 4.2.1)
2024-06-17 08:10:18 derfflinger joins (~derffling@user/derfflinger)
2024-06-17 08:38:46 cfricke joins (~cfricke@user/cfricke)
2024-06-17 09:24:15 × ft quits (~ft@p3e9bcb39.dip0.t-ipconnect.de) (Quit: leaving)
2024-06-17 10:34:17 × cfricke quits (~cfricke@user/cfricke) (Ping timeout: 256 seconds)
2024-06-17 11:04:16 cfricke joins (~cfricke@user/cfricke)
2024-06-17 11:04:24 ChubaDuba joins (~ChubaDuba@79.136.183.37)
2024-06-17 11:07:50 × ChubaDuba quits (~ChubaDuba@79.136.183.37) (Client Quit)
2024-06-17 11:18:53 <haskellbridge> <iqubic (she/her)> If I modify my layouts in the layout hook, will that cause issues with hot-reloading via "xmonad --restart"?
2024-06-17 11:23:22 <Leary> iqubic: That depends on what you consider an issue. If you change the layout type then you'll lose all dynamic layout state. If you don't then you'll keep it all, but that means you only changed the defaults, not the active layouts.
2024-06-17 11:29:04 <haskellbridge> <iqubic (she/her)> Do I need to log-out of my graphical user session?
2024-06-17 11:30:37 <haskellbridge> <iqubic (she/her)> I'm fine losing the dynamic layout state, if I can keep using my keybindings to change my layouts, and tell XMonad about the new dynamic layout stat that I want.
2024-06-17 11:32:19 <Leary> Honestly, the hack I use is to just temporarily change the layout type and reload twice.
2024-06-17 11:36:09 <haskellbridge> <iqubic (she/her)> What do you mean by that?
2024-06-17 11:39:34 <Leary> Err, there was probably a misunderstanding. If you're already changing the layout type then just go for it.
2024-06-17 11:40:05 <haskellbridge> <iqubic (she/her)> Yeah, I'm changing the layout type, because I want to have different layouts.
2024-06-17 11:40:14 <haskellbridge> <iqubic (she/her)> I'm not doing anything temporary here.
2024-06-17 11:40:23 <haskellbridge> <iqubic (she/her)> I'm doing this as a permanent change.
2024-06-17 11:41:14 <Leary> (the misunderstanding was that you were just changing settings and were willing to drop dynamic state to see those changes)
2024-06-17 11:42:18 <haskellbridge> <iqubic (she/her)> No. I've made a change to my config and recompiled XMonad.
2024-06-17 12:13:17 × eso quits (a0662dfd5e@2a03:6000:1812:100::1266) (Remote host closed the connection)
2024-06-17 12:13:17 × samhh quits (7569f027cf@2a03:6000:1812:100::e4) (Remote host closed the connection)

All times are in UTC.