Home liberachat/#xmonad: Logs Calendar

Logs on 2025-01-02 (liberachat/#xmonad)

00:15:01 <haskellbridge> <rascasse> arf :/
00:23:07 <haskellbridge> <rascasse> Im just curious to try anyway so I started with that config changes
00:23:07 <haskellbridge> ... long message truncated: https://kf8nh.com/_heisenbridge/media/kf8nh.com/lCRUsklHUaiCXvpwqNrEAJtt/kF0H4ADItMU (12 lines)
00:23:55 <haskellbridge> <rascasse> Im just curious to try anyway so I started with that config changes
00:23:55 <haskellbridge> ... long message truncated: https://kf8nh.com/_heisenbridge/media/kf8nh.com/kwtVLdwVISIGtMkEKNxhKueJ/Px8t48T_5Rg (13 lines)
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`
00:32:34 <haskellbridge> <rascasse> Perhaps is it expected for this plugin to work to have multiple X screens, one by monitor?
00:32:54 <geekosaur> no, xmonad doesn't support X screens at all
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
00:37:27 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> ghci> import XMonad.Layout.IndependentScreens
00:37:27 <haskellbridge> ... long message truncated: https://kf8nh.com/_heisenbridge/media/kf8nh.com/SqsQNKmHUBkcvqGMgKLjQQhM/-9U8-KdcSSY (3 lines)
00:38:30 <haskellbridge> <rascasse> Im just curious to try anyway so I started with that config changes
00:38:30 <haskellbridge> ... long message truncated: https://kf8nh.com/_heisenbridge/media/kf8nh.com/VMGcBnvYqBbUzvSUnadYpWlc/w7bMPOiKc_U (13 lines)
00:40:19 <haskellbridge> <rascasse> Im just curious to try anyway so I started with that config changes
00:40:20 <haskellbridge> ... long message truncated: https://kf8nh.com/_heisenbridge/media/kf8nh.com/heVihkEcBYgRyrwiCWmKdHct/EixbRH4RgRE (13 lines)
00:43:06 × gauge quits (~gauge@user/gauge) (Remote host closed the connection)
00:44:23 gauge joins (~gauge@user/gauge)
00:46:06 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> ghci> concat (transpose [mainWs, secondaryWs])
00:46:06 <haskellbridge> ["0_1","1_1","0_2","0_3","0_4"]
00:53:13 <haskellbridge> <rascasse> for transpose I get "variable not in scope", which module I need to import?
00:53:28 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> sorry, Data.List
00:56:46 <haskellbridge> <rascasse> np, okay it works now
00:57:12 <haskellbridge> <rascasse> I mean second screen get 1_1
01:05:07 L29Ah parts (~L29Ah@wikipedia/L29Ah) ()
01:15:29 × gauge quits (~gauge@user/gauge) (Remote host closed the connection)
01:18:07 gauge joins (~gauge@user/gauge)
01:40:15 <haskellbridge> <rascasse> I changed the keybinds
01:40:15 <haskellbridge> ... long message truncated: https://kf8nh.com/_heisenbridge/media/kf8nh.com/bONurRReFYlxvpyTtekRStLz/7Up8_zlSQGE (6 lines)
01:41:09 <haskellbridge> <rascasse> it works on the secondary screen, while on main screen, I does not switch
01:41:21 <haskellbridge> <rascasse> like the situation is inverted
01:41:46 <haskellbridge> <rascasse> it works on the secondary screen, while on main screen, it wont switch
01:43:50 <haskellbridge> <rascasse> not I declared the ws with "withScreen 1" for main, and "withScreen 2" for secondary
01:43:55 <haskellbridge> <rascasse> * note
01:44:07 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> okay, that's wrong; it starts at 0
01:44:08 <haskellbridge> <rascasse> perhaps a matter of indexes?
01:44:12 <haskellbridge> <rascasse> ah opk
01:44:24 <haskellbridge> <rascasse> changing then
01:45:45 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> if you paid attention, my examples above started at 0 as well
01:46:46 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> ghci> openDisplay [] >>= getCleanedScreenInfo
01:46:47 <haskellbridge> ... long message truncated: https://kf8nh.com/_heisenbridge/media/kf8nh.com/wOtlKxnflkoupwFqsLxENbOo/tjGgusI-vnM (3 lines)
01:53:10 <haskellbridge> <rascasse> okay it works now!
01:55:01 <haskellbridge> <rascasse> thx geekosaur !
01:55:05 <haskellbridge> <rascasse> for the help
01:55:10 <geekosaur> np
02:14:05 L29Ah joins (~L29Ah@wikipedia/L29Ah)
02:31:15 <haskellbridge> <rascasse> testing with the "Actions.OnScreen" approach
02:31:15 <haskellbridge> ... long message truncated: https://kf8nh.com/_heisenbridge/media/kf8nh.com/nNnPHNlRhKhdIbiJsanFOAow/DUFXQ51GSX4 (8 lines)
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 ?
02:33:17 <haskellbridge> <rascasse> I mean I can do it with "windows (viewOnScreen 0 "1")"
02:33:55 <haskellbridge> <rascasse> but any "cleaner" solution? avoiding that unnecessary ws switch
02:35:42 × ft quits (~ft@p3e9bc545.dip0.t-ipconnect.de) (Ping timeout: 252 seconds)
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
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)
02:37:16 ft joins (~ft@p3e9bc62d.dip0.t-ipconnect.de)
02:38:20 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> oh right, ""whatever"" is ""r"" in your case
02:38:54 <haskellbridge> <rascasse> but "W.shift" is to move a given window to a given workspace right?
02:39:07 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> whoops, right, you wanted "W.view"
02:39:21 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> trying to do too many things at once, sorry
02:39:57 <haskellbridge> <rascasse> np, yeah purpose is to first, focus the correct ws on screen 1; then focus back on screen 0
02:40:08 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> oh, and there's a shortcut call for that too. "windows (onlyOnScreen 1 "r")"
02:42:47 <haskellbridge> <rascasse> yup that's the trick thx
02:48:20 <haskellbridge> <rascasse> Okay good
02:48:20 <haskellbridge> ... long message truncated: https://kf8nh.com/_heisenbridge/media/kf8nh.com/tjOuUJyTytNwPYaeaamSYlTb/vUYfda1HrLQ (4 lines)
02:49:14 <haskellbridge> <rascasse> any way to have it limited _by screen_, so only switching to ws used on the current screen?
02:50:00 <haskellbridge> <rascasse> like https://xmonad.github.io/xmonad-docs/xmonad-contrib/XMonad-Actions-CycleWorkspaceByScreen.html
02:50:29 <haskellbridge> <rascasse> but sadly this module does not exposes a "toggleRecentWS" action
02:50:35 <haskellbridge> <rascasse> * expose
03:12:30 <haskellbridge> <rascasse> anyway I can fallback to "("M-<Tab>", cycleWorkspaceOnCurrentScreen [xK_Super_L] xK_h xK_l)"
03:13:17 <haskellbridge> <rascasse> and repeat pressing Meta + Tab to switch back and forth btw 2 hot workspaces
03:14:05 <haskellbridge> <rascasse> perhaps it could be improved by https://xmonad.github.io/xmonad-docs/xmonad-contrib/XMonad-Actions-Repeatable.html
03:14:35 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> "toggleWindowSets (filter (/= "r") . map tag . workspaces)"
03:14:38 <haskellbridge> <rascasse> and repeat pressing Super + Tab to switch back and forth btw 2 hot workspaces
03:15:01 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> hm, not quite
03:17:27 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> "toggleWindowSets (recentWS ((/= "r") . W.tag)"
03:20:01 <haskellbridge> <rascasse> yeaa it works! thx
03:37:14 <haskellbridge> <rascasse> what's the best solution to customize the default layout of a specific workspace?
03:39:42 <haskellbridge> <rascasse> probably Layout.PerWorkspace
03:39:47 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> yes
03:44:18 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> https://github.com/geekosaur/xmonad.hs/blob/hilfy-2023/xmonad.hs#L178-L185
03:45:23 <haskellbridge> <rascasse> yea I have it
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
03:48:42 <haskellbridge> ... long message truncated: https://kf8nh.com/_heisenbridge/media/kf8nh.com/OMejEpWxWXdEvxGVqNSIcKvc/eY8aXcTQ65k (4 lines)
03:49:23 <haskellbridge> <rascasse> note this only happen when my browser ws is not focused on main screen
03:49:29 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> that, sadly, is not something we are doing
03:49:38 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> browsers do that
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
03:51:21 <haskellbridge> <rascasse> do the IndepentScreens approach would solve that?
03:51:22 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> mm, maybe it's possible to write an alternative "doFocus"
03:51:35 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> no, the browser will still insist on wrecking your setup
03:51:51 <haskellbridge> <rascasse> okok
03:51:51 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> they get more and more in your face all the time, I'm afraid
03:58:19 <haskellbridge> <geekosaur (@geekosaur:matrix.org)> hm. "doFocusOn0 = ask >>= \w -> doF (onScreen (W.focusWindow w) FocusNew 0)"
04:00:00 <haskellbridge> <rascasse> sorry where Im supposed to put that? xD
04:00:00 <haskellbridge> <rascasse> sorry where Im supposed to put that? xD
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)
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
04:53:26 <haskellbridge> <rascasse> thx again, it works great so far
07:42:21 × coldpress quits (~coldpress@72.136.212.35.bc.googleusercontent.com) (Ping timeout: 246 seconds)
08:10:52 <Solid> liskin: the stickers arrived today, so at least now we know they didn't get lost
08:10:56 <Solid> The package seems to have been opened (by customs?) but nothing is missing
08:19:31 <liskin> How do you know if was opened?
08:19:42 <liskin> Maybe it's just my bad packing skills
08:51:44 <Solid> There was a cut along the entire left side, with some DHL tape to patch it up
08:52:11 <Solid> I guess that could have been you, though :)
09:00:08 <liskin> Oh okay that actually wasn't me
10:08:54 weitcis joins (~quassel@s-149-142-31-81.resnet.ucla.edu)
13:42:30 × Digit quits (~user@user/digit) (Ping timeout: 246 seconds)
13:44:13 McManiaC joins (~McManiaC@2a01:4f8:c17:ec59::1)
13:45:43 <McManiaC> hey, does anyone know how to get individual monitor resolutions/positions in a multi screen setup? the `Screen` item just contains the total dimensions
13:56:24 <geekosaur> that sounds like either misconfigured xrandr (mirror mode) or built without xinerama
13:57:13 <geekosaur> ghci> openDisplay [] >>= getCleanedScreenInfo
13:57:13 <geekosaur> [Rectangle {rect_x = 2560, rect_y = 0, rect_width = 2880, rect_height = 1920},Rectangle {rect_x = 5440, rect_y = 0, rect_width = 2560, rect_height = 1440},Rectangle {rect_x = 0, rect_y = 0, rect_width = 2560, rect_height = 1440}]
13:57:39 <geekosaur> (from a `cabal repl` in my xmonad config dir)
13:58:59 <geekosaur> if you use stack, that'll be `stack ghci`
14:15:53 rekahsoft joins (~rekahsoft@bras-base-orllon1103w-grc-06-76-69-85-220.dsl.bell.ca)
15:27:10 × rekahsoft quits (~rekahsoft@bras-base-orllon1103w-grc-06-76-69-85-220.dsl.bell.ca) (Remote host closed the connection)
19:29:09 rekahsoft joins (~rekahsoft@76.69.85.220)
19:33:13 chris_on_linux joins (~user@2a02:2149:861e:b700:224e:f6ff:fe4a:8927)
19:33:59 <chris_on_linux> Hi everybody!
19:34:03 <chris_on_linux> Happy new year
19:34:47 <chris_on_linux> I wanted to ask; have you tried how well status bars other than xmobar work with xmonad?
19:40:22 chris_on_linux parts (~user@2a02:2149:861e:b700:224e:f6ff:fe4a:8927) (ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.4))
19:47:25 OftenFaded joins (~OftenFade@user/tisktisk)
19:54:43 × catman quits (~catman@user/catman) (Quit: WeeChat 4.5.1)
19:57:35 catman joins (~catman@user/catman)
20:05:32 <geekosaur> didn't stick around very long, did they?
20:55:24 Digit joins (~user@user/digit)
21:28:37 Digitteknohippie joins (~user@user/digit)
21:30:19 × Digit quits (~user@user/digit) (Ping timeout: 260 seconds)
21:41:55 × Digitteknohippie quits (~user@user/digit) (Ping timeout: 252 seconds)
22:28:52 Digit joins (~user@user/digit)
23:58:57 × OftenFaded quits (~OftenFade@user/tisktisk) (Quit: Client closed)

All times are in UTC on 2025-01-02.