Home liberachat/#xmonad: Logs Calendar

Logs: liberachat/#xmonad

←Prev  Next→
Page 1 .. 912 913 914 915 916 917 918 919 920 921 922 .. 1850
184,999 events total
2022-10-21 09:09:10 iamtheonewiththi joins (~iamtheone@2001:470:69fc:105::2:8a9b)
2022-10-21 09:09:11 floweynt[m] joins (~floweyyag@2001:470:69fc:105::2:86b7)
2022-10-21 09:09:12 ChristianGrey[m] joins (~jacques16@2001:470:69fc:105::2:a40c)
2022-10-21 09:09:33 uj[m] joins (~ujmatrixo@2001:470:69fc:105::2:888f)
2022-10-21 09:30:48 wonko joins (~wjc@2a0e:1c80:2:0:45:15:19:130)
2022-10-21 09:42:35 Tisoxin joins (~ikosit@user/ikosit)
2022-10-21 09:42:35 Solid[m] joins (~slot-matr@2001:470:69fc:105::1:a84)
2022-10-21 10:44:05 × darkstardevx quits (~darkstard@50.126.124.156) (Remote host closed the connection)
2022-10-21 10:44:36 mudri joins (uid317655@id-317655.helmsley.irccloud.com)
2022-10-21 10:46:20 darkstardevx joins (~darkstard@50.126.124.156)
2022-10-21 12:36:09 × ^[ quits (~user@user//x-8473491) (Ping timeout: 268 seconds)
2022-10-21 12:42:13 thyriaen joins (~thyriaen@2a01:aea0:dd4:470d:6245:cbff:fe9f:48b1)
2022-10-21 12:42:20 <thyriaen> Howdy friends
2022-10-21 12:42:33 liskin[m] joins (~liskinmat@2001:470:69fc:105::768)
2022-10-21 12:42:44 <thyriaen> I would like to use XMonad.Layout.IndependentScreens -- when I enable them the workspaces in my polybar are no longer "found"
2022-10-21 12:44:11 <thyriaen> in my polybar config i define the desktop-names as 1,2,3,4,5...
2022-10-21 12:50:52 <geekosaur> IndependentScreens changes the workspace names; the physical workspaces are named <screenid>_<workspacename>
2022-10-21 12:51:13 <geekosaur> so 0_1, 0_2, etc.
2022-10-21 12:52:41 <thyriaen> ah, excellent thanks
2022-10-21 12:52:46 <thyriaen> i will try that
2022-10-21 12:54:57 <thyriaen> geekosaur, works ! thanks
2022-10-21 12:55:52 <thyriaen> geekosaur, if i may ask - maybe you know - when I also want another polybar on my 2nd monitor i just create a 2nd polybar and put it there ?
2022-10-21 12:57:45 <geekosaur> I don't know much about polybar, sorry. probably just starting a second polybar will work but I don't know how you would e.g. limit it to the workspace(s) on that monitor
2022-10-21 12:58:15 <thyriaen> geekosaur, i know that - i can give polybar just the names 1_1, 1_2, ...
2022-10-21 13:39:37 <thyriaen> geekosaur, I have several applications in my manage hook which, when discovered gets shifted to a specific workspace
2022-10-21 13:39:57 <thyriaen> geekosaur, i do a :: doShift "2" for example
2022-10-21 13:40:38 <geekosaur> you would need to do the same workspace translation there (I think there's some helpers in IndependentScreens for that)
2022-10-21 13:40:42 <thyriaen> now with my new config, it - understandably - does not work anymore - how do i correctly need to shift it ?
2022-10-21 13:40:52 <thyriaen> geekosaur, i don't want to hardcode it
2022-10-21 13:41:07 <thyriaen> if i start my terminal
2022-10-21 13:41:12 <thyriaen> it should go to workspace 1
2022-10-21 13:41:16 <thyriaen> not always to 0_1
2022-10-21 13:41:25 <thyriaen> it should depend which screen has focus
2022-10-21 13:41:40 <thyriaen> so i want kinda a doShift currentscreen+"1" or something
2022-10-21 13:42:59 <thyriaen> onCurrentScreen :: (PhysicalWorkspace -> WindowSet -> a) -> VirtualWorkspace -> WindowSet -> a
2022-10-21 13:43:51 <geekosaur> was just about to point to that.; not real convenient though
2022-10-21 13:44:04 <thyriaen> how do i use it ?
2022-10-21 13:44:24 <geekosaur> onCurrentScreen (doShift "2"), I think
2022-10-21 13:44:26 <thyriaen> doShift onCurrentScreen "1" is probably not the way
2022-10-21 13:44:41 <thyriaen> ok let me try if the compiler will yell at me
2022-10-21 13:45:33 <thyriaen> onCurrentScreen :: (PhysicalWorkspace -> WindowSet -> a) -> VirtualWorkspace -> WindowSet -> a
2022-10-21 13:45:36 <thyriaen> doesnt work
2022-10-21 13:45:52 <geekosaur> argh, my cabal repl is doing a rebuild so I can't test it yet here
2022-10-21 13:46:25 <geekosaur> oh, missing parameter
2022-10-21 13:46:34 <thyriaen> , className =? "superhuman" --> onCurrentScreen ( doShift "2" )
2022-10-21 13:46:37 <thyriaen> https://termbin.com/mbk4
2022-10-21 13:46:53 <geekosaur> onCurrentScreen (doShift "2") is missing the VirtualWorkspace
2022-10-21 13:47:32 <thyriaen> 2 is the physical workspace ?
2022-10-21 13:47:38 ft joins (~ft@p3e9bc845.dip0.t-ipconnect.de)
2022-10-21 13:48:32 <geekosaur> doShift takes a PhysicalWorkspace but doesn't know it's not the actual workspace. that's why it's "2"
2022-10-21 13:48:42 <geekosaur> and not "1_2" or similar
2022-10-21 13:49:04 <thyriaen> geekosaur, ok
2022-10-21 13:49:08 <geekosaur> the type system doesn't handle this "type bending" well
2022-10-21 13:49:24 <thyriaen> i don't really know how to proceed now, tho
2022-10-21 13:49:26 <geekosaur> lemme get my cabal repl up, I think it has to be more complex and not just because of this
2022-10-21 13:49:47 <geekosaur> need a doF and use shift directly, among other things. I'll play with it
2022-10-21 13:50:20 <geekosaur> oh wait. I think that might be: doF (onCurrentScreen shift "2")
2022-10-21 13:50:26 <geekosaur> but I can't test yet
2022-10-21 13:50:46 <thyriaen> what is doF ?
2022-10-21 13:51:05 <thyriaen> doShift instead of shift ?
2022-10-21 13:51:41 <geekosaur> ghci> :t doF (onCurrentScreen W.shift "2")
2022-10-21 13:51:41 <geekosaur> doF (onCurrentScreen W.shift "2") :: Query (Endo WindowSet)
2022-10-21 13:52:21 <thyriaen> do i mean W.shift importerd from Xmonad.StackSet ?
2022-10-21 13:52:31 <geekosaur> a manageHook is a wrapped operation. doF unwraps it. doShift is a version of W.shift with the doF already included, but for onCurrentScreen we have to separate it out
2022-10-21 13:52:50 <thyriaen> doF ( onCurrentScreen W.shift "2" ) compiles
2022-10-21 13:53:36 <thyriaen> and it works
2022-10-21 13:53:56 <thyriaen> thanks
2022-10-21 13:54:36 <thyriaen> i am not quite sure if everything with the workspaces work jet completely but i will test around today and if i find an issue report back :p
2022-10-21 13:56:48 <thyriaen> geekosaur, is there a cooler, more haskelli way to write doShiftWithScreens x = doF $ onCurrentScreen W.shift x
2022-10-21 13:57:13 <thyriaen> I am thinking about the x, i remember very vaguely you can somehow remove this x with some other syntax
2022-10-21 13:57:51 <geekosaur> you can just omit it entirely ("eta reduction") if it's the last thing on both sides of the `=`
2022-10-21 13:58:07 <thyriaen> okay
2022-10-21 13:58:22 <geekosaur> hm, except not in this casem I missed the $
2022-10-21 13:58:33 <thyriaen> yea it doesn't compile without
2022-10-21 13:58:35 dminuoso would just use parens instead of ($)
2022-10-21 13:58:37 <thyriaen> because of the () i guess
2022-10-21 13:58:58 <dminuoso> thyriaen: Well, if you leave x away on both sides, replace ($) with .
2022-10-21 13:59:06 <dminuoso> That's definitely idiomatic for some.
2022-10-21 13:59:10 <dminuoso> Myself included.
2022-10-21 13:59:13 <geekosaur> doF . onCurrentWorkspace W.shift
2022-10-21 13:59:35 <thyriaen> works for me thanks
2022-10-21 14:00:09 <thyriaen> i don't know why but haskell is just pure beauty
2022-10-21 14:00:29 <dminuoso> What I find quite strange, is that this type of eta reduction (replacing ($) with (.)) is glued so deep into my mind, I dont even do it consciously.
2022-10-21 14:00:46 <thyriaen> i have one question though
2022-10-21 14:01:41 <thyriaen> when playing an fullscreen game on a dual monitor settup and it only runs on my primary - how can i restrict the mouse to that monitor, because if i leave the monitor with my mouse all hell breaks lose and monitors start to change resolution and flicker
2022-10-21 14:03:28 <geekosaur> sounds like what happens on my setup if I hotplug/unplug a monitor 😞
2022-10-21 14:04:08 <thyriaen> geekosaur, but can i restrict my mouse to one monitor somehow ?
2022-10-21 14:04:19 <thyriaen> or make it behave like that in fullscreen mode ?
2022-10-21 14:05:30 <thyriaen> that would be ideal actually i have a layout Full -- and in this restricting the mouse to that monitor would be sufficient for what i need
2022-10-21 14:06:20 <thyriaen> but what i want most of all - i want window focus not being controlled by mouse movement but eye-movement - whereever i look that monitor or window gets focus
2022-10-21 14:06:30 <geekosaur> sadly no. that wou;ld have to be built into the X server somehow, because by the time xmonad found out about it it would be too late
2022-10-21 14:06:57 <thyriaen> geekosaur, ok - do you know of an xorg solution ?
2022-10-21 14:07:06 <geekosaur> focus-follows-gaze has been wanted for several decades, I think the closest anyone has gotten is some hacks for kinect 🙂
2022-10-21 14:07:36 <thyriaen> :)
2022-10-21 14:08:28 <geekosaur> sadly no, it's not provide3d by current X servers nor do I expect it to be added because they really want X11 to go away (but don't seem to be fixing wayland to work well enough to replace it reliably…)
2022-10-21 14:09:56 <thyriaen> geekosaur, i really want to move to wayland but fell in love with xmonad + i am so glad that none of my windows have any form of decoration and i know it will be a nightmare to have clientsidedecorations because i would have to tell every new application to hide the decoration
2022-10-21 14:10:48 <geekosaur> supposedly they're working on a way for window managers in XWayland to manage Wayland windows, that would let you run xmonad under wayland directly
2022-10-21 14:11:23 <thyriaen> :O
2022-10-21 14:20:09 <xmonadtrack> New xmonad-contrib branch created: pull/766 (4 commits) https://github.com/xmonad/xmonad-contrib/pull/766
2022-10-21 14:20:09 <xmonadtrack> xmonad-contrib L. S. Leary https://github.com/xmonad/xmonad-contrib/pull/766 * v0.17.1-47-gc3e2ecb2: Factor shared logic out of X.A.Cycle* modules (6 hours ago, 6 files, 126+ 60-) https://github.com/xmonad/xmonad-contrib/commit/c3e2ecb21a2c

All times are in UTC.