2024/02/16

2024-02-16 00:53:22 +0100jeeeun8(~jeeeun@78.40.148.178)
2024-02-16 02:00:22 +0100 <beastwick> I can't decide if I like or dislike independent screens, haha.
2024-02-16 02:00:50 +0100 <beastwick> I feel like it takes away from a nice native xmonad feature, but sometimes it's warranted.
2024-02-16 02:02:50 +0100 <geekosaur> it's not really my thing
2024-02-16 02:04:31 +0100breakpoint(~pupkey@user/pupkey) (Quit: Lost terminal)
2024-02-16 02:10:19 +0100breakpoint(~pupkey@user/pupkey)
2024-02-16 02:22:03 +0100 <xmonadtrack> New xmonad-contrib branch created: pull/874 (1 commit) https://github.com/xmonad/xmonad-contrib/pull/874
2024-02-16 03:04:30 +0100gauge(~gauge@user/gauge) (Quit: Quitting)
2024-02-16 03:04:47 +0100gauge(~gauge@user/gauge)
2024-02-16 03:58:23 +0100 <breakpoint> @where paste
2024-02-16 03:58:23 +0100 <lambdabot> Help us help you: please paste full code, input and/or output at e.g. https://paste.tomsmeding.com
2024-02-16 03:59:41 +0100 <breakpoint> hello. i currently have the following to switch out between screens
2024-02-16 04:00:03 +0100 <breakpoint> https://paste.tomsmeding.com/AwGlj3pS
2024-02-16 04:00:32 +0100 <breakpoint> as i have 4 monitors, i am trying to make it cycle between them all using alt + super + keypad number.
2024-02-16 04:00:50 +0100 <breakpoint> but unfortunately only 3 of the screens work. is there something i can do to make that change?
2024-02-16 04:01:17 +0100 <breakpoint> i tried switching out `[0..]` for `[0,1,2,3]` but this did not work, unfortunately
2024-02-16 04:11:28 +0100 <geekosaur> can you use xev to make sure the key you're using sends XK_KP_Next?
2024-02-16 04:12:30 +0100 <geekosaur> (I'm on a laptop without a keypad so I can't verify, but I don't think PC keypads support that normally?)
2024-02-16 04:13:22 +0100 <breakpoint> @geekosaur sure. just checked; KP_3 corresponds to KP_NEXT. from the pastebin, after checking with xev, Insert, End, Down and Next correspond to KP 0, 1, 2, and 3, respectively
2024-02-16 04:13:23 +0100 <lambdabot> Unknown command, try @list
2024-02-16 04:14:09 +0100 <geekosaur> hm
2024-02-16 04:14:31 +0100 <geekosaur> I don't see anything wrong with your code so if the keysyms are correctthis should work
2024-02-16 04:14:55 +0100 <breakpoint> i could try and substitute in the raw numbers? so, xK_1?
2024-02-16 04:15:32 +0100 <geekosaur> (I also doublechecked that we do support using more than 3 screens, which isn't well tested since the core mod-{w,e,r} keybinds only support screens 0-2)
2024-02-16 04:15:55 +0100 <geekosaur> xK_1 would be the key on the top row, not the keypad
2024-02-16 04:16:20 +0100 <breakpoint> oh yes, i just meant in case there is something specifically to do with it not picking up the keypad.
2024-02-16 04:16:37 +0100 <breakpoint> ah
2024-02-16 04:16:49 +0100 <geekosaur> if it weren't picking up the keypad then none of the binds would work, I'd think
2024-02-16 04:17:08 +0100 <breakpoint> it was my silly mistake
2024-02-16 04:17:22 +0100 <breakpoint> 'xK_END'
2024-02-16 04:17:34 +0100 <breakpoint> should be 'xK_KP_End'
2024-02-16 04:17:34 +0100 <geekosaur> ah, whoops
2024-02-16 04:17:37 +0100 <geekosaur> yes
2024-02-16 04:17:51 +0100 <breakpoint> haha well, all's well that ends well :)
2024-02-16 04:17:54 +0100 <breakpoint> thank you for your help
2024-02-16 04:27:34 +0100td_(~td@i53870914.versanet.de) (Ping timeout: 264 seconds)
2024-02-16 04:28:57 +0100td_(~td@i5387091D.versanet.de)
2024-02-16 05:04:09 +0100tv(~tv@user/tv) (Ping timeout: 256 seconds)
2024-02-16 05:17:35 +0100tv(~tv@user/tv)
2024-02-16 06:22:40 +0100xmonadtrack(~xmonadtra@user/geekosaur/bot/xmonadtrack) (Ping timeout: 255 seconds)
2024-02-16 06:23:54 +0100xmonadtrack(~xmonadtra@069-135-003-034.biz.spectrum.com)
2024-02-16 06:23:54 +0100xmonadtrack(~xmonadtra@069-135-003-034.biz.spectrum.com) (Changing host)
2024-02-16 06:23:54 +0100xmonadtrack(~xmonadtra@user/geekosaur/bot/xmonadtrack)
2024-02-16 06:34:06 +0100SpiderPig(~matt@047-132-235-136.res.spectrum.com) (Ping timeout: 268 seconds)
2024-02-16 07:30:05 +0100 <xmonadtrack> xmonad-contrib Ulrik de Muelenaere * v0.18.0-9-gaec21860: X.U.EZConfig: Fix checkKeymap warning that all keybindings are duplicate (6 hours ago, 2 files, 6+ 2-) https://github.com/xmonad/xmonad-contrib/commit/aec21860bae7
2024-02-16 07:30:08 +0100 <xmonadtrack> xmonad-contrib Tony Zorman {GitHub} * v0.18.0-10-gc8dff5e2: Merge pull request #874 from ulrikdem/ezconfig-duplicate (5 minutes ago, 0 files, 0+ 0-) https://github.com/xmonad/xmonad-contrib/commit/c8dff5e2dc56
2024-02-16 07:56:23 +0100breakpoint(~pupkey@user/pupkey) (Quit: Lost terminal)
2024-02-16 09:58:43 +0100ft(~ft@p508db2e6.dip0.t-ipconnect.de) (Quit: leaving)
2024-02-16 09:59:48 +0100 <utis> is anyone using fixed misc 6x13 for xmobar? it's said to be possible by setting the font to "Fixed 8", but that doesn't work for me (i get something sort of similar, but antialiased an /not/ 6x13). i assume that the required ucs-fonts package is the same that comes with x11 and is used by xterm.
2024-02-16 10:00:04 +0100 <utis> s/an/and
2024-02-16 10:48:12 +0100 <utis> nevermind, i see my assumption was wrong
2024-02-16 11:21:42 +0100 <liskin> I think I am using that font, but I'm still on the pre-pango/cairo version of xmobar so I just use the XLFD font name
2024-02-16 13:41:00 +0100breakpoint(~pupkey@user/pupkey)
2024-02-16 13:45:22 +0100SpiderPig(~matt@047-132-235-136.res.spectrum.com)
2024-02-16 13:47:29 +0100breakpoint(~pupkey@user/pupkey) (Remote host closed the connection)
2024-02-16 14:26:34 +0100kaskal(~kaskal@213-147-167-18.nat.highway.webapn.at)
2024-02-16 14:27:17 +0100kaskal-(~kaskal@2001:4bb8:2c3:39c1:ff3f:d58:4fd9:e10c) (Ping timeout: 256 seconds)
2024-02-16 15:23:04 +0100ft(~ft@p508db2e6.dip0.t-ipconnect.de)
2024-02-16 16:15:07 +0100 <xmonadtrack> New xmonad-contrib branch created: pull/875 (1 commit) https://github.com/xmonad/xmonad-contrib/pull/875
2024-02-16 17:06:59 +0100ml|(~ml|@user/ml/x-5298235) (Ping timeout: 272 seconds)
2024-02-16 17:10:37 +0100 <xmonadtrack> xmonad-contrib mislavzanic {Brandon S Allbery KF8NH} * v0.18.0-11-gbfe2f5b3: feat: add profiles (2 days ago, 3 files, 551+ 0-) https://github.com/xmonad/xmonad-contrib/commit/bfe2f5b3f9fa
2024-02-16 17:20:44 +0100ml|(~ml|@user/ml/x-5298235)
2024-02-16 17:26:57 +0100 <Solid> that was… quite fast for such a big PR :)
2024-02-16 18:26:44 +0100vanvik(~vanvik@78.156.10.140) (Quit: Later)
2024-02-16 18:27:02 +0100vanvik(~vanvik@78.156.10.140)
2024-02-16 18:28:14 +0100vanvik(~vanvik@78.156.10.140) (Remote host closed the connection)
2024-02-16 18:29:46 +0100vanvik(~vanvik@78.156.10.140)
2024-02-16 19:24:37 +0100 <beastwick> I am trying out planar workspaces, and I am trying to bind movement to my mouse. I am following the docs, and I do not understand why a parameter is being applied to the rest of the code line even though I am using parenthesis. https://pastebin.com/dkcm1XjJ https://xmonad.github.io/xmonad-docs/xmonad-contrib/XMonad-Actions-Plane.html
2024-02-16 19:40:10 +0100 <geekosaur> you're using parentheses incorrectly. what you wrote treats `(Lines 4)` as a function and applies it to `Circular` and `ToRight`
2024-02-16 19:40:51 +0100 <geekosaur> I think you want `planeMove (Lines 4) Circular ToRight)` without the outer set of parentheses
2024-02-16 19:46:27 +0100 <geekosaur> oh, ugh, I have one too many parenthesis there
2024-02-16 19:46:39 +0100 <geekosaur> planeMove (Lines 4) Circular ToRight
2024-02-16 20:12:37 +0100 <beastwick> Oh I get it
2024-02-16 20:12:40 +0100 <beastwick> let me see
2024-02-16 20:13:04 +0100 <beastwick> hah now planeMove is applied to too many arguments
2024-02-16 20:13:54 +0100 <beastwick> https://pastebin.com/a1ieBbdc
2024-02-16 20:14:13 +0100 <beastwick> the expected vs actual type is also confusing
2024-02-16 20:14:50 +0100 <geekosaur> what you're missing there is that a mouse action is passed a Window, but planeMove doesn't want one
2024-02-16 20:15:26 +0100 <geekosaur> so it's actually \w -> planeMove (Lines 4) Circular ToRight w
2024-02-16 20:15:35 +0100 <beastwick> what does \w -> mean?
2024-02-16 20:15:48 +0100 <geekosaur> anonymous function with parameter w
2024-02-16 20:16:00 +0100 <beastwick> so basically accept the window but do nothing with it
2024-02-16 20:16:29 +0100 <beastwick> cool works :)
2024-02-16 20:16:36 +0100 <geekosaur> you didn't write that though, it's adding the window to the parameters passed to planeMove and then complaining that planeMove doesn't want it
2024-02-16 20:17:05 +0100 <beastwick> I am confused though what is passing a window as a parameter here though? is this what additionalMouseBindings does by default?
2024-02-16 20:17:12 +0100 <geekosaur> yes
2024-02-16 20:17:28 +0100 <geekosaur> because if you click on a window you presumably want to do something to it
2024-02-16 20:17:37 +0100 <beastwick> indeed
2024-02-16 20:17:55 +0100 <geekosaur> so your mouse action is passed the clicked-on window
2024-02-16 20:21:25 +0100 <beastwick> one more thing, is it possible to assign mod4Mask to some variable that additionalKeys/MouseBindings can use?
2024-02-16 20:21:43 +0100 <beastwick> I guess it's trivial to change this field if I had to, but just seems odd
2024-02-16 20:23:00 +0100 <geekosaur> create a binding for it and use it where you need it.
2024-02-16 20:23:28 +0100 <geekosaur> I was hoping I had an example but I have no mouse bindings and use additionalKeysP instead of additionalKeys
2024-02-16 20:23:46 +0100 <beastwick> KeysP is the emacs style right?
2024-02-16 20:23:57 +0100 <geekosaur> yes
2024-02-16 20:24:20 +0100 <geekosaur> and the "M-" modifier refers to your modMask
2024-02-16 20:32:33 +0100 <beastwick> haha, this , ((mod4Mask .|. controlMask, button4), \w -> planeMove (Lines 4) Circular ToUp) cause xmonad to crash? close? when I go beyond the limit it looks like
2024-02-16 20:39:48 +0100 <geekosaur> hm, I see a lot of unchecked `!!` in the definition of that (well, of `plane` which it calls)
2024-02-16 20:40:04 +0100 <geekosaur> can you check your session log to see what it crashed on?
2024-02-16 20:40:16 +0100 <geekosaur> usually ~/.xsession-errors
2024-02-16 20:44:25 +0100 <beastwick> sadly nothing, tailing the file and then triggering the close/crash
2024-02-16 20:45:48 +0100 <geekosaur> there should be something logged if xmonad exits unexpectedly
2024-02-16 20:46:14 +0100 <geekosaur> how do you start xmonad? startx? display manager? if the latter, which one?
2024-02-16 20:46:20 +0100 <beastwick> x afterwords says fatal IO error
2024-02-16 20:46:22 +0100 <beastwick> startx
2024-02-16 20:47:16 +0100 <geekosaur> yes, it ususally does that (actually that would be X clients because the server exits when the window manager does)
2024-02-16 20:47:37 +0100 <geekosaur> okay, in that case it would be logged to the virtual console unless you redirect it somewhere else
2024-02-16 20:49:34 +0100 <beastwick> if you mean the tty terminal, that is where I see IO error and x server terminated
2024-02-16 20:49:42 +0100 <beastwick> i don't see any interesting info in xorg logs :(
2024-02-16 20:50:11 +0100 <geekosaur> right, xorg logs won't tell you anything, the server is doing a normal exit because the session leader (window manager, usually) exited
2024-02-16 20:50:38 +0100 <beastwick> XIO: fatal IO error 2 (No such file or directory) on X server ":0"
2024-02-16 20:50:46 +0100 <beastwick> after 1735 requests (1735 known processed) with 0 events remaining.
2024-02-16 20:50:58 +0100 <beastwick> that is from xession-errors
2024-02-16 20:51:19 +0100 <geekosaur> yes, that's just an X client exiting because its server connection went away
2024-02-16 20:51:27 +0100 <beastwick> gotcha
2024-02-16 20:51:29 +0100 <beastwick> so xmonad bug?
2024-02-16 20:51:39 +0100 <beastwick> or well, bug with the library I am using
2024-02-16 20:52:14 +0100 <geekosaur> I presume this is a bug in X.A.Plane but can't tell what; the error for that should precede the server shutdown and XIO errors
2024-02-16 20:52:39 +0100 <beastwick> could my keybind some how be triggering xmonad to close for some reason?
2024-02-16 20:52:45 +0100 <beastwick> as if I did a control shift q
2024-02-16 20:53:40 +0100 <geekosaur> I expect that planeMove is crashing, and from glancing over the code I expect it's referencing past the end of a list and (!!) is throwing an exception
2024-02-16 20:54:16 +0100 <geekosaur> I'm not sure we wrap those in userCode to catch exceptions
2024-02-16 20:54:24 +0100 <beastwick> is there a haskell debugger? something I could attach to the xmonad process and step through code?
2024-02-16 20:55:05 +0100 <geekosaur> since it's native code you would use gdb or lldb, but ghc's debugger support isn't very good at present
2024-02-16 20:57:51 +0100 <geekosaur> hm. you could change the binding to: \w -> catchX (planeMove (Lines 4) Circular ToUp) (return ())
2024-02-16 20:58:08 +0100 <geekosaur> that won't make the key work but it should log the error and continue
2024-02-16 20:59:03 +0100 <geekosaur> (and if it does then I need to file a bug that we aren't guarding mouse bindings properly)
2024-02-16 21:03:00 +0100 <beastwick> okay I wrapped it in a catch, no crashing now
2024-02-16 21:03:08 +0100 <beastwick> but where would the caught error be printed, if at all?
2024-02-16 21:03:14 +0100 <beastwick> xession-serrors shows nothing
2024-02-16 21:07:46 +0100 <geekosaur> you're using startx so it'll be on the console
2024-02-16 21:19:45 +0100 <geekosaur> what version of xmonad and xmonad-contrib are you using? (I'm filing a bug report)
2024-02-16 21:22:16 +0100 <beastwick> xmonad-0.17.0 xmonad-contrib-0.17.0
2024-02-16 21:26:21 +0100 <geekosaur> bug filed, plus I just tracked down where we're not using `userCode` or `catchX`
2024-02-16 21:26:47 +0100 <beastwick> I wish I knew more haskell, this language is *hard*
2024-02-16 21:27:16 +0100 <beastwick> and now my config is blowing up again, let me paste bin :D
2024-02-16 21:34:39 +0100 <beastwick> https://pastes.io/l4dvmzrhpk
2024-02-16 21:34:49 +0100 <beastwick> sorry for the alt paste site, pastebin isn't accepting my submission
2024-02-16 21:35:47 +0100 <beastwick> https://pastes.io/tacfocq0lb my config
2024-02-16 21:38:25 +0100 <beastwick> it doesn't like the ++ I have with what follows
2024-02-16 21:42:50 +0100 <geekosaur> yes, it's in the wrong place and it needs parentheses in 0.17.0
2024-02-16 21:43:40 +0100 <beastwick> okay the docs are out of date then as well
2024-02-16 21:43:53 +0100 <beastwick> I will register tomorrow so I can contribute that way at least
2024-02-16 21:44:00 +0100 <beastwick> where should I put it, and what gets wrapped?
2024-02-16 21:44:25 +0100 <beastwick> and thankyou once again btw for all your help
2024-02-16 21:44:51 +0100 <geekosaur> https://pastes.io/3b1dxdhf3l
2024-02-16 21:45:00 +0100L29Ah(~L29Ah@wikipedia/L29Ah) ()
2024-02-16 21:45:52 +0100 <geekosaur> if you're using the docs on xmonad.github.io then it uses the new precedence for additionalKeys, not the old one
2024-02-16 21:45:59 +0100 <geekosaur> but 0.17.0 has the old one
2024-02-16 21:46:22 +0100 <geekosaur> and in any case you are not appending your keys to the list for additionalKeys, but to the one for additionalMouseBindings
2024-02-16 21:47:54 +0100 <geekosaur> (xmonad.github.io documents git master, you probably want to be using https://hackage.haskell.org/package/xmonad-contrib-0.17.0
2024-02-16 21:48:09 +0100 <beastwick> thanks
2024-02-16 21:48:27 +0100 <beastwick> yeah, I for some reason thought it would just "figure" it out wherever I add it to my xconfig def
2024-02-16 21:49:01 +0100 <beastwick> xmonad.hs:71:91: error: parse error on input ‘)’
2024-02-16 21:49:05 +0100 <beastwick> 71 | zip (zip (repeat (mod4Mask)) [xK_1..xK_9]) (map (withWorkspaceIndex S.greedyView) [1..]))
2024-02-16 21:49:18 +0100 <beastwick> for some reason it does not like the paren at the end
2024-02-16 21:50:50 +0100 <geekosaur> did you miss the added open paren on line 57?
2024-02-16 21:51:05 +0100 <beastwick> absolutely did
2024-02-16 21:52:37 +0100 <beastwick> excellent!
2024-02-16 22:00:01 +0100 <beastwick> any favorite haskell learning resources? I peruse learn you a good haskell from time to time
2024-02-16 22:00:29 +0100 <beastwick> I think (with a lot of help) I've been able to make xmonad do what I want, but running into these problems that I can't decipher is motivation crushing
2024-02-16 22:01:04 +0100 <geekosaur> @where wikibook
2024-02-16 22:01:05 +0100 <lambdabot> http://en.wikibooks.org/wiki/Haskell
2024-02-16 22:01:12 +0100 <geekosaur> @where cis194
2024-02-16 22:01:12 +0100 <lambdabot> <https://github.com/byorgey/haskell-course>,<https://www.seas.upenn.edu/~cis194/spring13/lectures.html>
2024-02-16 22:01:36 +0100 <geekosaur> I don't like LYAH much, it shows you a lot but has no exercises to speak of so you never really learn how to use it
2024-02-16 22:04:12 +0100 <beastwick> thanks!
2024-02-16 22:05:23 +0100 <geekosaur> there's also
2024-02-16 22:05:27 +0100 <geekosaur> @where pih
2024-02-16 22:05:28 +0100 <lambdabot> "Programming in Haskell" by Graham Hutton in 2007-01-15,2016-09-01 at <http://www.cs.nott.ac.uk/~pszgmh/pih.html>
2024-02-16 22:05:34 +0100 <geekosaur> but it's not free
2024-02-16 22:21:57 +0100L29Ah(~L29Ah@wikipedia/L29Ah)
2024-02-16 23:24:34 +0100blooms(~pupkey@user/pupkey)
2024-02-16 23:27:12 +0100 <blooms> @where paste
2024-02-16 23:27:12 +0100 <lambdabot> Help us help you: please paste full code, input and/or output at e.g. https://paste.tomsmeding.com
2024-02-16 23:28:22 +0100 <blooms> hi there. i was wondering if someone could let me know where i might be going wrong here
2024-02-16 23:28:34 +0100 <blooms> i am running this xmobar file; https://paste.tomsmeding.com/2c0vEfgY
2024-02-16 23:28:54 +0100 <blooms> and the bar displays. the only issue is, DiskU is stuck at `Updating...`
2024-02-16 23:29:52 +0100 <blooms> i took a look here; https://codeberg.org/jao/xmobar-config/src/branch/master/lib/Monitors.hs and on the documentation for DiskU to get the formatting but i am not sure what i am doing wrong here
2024-02-16 23:29:59 +0100bloomsbreakpoint
2024-02-16 23:33:25 +0100hightower2(~hightower@213.186.15.36)
2024-02-16 23:38:17 +0100 <breakpoint> sorry, just relogging
2024-02-16 23:38:29 +0100breakpoint(~pupkey@user/pupkey) (Quit: Lost terminal)
2024-02-16 23:40:45 +0100breakpoint(~pupkey@user/pupkey)
2024-02-16 23:40:48 +0100 <breakpoint> sorry, back
2024-02-16 23:45:51 +0100vanvik(~vanvik@78.156.10.140) (Quit: Ping timeout (120 seconds))
2024-02-16 23:46:11 +0100vanvik(~vanvik@78.156.10.140)
2024-02-16 23:48:09 +0100 <geekosaur> is /home a mounted filesystem, or just a directory?
2024-02-16 23:48:43 +0100 <breakpoint> yes, it is mounted to sda3 when running lsblk
2024-02-16 23:49:03 +0100 <breakpoint> as in, the mountpoint of sda3 is /home
2024-02-16 23:54:01 +0100 <geekosaur> hm, just noticed your template doesn't have DiskU in it, it has %wlan0% which, since you don't have a monitor for that, is being run as a command
2024-02-16 23:55:40 +0100 <breakpoint> ah. you are completely correct. not sure why i keep missing these typos and mistakes
2024-02-16 23:55:51 +0100 <breakpoint> but thank you for pointing that out. it all works as intended now :)