2024/01/20

2024-01-20 04:43:23 +0100terrorjack(~terrorjac@2a01:4f8:c17:87f8::) (Quit: The Lounge - https://thelounge.chat)
2024-01-20 04:47:23 +0100terrorjack(~terrorjac@2a01:4f8:c17:87f8::)
2024-01-20 04:57:43 +0100td_(~td@i53870934.versanet.de) (Ping timeout: 246 seconds)
2024-01-20 04:59:51 +0100td_(~td@i5387090D.versanet.de)
2024-01-20 07:56:52 +0100Buliarous(~gypsydang@46.232.210.139) (Read error: Connection reset by peer)
2024-01-20 08:14:30 +0100berberman(~berberman@user/berberman) (Quit: ZNC 1.8.2 - https://znc.in)
2024-01-20 08:15:23 +0100berberman(~berberman@user/berberman)
2024-01-20 12:29:49 +0100hightower2(~hightower@213.186.15.36) (Ping timeout: 264 seconds)
2024-01-20 12:58:33 +0100hightower2(~hightower@141-136-129-170.dsl.iskon.hr)
2024-01-20 15:51:40 +0100CronyAkatsuki(~crony@37.205.108.111)
2024-01-20 15:52:24 +0100 <CronyAkatsuki> hello, could I get some help with xmonad floating and mouse move/resize
2024-01-20 15:53:07 +0100 <CronyAkatsuki> whenever I change move or resize a window it stays on top of any new window I spawn in simpleFloat layout
2024-01-20 16:33:07 +0100 <[Leary]> CronyAkatsuki: The move/resize actions are turning your pretend floats into actual floats. You can re-tile them afterwards (mod-t) and I imagine they'll get to keep their new geometries. If it's a bother to do that manually every time, you should be able to work the re-tiling into the move/resize actions.
2024-01-20 16:53:50 +0100 <CronyAkatsuki> [Leary]: is there any way to get what's the current workspace in xmonad? Or get what's the current layout so I can automate this in ther mouse bindings for when I'm on the simpleFloat layout?
2024-01-20 17:04:21 +0100 <[Leary]> CronyAkatsuki: `gets ((== "Float") . description . layout . workspace . current . windowset)`
2024-01-20 17:07:41 +0100 <[Leary]> I suppose you could use X.A.PerLayoutKeys for this, seems to be what it's for.
2024-01-20 17:09:32 +0100 <[Leary]> E.g. `chooseActionByLayout \case{ "Float" -> ...; _ -> ... }`
2024-01-20 17:36:43 +0100CronyAkatsuki(~crony@37.205.108.111) (Quit: leaving)
2024-01-20 20:57:25 +0100 <haskellbridge> <f​rankitox> Hello! Anyone knows if it's possible to switch workspace from the command line? ChatGPT suggests using `xdotool` which is useful to simulate keystrokes (not a solution I like). I've checked `man xmonad` but couldn't found anything relevant.
2024-01-20 20:57:44 +0100 <haskellbridge> <f​rankitox> Hello! Anyone knows if it's possible to switch workspace from the command line? ChatGPT suggests using `xdotool` which is useful to simulate keystrokes (not a solution I like). I've checked `man xmonad` but couldn't find anything relevant.
2024-01-20 21:01:01 +0100 <geekosaur> xdotool or wmctrl can do it via EWMH instead of via keystrokes, if you have EwmhDesktops enabled
2024-01-20 21:05:09 +0100 <geekosaur> xdotool set_desktop desktopnumber, or wmctrl -s desktopname
2024-01-20 21:06:19 +0100 <geekosaur> of the two, I prefer wmctrl because I don't have to look up a name-to-number mapping (which is most easily done with wmctrl anyway)
2024-01-20 21:22:43 +0100 <haskellbridge> <f​rankitox> I had to make a little change to my xmonad config (importing `XMonad.Hooks.EwmhDesktops` and using `ewmh`), but it's working now :D. I've only tried xdotool, but I'll see which one to use. Thanks man 🙏