Home liberachat/#xmonad: Logs Calendar

Logs on 2024-02-16 (liberachat/#xmonad)

01:00:22 <beastwick> I can't decide if I like or dislike independent screens, haha.
01:00:50 <beastwick> I feel like it takes away from a nice native xmonad feature, but sometimes it's warranted.
01:02:50 <geekosaur> it's not really my thing
01:04:31 × breakpoint quits (~pupkey@user/pupkey) (Quit: Lost terminal)
01:10:19 breakpoint joins (~pupkey@user/pupkey)
01:22:03 <xmonadtrack> New xmonad-contrib branch created: pull/874 (1 commit) https://github.com/xmonad/xmonad-contrib/pull/874
02:04:30 × gauge quits (~gauge@user/gauge) (Quit: Quitting)
02:04:47 gauge joins (~gauge@user/gauge)
02:58:23 <breakpoint> @where paste
02:58:23 <lambdabot> Help us help you: please paste full code, input and/or output at e.g. https://paste.tomsmeding.com
02:59:41 <breakpoint> hello. i currently have the following to switch out between screens
03:00:03 <breakpoint> https://paste.tomsmeding.com/AwGlj3pS
03:00:32 <breakpoint> as i have 4 monitors, i am trying to make it cycle between them all using alt + super + keypad number.
03:00:50 <breakpoint> but unfortunately only 3 of the screens work. is there something i can do to make that change?
03:01:17 <breakpoint> i tried switching out `[0..]` for `[0,1,2,3]` but this did not work, unfortunately
03:11:28 <geekosaur> can you use xev to make sure the key you're using sends XK_KP_Next?
03:12:30 <geekosaur> (I'm on a laptop without a keypad so I can't verify, but I don't think PC keypads support that normally?)
03:13:22 <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
03:13:23 <lambdabot> Unknown command, try @list
03:14:09 <geekosaur> hm
03:14:31 <geekosaur> I don't see anything wrong with your code so if the keysyms are correctthis should work
03:14:55 <breakpoint> i could try and substitute in the raw numbers? so, xK_1?
03:15:32 <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)
03:15:55 <geekosaur> xK_1 would be the key on the top row, not the keypad
03:16:20 <breakpoint> oh yes, i just meant in case there is something specifically to do with it not picking up the keypad.
03:16:37 <breakpoint> ah
03:16:49 <geekosaur> if it weren't picking up the keypad then none of the binds would work, I'd think
03:17:08 <breakpoint> it was my silly mistake
03:17:22 <breakpoint> 'xK_END'
03:17:34 <breakpoint> should be 'xK_KP_End'
03:17:34 <geekosaur> ah, whoops
03:17:37 <geekosaur> yes
03:17:51 <breakpoint> haha well, all's well that ends well :)
03:17:54 <breakpoint> thank you for your help
03:27:34 × td_ quits (~td@i53870914.versanet.de) (Ping timeout: 264 seconds)
03:28:57 td_ joins (~td@i5387091D.versanet.de)
04:04:09 × tv quits (~tv@user/tv) (Ping timeout: 256 seconds)
04:17:35 tv joins (~tv@user/tv)
05:22:40 × xmonadtrack quits (~xmonadtra@user/geekosaur/bot/xmonadtrack) (Ping timeout: 255 seconds)
05:23:54 xmonadtrack joins (~xmonadtra@069-135-003-034.biz.spectrum.com)
05:23:54 × xmonadtrack quits (~xmonadtra@069-135-003-034.biz.spectrum.com) (Changing host)
05:23:54 xmonadtrack joins (~xmonadtra@user/geekosaur/bot/xmonadtrack)
05:34:06 × SpiderPig quits (~matt@047-132-235-136.res.spectrum.com) (Ping timeout: 268 seconds)
06:30:05 <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
06:30:08 <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
06:56:23 × breakpoint quits (~pupkey@user/pupkey) (Quit: Lost terminal)
08:58:43 × ft quits (~ft@p508db2e6.dip0.t-ipconnect.de) (Quit: leaving)
08:59:48 <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.
09:00:04 <utis> s/an/and
09:48:12 <utis> nevermind, i see my assumption was wrong
10:21:42 <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
12:41:00 breakpoint joins (~pupkey@user/pupkey)
12:45:22 SpiderPig joins (~matt@047-132-235-136.res.spectrum.com)
12:47:29 × breakpoint quits (~pupkey@user/pupkey) (Remote host closed the connection)
13:26:34 kaskal joins (~kaskal@213-147-167-18.nat.highway.webapn.at)
13:27:17 × kaskal- quits (~kaskal@2001:4bb8:2c3:39c1:ff3f:d58:4fd9:e10c) (Ping timeout: 256 seconds)
14:23:04 ft joins (~ft@p508db2e6.dip0.t-ipconnect.de)
15:15:07 <xmonadtrack> New xmonad-contrib branch created: pull/875 (1 commit) https://github.com/xmonad/xmonad-contrib/pull/875
16:06:59 × ml| quits (~ml|@user/ml/x-5298235) (Ping timeout: 272 seconds)
16:10:37 <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
16:20:44 ml| joins (~ml|@user/ml/x-5298235)
16:26:57 <Solid> that was… quite fast for such a big PR :)
17:26:44 × vanvik quits (~vanvik@78.156.10.140) (Quit: Later)
17:27:02 vanvik joins (~vanvik@78.156.10.140)
17:28:14 × vanvik quits (~vanvik@78.156.10.140) (Remote host closed the connection)
17:29:46 vanvik joins (~vanvik@78.156.10.140)
18:24:37 <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
18:40:10 <geekosaur> you're using parentheses incorrectly. what you wrote treats `(Lines 4)` as a function and applies it to `Circular` and `ToRight`
18:40:51 <geekosaur> I think you want `planeMove (Lines 4) Circular ToRight)` without the outer set of parentheses
18:46:27 <geekosaur> oh, ugh, I have one too many parenthesis there
18:46:39 <geekosaur> planeMove (Lines 4) Circular ToRight
19:12:37 <beastwick> Oh I get it
19:12:40 <beastwick> let me see
19:13:04 <beastwick> hah now planeMove is applied to too many arguments
19:13:54 <beastwick> https://pastebin.com/a1ieBbdc
19:14:13 <beastwick> the expected vs actual type is also confusing
19:14:50 <geekosaur> what you're missing there is that a mouse action is passed a Window, but planeMove doesn't want one
19:15:26 <geekosaur> so it's actually \w -> planeMove (Lines 4) Circular ToRight w
19:15:35 <beastwick> what does \w -> mean?
19:15:48 <geekosaur> anonymous function with parameter w
19:16:00 <beastwick> so basically accept the window but do nothing with it
19:16:29 <beastwick> cool works :)
19:16:36 <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
19:17:05 <beastwick> I am confused though what is passing a window as a parameter here though? is this what additionalMouseBindings does by default?
19:17:12 <geekosaur> yes
19:17:28 <geekosaur> because if you click on a window you presumably want to do something to it
19:17:37 <beastwick> indeed
19:17:55 <geekosaur> so your mouse action is passed the clicked-on window
19:21:25 <beastwick> one more thing, is it possible to assign mod4Mask to some variable that additionalKeys/MouseBindings can use?
19:21:43 <beastwick> I guess it's trivial to change this field if I had to, but just seems odd
19:23:00 <geekosaur> create a binding for it and use it where you need it.
19:23:28 <geekosaur> I was hoping I had an example but I have no mouse bindings and use additionalKeysP instead of additionalKeys
19:23:46 <beastwick> KeysP is the emacs style right?
19:23:57 <geekosaur> yes
19:24:20 <geekosaur> and the "M-" modifier refers to your modMask
19:32:33 <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
19:39:48 <geekosaur> hm, I see a lot of unchecked `!!` in the definition of that (well, of `plane` which it calls)
19:40:04 <geekosaur> can you check your session log to see what it crashed on?
19:40:16 <geekosaur> usually ~/.xsession-errors
19:44:25 <beastwick> sadly nothing, tailing the file and then triggering the close/crash
19:45:48 <geekosaur> there should be something logged if xmonad exits unexpectedly
19:46:14 <geekosaur> how do you start xmonad? startx? display manager? if the latter, which one?
19:46:20 <beastwick> x afterwords says fatal IO error
19:46:22 <beastwick> startx
19:47:16 <geekosaur> yes, it ususally does that (actually that would be X clients because the server exits when the window manager does)
19:47:37 <geekosaur> okay, in that case it would be logged to the virtual console unless you redirect it somewhere else
19:49:34 <beastwick> if you mean the tty terminal, that is where I see IO error and x server terminated
19:49:42 <beastwick> i don't see any interesting info in xorg logs :(
19:50:11 <geekosaur> right, xorg logs won't tell you anything, the server is doing a normal exit because the session leader (window manager, usually) exited
19:50:38 <beastwick> XIO: fatal IO error 2 (No such file or directory) on X server ":0"
19:50:46 <beastwick> after 1735 requests (1735 known processed) with 0 events remaining.
19:50:58 <beastwick> that is from xession-errors
19:51:19 <geekosaur> yes, that's just an X client exiting because its server connection went away
19:51:27 <beastwick> gotcha
19:51:29 <beastwick> so xmonad bug?
19:51:39 <beastwick> or well, bug with the library I am using
19:52:14 <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
19:52:39 <beastwick> could my keybind some how be triggering xmonad to close for some reason?
19:52:45 <beastwick> as if I did a control shift q
19:53:40 <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
19:54:16 <geekosaur> I'm not sure we wrap those in userCode to catch exceptions
19:54:24 <beastwick> is there a haskell debugger? something I could attach to the xmonad process and step through code?
19:55:05 <geekosaur> since it's native code you would use gdb or lldb, but ghc's debugger support isn't very good at present
19:57:51 <geekosaur> hm. you could change the binding to: \w -> catchX (planeMove (Lines 4) Circular ToUp) (return ())
19:58:08 <geekosaur> that won't make the key work but it should log the error and continue
19:59:03 <geekosaur> (and if it does then I need to file a bug that we aren't guarding mouse bindings properly)
20:03:00 <beastwick> okay I wrapped it in a catch, no crashing now
20:03:08 <beastwick> but where would the caught error be printed, if at all?
20:03:14 <beastwick> xession-serrors shows nothing
20:07:46 <geekosaur> you're using startx so it'll be on the console
20:19:45 <geekosaur> what version of xmonad and xmonad-contrib are you using? (I'm filing a bug report)
20:22:16 <beastwick> xmonad-0.17.0 xmonad-contrib-0.17.0
20:26:21 <geekosaur> bug filed, plus I just tracked down where we're not using `userCode` or `catchX`
20:26:47 <beastwick> I wish I knew more haskell, this language is *hard*
20:27:16 <beastwick> and now my config is blowing up again, let me paste bin :D
20:34:39 <beastwick> https://pastes.io/l4dvmzrhpk
20:34:49 <beastwick> sorry for the alt paste site, pastebin isn't accepting my submission
20:35:47 <beastwick> https://pastes.io/tacfocq0lb my config
20:38:25 <beastwick> it doesn't like the ++ I have with what follows
20:42:50 <geekosaur> yes, it's in the wrong place and it needs parentheses in 0.17.0
20:43:40 <beastwick> okay the docs are out of date then as well
20:43:53 <beastwick> I will register tomorrow so I can contribute that way at least
20:44:00 <beastwick> where should I put it, and what gets wrapped?
20:44:25 <beastwick> and thankyou once again btw for all your help
20:44:51 <geekosaur> https://pastes.io/3b1dxdhf3l
20:45:00 L29Ah parts (~L29Ah@wikipedia/L29Ah) ()
20:45:52 <geekosaur> if you're using the docs on xmonad.github.io then it uses the new precedence for additionalKeys, not the old one
20:45:59 <geekosaur> but 0.17.0 has the old one
20:46:22 <geekosaur> and in any case you are not appending your keys to the list for additionalKeys, but to the one for additionalMouseBindings
20:47:54 <geekosaur> (xmonad.github.io documents git master, you probably want to be using https://hackage.haskell.org/package/xmonad-contrib-0.17.0
20:48:09 <beastwick> thanks
20:48:27 <beastwick> yeah, I for some reason thought it would just "figure" it out wherever I add it to my xconfig def
20:49:01 <beastwick> xmonad.hs:71:91: error: parse error on input ‘)’
20:49:05 <beastwick> 71 | zip (zip (repeat (mod4Mask)) [xK_1..xK_9]) (map (withWorkspaceIndex S.greedyView) [1..]))
20:49:18 <beastwick> for some reason it does not like the paren at the end
20:50:50 <geekosaur> did you miss the added open paren on line 57?
20:51:05 <beastwick> absolutely did
20:52:37 <beastwick> excellent!
21:00:01 <beastwick> any favorite haskell learning resources? I peruse learn you a good haskell from time to time
21:00:29 <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
21:01:04 <geekosaur> @where wikibook
21:01:05 <lambdabot> http://en.wikibooks.org/wiki/Haskell
21:01:12 <geekosaur> @where cis194
21:01:12 <lambdabot> <https://github.com/byorgey/haskell-course>,<https://www.seas.upenn.edu/~cis194/spring13/lectures.html>
21:01:36 <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
21:04:12 <beastwick> thanks!
21:05:23 <geekosaur> there's also
21:05:27 <geekosaur> @where pih
21:05:28 <lambdabot> "Programming in Haskell" by Graham Hutton in 2007-01-15,2016-09-01 at <http://www.cs.nott.ac.uk/~pszgmh/pih.html>
21:05:34 <geekosaur> but it's not free
21:21:57 L29Ah joins (~L29Ah@wikipedia/L29Ah)
22:24:34 blooms joins (~pupkey@user/pupkey)
22:27:12 <blooms> @where paste
22:27:12 <lambdabot> Help us help you: please paste full code, input and/or output at e.g. https://paste.tomsmeding.com
22:28:22 <blooms> hi there. i was wondering if someone could let me know where i might be going wrong here
22:28:34 <blooms> i am running this xmobar file; https://paste.tomsmeding.com/2c0vEfgY
22:28:54 <blooms> and the bar displays. the only issue is, DiskU is stuck at `Updating...`
22:29:52 <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
22:29:59 blooms is now known as breakpoint
22:33:25 hightower2 joins (~hightower@213.186.15.36)
22:38:17 <breakpoint> sorry, just relogging
22:38:29 × breakpoint quits (~pupkey@user/pupkey) (Quit: Lost terminal)
22:40:45 breakpoint joins (~pupkey@user/pupkey)
22:40:48 <breakpoint> sorry, back
22:45:51 × vanvik quits (~vanvik@78.156.10.140) (Quit: Ping timeout (120 seconds))
22:46:11 vanvik joins (~vanvik@78.156.10.140)
22:48:09 <geekosaur> is /home a mounted filesystem, or just a directory?
22:48:43 <breakpoint> yes, it is mounted to sda3 when running lsblk
22:49:03 <breakpoint> as in, the mountpoint of sda3 is /home
22:54:01 <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
22:55:40 <breakpoint> ah. you are completely correct. not sure why i keep missing these typos and mistakes
22:55:51 <breakpoint> but thank you for pointing that out. it all works as intended now :)
23:09:17 <geekosaur> come to think of it, is that time right? 6 seconds?
23:12:25 <breakpoint> oh, i just thought it might be better to leave the polling for longer as i may not need the information immediately
23:12:45 <breakpoint> but i wasn't sure how much it added to keep it at something lower like 20 or 10
23:14:33 × L29Ah quits (~L29Ah@wikipedia/L29Ah) (Ping timeout: 260 seconds)
23:14:52 <geekosaur> probably not very much since it won't be spawning an external command
23:15:17 <breakpoint> ah i see. i will set it to 10 then :)
23:15:19 <geekosaur> but 6 seconds seemed kinda weird and I was wondering if you had assumed it was in seconds or something (it's tenths of a second)
23:16:11 <breakpoint> oh, i see. i wasn't sure to be honest. i was going to test it a bit later by moving some large files back and forth. i was trying to find where it mentioned refresh rate units but couldn't find it in the documentation
23:16:43 <breakpoint> by the way, would you happen to know if there's any way to rearrange the disku output? the documentation says it ignores `-t`
23:17:02 <breakpoint> but it is unfortunately showing the 3 drives i am tracking in the wrong order
23:17:08 <breakpoint> https://codeberg.org/xmobar/xmobar/src/branch/master/doc/plugins.org#user-content-headline-45
23:17:54 <geekosaur> I'm not that much of an expert on xmobar, I've never used it
23:18:04 <breakpoint> ah i see. no problem then :)
23:18:11 <geekosaur> I know just enough to answer simple questions about it, sometimes referring to the documentation
23:18:26 <breakpoint> do you use a different bar? or just none at all?
23:18:33 <geekosaur> looks like the refresh parameter is described at the end of https://codeberg.org/xmobar/xmobar/src/branch/master/doc/plugins.org#user-content-default-arguments
23:18:44 <geekosaur> mate-panel via xmonad-log-applet
23:18:55 <geekosaur> since I run xmonad as window manager for mate
23:19:24 <breakpoint> ah right. thank you for the link as well. seems i missed it
23:30:14 L29Ah joins (~L29Ah@wikipedia/L29Ah)
23:51:24 × jeeeun8 quits (~jeeeun@78.40.148.178) (Read error: Connection reset by peer)
23:52:02 jeeeun8 joins (~jeeeun@78.40.148.178)

All times are in UTC on 2024-02-16.