2023/08/31

2023-08-31 00:03:43 +0000bear34(~bear34@c-76-131-115-3.hsd1.co.comcast.net)
2023-08-31 00:18:55 +0000bear34(~bear34@c-76-131-115-3.hsd1.co.comcast.net) (Quit: Client closed)
2023-08-31 00:59:05 +0000yosafbridge(~yosafbrid@static.38.6.217.95.clients.your-server.de) (Quit: Leaving)
2023-08-31 01:13:54 +0000yosafbridge(~yosafbrid@static.38.6.217.95.clients.your-server.de)
2023-08-31 02:21:19 +0000td_(~td@i5387090D.versanet.de) (Ping timeout: 255 seconds)
2023-08-31 02:23:17 +0000td_(~td@i53870906.versanet.de)
2023-08-31 02:35:09 +0000rundown(~defjam@90.211.252.220) (Quit: WeeChat 3.8)
2023-08-31 05:59:52 +0000Guest5(~Guest5@106.51.185.177)
2023-08-31 06:00:50 +0000 <Guest5> Hello I am having difficulty launching Xmonad on Void linux
2023-08-31 06:00:56 +0000 <Guest5> I have compiled and installed xmonad (v.17 , using stack) on a fresh Void linux system. I am unable to launch it. I see the following errors when starting X from terminal. I tried editing the .xinitrc as well no change.
2023-08-31 06:00:56 +0000 <Guest5> xmonad-x86_64-linux: user error (openDisplay) main FATAL ERROR] Can't open display.
2023-08-31 06:00:57 +0000 <Guest5> When launched from sddm it returns to login screen with no errors reported in /var/log/sddm.log
2023-08-31 06:01:35 +0000 <Guest5> I dont see the mouse and none of the keybindings seem to work, except for the the Help screen and the Exit (mod+shift+q)
2023-08-31 06:25:34 +0000Guest5(~Guest5@106.51.185.177) (Quit: Client closed)
2023-08-31 07:14:19 +0000cfricke(~cfricke@user/cfricke)
2023-08-31 09:31:23 +0000ft(~ft@p508db658.dip0.t-ipconnect.de) (Quit: leaving)
2023-08-31 10:18:14 +0000mc47(~mc47@xmonad/TheMC47)
2023-08-31 10:43:56 +0000cfricke(~cfricke@user/cfricke) (Ping timeout: 248 seconds)
2023-08-31 11:14:33 +0000cfricke(~cfricke@user/cfricke)
2023-08-31 11:50:01 +0000cfricke(~cfricke@user/cfricke) (Ping timeout: 250 seconds)
2023-08-31 14:50:31 +0000hrberg(~quassel@171.79-160-161.customer.lyse.net) (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)
2023-08-31 14:50:53 +0000hrberg(~quassel@171.79-160-161.customer.lyse.net)
2023-08-31 16:12:56 +0000dukk(~dukk@c-73-215-56-153.hsd1.nj.comcast.net)
2023-08-31 16:13:18 +0000 <dukk> would i be able to toggle a window to floating and resize it?
2023-08-31 16:13:41 +0000 <dukk> like i want to set up a key to float a window and resize it to a certain size
2023-08-31 16:16:20 +0000 <dukk> i found the `float` function but how do i have it float the currently active window?
2023-08-31 16:23:00 +0000 <geekosaur> `withFloating (\w -> windows (W.float w someRationalRect))`
2023-08-31 16:23:05 +0000 <geekosaur> er
2023-08-31 16:23:13 +0000 <geekosaur> withFocused not withFloating
2023-08-31 16:23:48 +0000 <dukk> yeah i found the `withFocused` function, but didn't know how to resize the window
2023-08-31 16:23:50 +0000 <dukk> thanks
2023-08-31 16:24:04 +0000 <geekosaur> a RationalRect specifies a position and size in fractions of the screen, since it has to work across multiple screens and they may not all be the same size
2023-08-31 16:24:28 +0000 <dukk> how do i create one?
2023-08-31 16:25:32 +0000 <geekosaur> it's defined in XMonad.StackSet (what I called "W" above, since that's how it's usually imported qualified)
2023-08-31 16:25:59 +0000 <geekosaur> you can just say something like `W.RationalRect 0 0 1 1` for full screen, etc.
2023-08-31 16:27:01 +0000 <dukk> so something like `W.RationalRect 1/3 1/3 2/3 2/3`
2023-08-31 16:27:09 +0000 <dukk> would center it in the screen?
2023-08-31 16:27:15 +0000 <dukk> (and make it smaller?)
2023-08-31 16:28:19 +0000 <geekosaur> you need parens around the fractions, and the sizes should be (1/3) otherwise it extends to the end of the screen in that direction (that is, that reads as "start at 1/3 ofr the screen and take up 2/3 of the screen")
2023-08-31 16:29:00 +0000 <dukk> ah, ok
2023-08-31 16:29:11 +0000 <dukk> so just `W.RationalRect (1/3) (1/3) (1/3) (1/3)`
2023-08-31 16:29:18 +0000 <dukk> would have that effect
2023-08-31 16:29:27 +0000 <geekosaur> yep
2023-08-31 16:30:04 +0000 <geekosaur> also, if the idea is to be able to pop a window out temporarily to take up a chunk of the screen instead of just its tile, take a look at XMonad.Layout.Magnify
2023-08-31 16:31:05 +0000 <dukk> will look at that too
2023-08-31 16:31:10 +0000 <dukk> works now, thanks!
2023-08-31 16:33:34 +0000dukk(~dukk@c-73-215-56-153.hsd1.nj.comcast.net) (Quit: Client closed)
2023-08-31 18:23:38 +0000[Leary](~Leary]@user/Leary/x-0910699) (Remote host closed the connection)
2023-08-31 18:23:53 +0000[Leary](~Leary]@user/Leary/x-0910699)
2023-08-31 18:34:23 +0000mc47(~mc47@xmonad/TheMC47) (Remote host closed the connection)
2023-08-31 19:13:10 +0000avalandweller
2023-08-31 20:08:25 +0000acidbong(6e5528b381@198.108.76.108)
2023-08-31 20:20:09 +0000ft(~ft@p508db658.dip0.t-ipconnect.de)
2023-08-31 21:43:39 +0000mml(~mml@164.92.108.41)
2023-08-31 21:46:21 +0000 <mml> hi there. i'm using namedScratchpad with customFloating and it works fine, except that i have a certain scratchpad I use for viewing logs. sometimes i shrink or grow the font and i want a hotkey that causes the RationalRect geometry to be recomputed and the window to be shrunk or grown as appropriate. in most circumstances, though, if I've changed the size of a scratchpad window, I just want it left alone
2023-08-31 21:49:29 +0000 <geekosaur> hm. I think that's actually up to the terminal; the ones I use resize automatically\
2023-08-31 21:49:56 +0000 <geekosaur> the size set by customFloating et al. are only applied when the window is first mapped
2023-08-31 21:50:34 +0000 <mml> i suppose i could just ctrl-right click on them and eyeball the size i want
2023-08-31 21:50:51 +0000 <mml> alt-right-click i guess it is
2023-08-31 21:51:45 +0000 <geekosaur> (the real problem being we don't know how to properly resize the terminal according to the font, and in fact can't even know that the font size changed within it)
2023-08-31 21:53:01 +0000 <mml> i don't actually need it to know anything or be fancy.. i'd be happy to just bind a hotkey to the action "set this window's geometry to X% of width, Y% of height"
2023-08-31 21:53:53 +0000 <geekosaur> withFocused $ \w -> windows (W.float w (W.RationalRect x y w h))
2023-08-31 21:54:04 +0000 <geekosaur> (import qualified XMonad.StackSet as W)
2023-08-31 21:54:33 +0000 <mml> hmm.. ok, yeah that makes sense
2023-08-31 21:59:53 +0000 <mml> geekosaur: thanks, that works good enough, since this really only comes up with a single floating window
2023-08-31 22:01:17 +0000 <mml> a similar issue arises if I change font size in other applications (gvim, e.g.)... vim tries to shrink or grow its window, either drawing text i can't see or wasting a bunch of the screen space allotted to it by xmonad. I usually fix this by launching a terminal and exiting it immediately with ^D. works fine but always feels like i should have a better answer. this is for a non-floating window.
2023-08-31 22:04:46 +0000 <geekosaur> this sounds like stuff is not drawing properly for some reason. we don't control what an app draws in its own window, so there isn't a lot to be done about it unless mod-n somehow helps
2023-08-31 22:04:56 +0000 <geekosaur> which is still a hack
2023-08-31 22:10:07 +0000 <mml> i think what both of these programs have in common is that they both specify geometry in characters... quoting from X(7): "The WIDTH and HEIGHT parts of the geometry specification are usually measured in either pixels or characters, depending on the application."
2023-08-31 22:10:38 +0000 <mml> i don't know enough about X to know the exact implications of this
2023-08-31 22:23:04 +0000 <geekosaur> it's less about X than about the toolkit they're using
2023-08-31 22:24:36 +0000 <geekosaur> if it's in characters then it'll usually be exposed to the window manager as an aspect ratio, but we don't do anything with it unless you use https://hackage.haskell.org/package/xmonad-contrib-0.17.1/docs/XMonad-Layout-LayoutHints.html
2023-08-31 22:25:44 +0000 <geekosaur> and even then we don't auto-resize windows especially if they are tiled; some programs/toolkits ignore the part of the WM spec that says that the WM has the last word on window placement and size and expect the WM to automatically obey changes to size hints
2023-08-31 22:25:57 +0000 <geekosaur> (they're called hints for a reason)