Home liberachat/#xmonad: Logs Calendar

Logs: liberachat/#xmonad

←Prev  Next→ 184,595 events total
2025-01-02 00:23:07 <haskellbridge> ... long message truncated: https://kf8nh.com/_heisenbridge/media/kf8nh.com/lCRUsklHUaiCXvpwqNrEAJtt/kF0H4ADItMU (12 lines)
2025-01-02 00:23:55 <haskellbridge> <rascasse> Im just curious to try anyway so I started with that config changes
2025-01-02 00:23:55 <haskellbridge> ... long message truncated: https://kf8nh.com/_heisenbridge/media/kf8nh.com/kwtVLdwVISIGtMkEKNxhKueJ/Px8t48T_5Rg (13 lines)
2025-01-02 00:32:33 <geekosaur> I am pretty sure it doesn't put screens on the "right" workspaces to begin with unless you intersperse the workspace names (use `transpose`) or you force the switch in `startupHook`
2025-01-02 00:32:34 <haskellbridge> <rascasse> Perhaps is it expected for this plugin to work to have multiple X screens, one by monitor?
2025-01-02 00:32:54 <geekosaur> no, xmonad doesn't support X screens at all
2025-01-02 00:36:39 <geekosaur> I thought maybe withScreens transposed them, but it doesn't so on startup you'd definitely get screen 0 workspaces on screen 1 unless there were exactly 1 workspace in the list
2025-01-02 00:37:27 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> ghci> import XMonad.Layout.IndependentScreens
2025-01-02 00:37:27 <haskellbridge> ... long message truncated: https://kf8nh.com/_heisenbridge/media/kf8nh.com/SqsQNKmHUBkcvqGMgKLjQQhM/-9U8-KdcSSY (3 lines)
2025-01-02 00:38:30 <haskellbridge> <rascasse> Im just curious to try anyway so I started with that config changes
2025-01-02 00:38:30 <haskellbridge> ... long message truncated: https://kf8nh.com/_heisenbridge/media/kf8nh.com/VMGcBnvYqBbUzvSUnadYpWlc/w7bMPOiKc_U (13 lines)
2025-01-02 00:40:19 <haskellbridge> <rascasse> Im just curious to try anyway so I started with that config changes
2025-01-02 00:40:20 <haskellbridge> ... long message truncated: https://kf8nh.com/_heisenbridge/media/kf8nh.com/heVihkEcBYgRyrwiCWmKdHct/EixbRH4RgRE (13 lines)
2025-01-02 00:43:06 × gauge quits (~gauge@user/gauge) (Remote host closed the connection)
2025-01-02 00:44:23 gauge joins (~gauge@user/gauge)
2025-01-02 00:46:06 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> ghci> concat (transpose [mainWs, secondaryWs])
2025-01-02 00:46:06 <haskellbridge> ["0_1","1_1","0_2","0_3","0_4"]
2025-01-02 00:53:13 <haskellbridge> <rascasse> for transpose I get "variable not in scope", which module I need to import?
2025-01-02 00:53:28 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> sorry, Data.List
2025-01-02 00:56:46 <haskellbridge> <rascasse> np, okay it works now
2025-01-02 00:57:12 <haskellbridge> <rascasse> I mean second screen get 1_1
2025-01-02 01:05:07 L29Ah parts (~L29Ah@wikipedia/L29Ah) ()
2025-01-02 01:15:29 × gauge quits (~gauge@user/gauge) (Remote host closed the connection)
2025-01-02 01:18:07 gauge joins (~gauge@user/gauge)
2025-01-02 01:40:15 <haskellbridge> <rascasse> I changed the keybinds
2025-01-02 01:40:15 <haskellbridge> ... long message truncated: https://kf8nh.com/_heisenbridge/media/kf8nh.com/bONurRReFYlxvpyTtekRStLz/7Up8_zlSQGE (6 lines)
2025-01-02 01:41:09 <haskellbridge> <rascasse> it works on the secondary screen, while on main screen, I does not switch
2025-01-02 01:41:21 <haskellbridge> <rascasse> like the situation is inverted
2025-01-02 01:41:46 <haskellbridge> <rascasse> it works on the secondary screen, while on main screen, it wont switch
2025-01-02 01:43:50 <haskellbridge> <rascasse> not I declared the ws with "withScreen 1" for main, and "withScreen 2" for secondary
2025-01-02 01:43:55 <haskellbridge> <rascasse> * note
2025-01-02 01:44:07 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> okay, that's wrong; it starts at 0
2025-01-02 01:44:08 <haskellbridge> <rascasse> perhaps a matter of indexes?
2025-01-02 01:44:12 <haskellbridge> <rascasse> ah opk
2025-01-02 01:44:24 <haskellbridge> <rascasse> changing then
2025-01-02 01:45:45 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> if you paid attention, my examples above started at 0 as well
2025-01-02 01:46:46 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> ghci> openDisplay [] >>= getCleanedScreenInfo
2025-01-02 01:46:47 <haskellbridge> ... long message truncated: https://kf8nh.com/_heisenbridge/media/kf8nh.com/wOtlKxnflkoupwFqsLxENbOo/tjGgusI-vnM (3 lines)
2025-01-02 01:53:10 <haskellbridge> <rascasse> okay it works now!
2025-01-02 01:55:01 <haskellbridge> <rascasse> thx geekosaur !
2025-01-02 01:55:05 <haskellbridge> <rascasse> for the help
2025-01-02 01:55:10 <geekosaur> np
2025-01-02 02:14:05 L29Ah joins (~L29Ah@wikipedia/L29Ah)
2025-01-02 02:31:15 <haskellbridge> <rascasse> testing with the "Actions.OnScreen" approach
2025-01-02 02:31:15 <haskellbridge> ... long message truncated: https://kf8nh.com/_heisenbridge/media/kf8nh.com/nNnPHNlRhKhdIbiJsanFOAow/DUFXQ51GSX4 (8 lines)
2025-01-02 02:32:26 <haskellbridge> <rascasse> the only missing bit is how can I focus back the main screen (so first workspace on the list) after the switch in the startupHook ?
2025-01-02 02:33:17 <haskellbridge> <rascasse> I mean I can do it with "windows (viewOnScreen 0 "1")"
2025-01-02 02:33:55 <haskellbridge> <rascasse> but any "cleaner" solution? avoiding that unnecessary ws switch
2025-01-02 02:35:42 × ft quits (~ft@p3e9bc545.dip0.t-ipconnect.de) (Ping timeout: 252 seconds)
2025-01-02 02:35:47 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> the startupHook one should be something like "windows (onScreen (W.shift "whatever") FocusCurrent 1)". "viewOnScreen" focuses the new workspace, like "view" does
2025-01-02 02:36:43 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> (or equivalently it is "windows (onScreen (W.shift "whatever") FocusNew 1)", which is not what you want)
2025-01-02 02:37:16 ft joins (~ft@p3e9bc62d.dip0.t-ipconnect.de)
2025-01-02 02:38:20 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> oh right, ""whatever"" is ""r"" in your case
2025-01-02 02:38:54 <haskellbridge> <rascasse> but "W.shift" is to move a given window to a given workspace right?
2025-01-02 02:39:07 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> whoops, right, you wanted "W.view"
2025-01-02 02:39:21 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> trying to do too many things at once, sorry
2025-01-02 02:39:57 <haskellbridge> <rascasse> np, yeah purpose is to first, focus the correct ws on screen 1; then focus back on screen 0
2025-01-02 02:40:08 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> oh, and there's a shortcut call for that too. "windows (onlyOnScreen 1 "r")"
2025-01-02 02:42:47 <haskellbridge> <rascasse> yup that's the trick thx
2025-01-02 02:48:20 <haskellbridge> <rascasse> Okay good
2025-01-02 02:48:20 <haskellbridge> ... long message truncated: https://kf8nh.com/_heisenbridge/media/kf8nh.com/tjOuUJyTytNwPYaeaamSYlTb/vUYfda1HrLQ (4 lines)
2025-01-02 02:49:14 <haskellbridge> <rascasse> any way to have it limited _by screen_, so only switching to ws used on the current screen?
2025-01-02 02:50:00 <haskellbridge> <rascasse> like https://xmonad.github.io/xmonad-docs/xmonad-contrib/XMonad-Actions-CycleWorkspaceByScreen.html
2025-01-02 02:50:29 <haskellbridge> <rascasse> but sadly this module does not exposes a "toggleRecentWS" action
2025-01-02 02:50:35 <haskellbridge> <rascasse> * expose
2025-01-02 03:12:30 <haskellbridge> <rascasse> anyway I can fallback to "("M-<Tab>", cycleWorkspaceOnCurrentScreen [xK_Super_L] xK_h xK_l)"
2025-01-02 03:13:17 <haskellbridge> <rascasse> and repeat pressing Meta + Tab to switch back and forth btw 2 hot workspaces
2025-01-02 03:14:05 <haskellbridge> <rascasse> perhaps it could be improved by https://xmonad.github.io/xmonad-docs/xmonad-contrib/XMonad-Actions-Repeatable.html
2025-01-02 03:14:35 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> "toggleWindowSets (filter (/= "r") . map tag . workspaces)"
2025-01-02 03:14:38 <haskellbridge> <rascasse> and repeat pressing Super + Tab to switch back and forth btw 2 hot workspaces
2025-01-02 03:15:01 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> hm, not quite
2025-01-02 03:17:27 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> "toggleWindowSets (recentWS ((/= "r") . W.tag)"
2025-01-02 03:20:01 <haskellbridge> <rascasse> yeaa it works! thx
2025-01-02 03:37:14 <haskellbridge> <rascasse> what's the best solution to customize the default layout of a specific workspace?
2025-01-02 03:39:42 <haskellbridge> <rascasse> probably Layout.PerWorkspace
2025-01-02 03:39:47 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> yes
2025-01-02 03:44:18 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> https://github.com/geekosaur/xmonad.hs/blob/hilfy-2023/xmonad.hs#L178-L185
2025-01-02 03:45:23 <haskellbridge> <rascasse> yea I have it
2025-01-02 03:48:40 <haskellbridge> <rascasse> okay one limitation I see now, is when Im on the 2nd screen on the "r" workspace, where is currently my element chat window
2025-01-02 03:48:42 <haskellbridge> ... long message truncated: https://kf8nh.com/_heisenbridge/media/kf8nh.com/OMejEpWxWXdEvxGVqNSIcKvc/eY8aXcTQ65k (4 lines)
2025-01-02 03:49:23 <haskellbridge> <rascasse> note this only happen when my browser ws is not focused on main screen
2025-01-02 03:49:29 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> that, sadly, is not something we are doing
2025-01-02 03:49:38 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> browsers do that
2025-01-02 03:50:37 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> the best you can do about that is https://hackage.haskell.org/package/xmonad-contrib-0.18.1/docs/XMonad-Hooks-EwmhDesktops.html#v:setEwmhActivateHook to prevent the browser from switching workspaces by itself when it wants to grab focus
2025-01-02 03:51:21 <haskellbridge> <rascasse> do the IndepentScreens approach would solve that?
2025-01-02 03:51:22 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> mm, maybe it's possible to write an alternative "doFocus"
2025-01-02 03:51:35 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> no, the browser will still insist on wrecking your setup
2025-01-02 03:51:51 <haskellbridge> <rascasse> okok
2025-01-02 03:51:51 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> they get more and more in your face all the time, I'm afraid
2025-01-02 03:58:19 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> hm. "doFocusOn0 = ask >>= \w -> doF (onScreen (W.focusWindow w) FocusNew 0)"
2025-01-02 04:00:00 <haskellbridge> <rascasse> sorry where Im supposed to put that? xD
2025-01-02 04:00:00 <haskellbridge> <rascasse> sorry where Im supposed to put that? xD
2025-01-02 04:00:47 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> "setEwmhActivateHook doFocusOn0" (see https://hackage.haskell.org/package/xmonad-contrib-0.18.1/docs/XMonad-Hooks-EwmhDesktops.html#g:5)
2025-01-02 04:03:07 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> although this won't quite work if the window demanding focus is your element window. see the example for preventing Chrome from stealing focus for how to deal with that
2025-01-02 04:53:26 <haskellbridge> <rascasse> thx again, it works great so far
2025-01-02 07:42:21 × coldpress quits (~coldpress@72.136.212.35.bc.googleusercontent.com) (Ping timeout: 246 seconds)
2025-01-02 08:10:52 <Solid> liskin: the stickers arrived today, so at least now we know they didn't get lost
2025-01-02 08:10:56 <Solid> The package seems to have been opened (by customs?) but nothing is missing
2025-01-02 08:19:31 <liskin> How do you know if was opened?
2025-01-02 08:19:42 <liskin> Maybe it's just my bad packing skills

All times are in UTC.