Home liberachat/#xmonad: Logs Calendar

Logs: liberachat/#xmonad

←Prev  Next→ 184,732 events total
2024-06-21 11:43:23 × cfricke quits (~cfricke@user/cfricke) (Ping timeout: 272 seconds)
2024-06-21 11:46:43 L29Ah joins (~L29Ah@wikipedia/L29Ah)
2024-06-21 11:47:35 L29Ah parts (~L29Ah@wikipedia/L29Ah) ()
2024-06-21 11:53:28 L29Ah joins (~L29Ah@wikipedia/L29Ah)
2024-06-21 11:53:54 L29Ah parts (~L29Ah@wikipedia/L29Ah) ()
2024-06-21 12:08:39 cfricke joins (~cfricke@user/cfricke)
2024-06-21 12:49:32 <liskin> well it's less odd than asking about hyprland vs sway :-)
2024-06-21 13:34:52 L29Ah joins (~L29Ah@wikipedia/L29Ah)
2024-06-21 13:42:47 × ft quits (~ft@p3e9bcb39.dip0.t-ipconnect.de) (Quit: Lost terminal)
2024-06-21 13:45:33 ft joins (~ft@p3e9bcb39.dip0.t-ipconnect.de)
2024-06-21 13:47:52 × cfricke quits (~cfricke@user/cfricke) (Quit: WeeChat 4.2.2)
2024-06-21 15:48:03 L29Ah parts (~L29Ah@wikipedia/L29Ah) ()
2024-06-21 17:22:07 L29Ah joins (~L29Ah@wikipedia/L29Ah)
2024-06-21 19:25:58 × L29Ah quits (~L29Ah@wikipedia/L29Ah) (Ping timeout: 268 seconds)
2024-06-21 19:58:55 L29Ah joins (~L29Ah@wikipedia/L29Ah)
2024-06-21 20:33:08 <haskellbridge> <lush> Is anyone here using xmonad on NixOS?
2024-06-21 20:43:25 <haskellbridge> <iqubic (she/her)> I am.
2024-06-21 20:43:33 <haskellbridge> <iqubic (she/her)> It's actually not too hard to set up at all.
2024-06-21 20:45:50 <haskellbridge> <lush> iqubic (she/her): I managed to get the latest version of xmonad running, but recompiling xmonad with Mod-q doesn't work, even though I added "enableConfiguredRecompile = true;" to my config... any thoughts?
2024-06-21 20:45:53 <haskellbridge> To be more precise: trying to recompile results in an error saying that it can't find xmonad.hs....
2024-06-21 20:46:14 <haskellbridge> <iqubic (she/her)> How are you configuring XMonad?
2024-06-21 20:47:14 <haskellbridge> <lush> I'm doing it systemwide rn, and I added:
2024-06-21 20:47:15 <haskellbridge> ... long message truncated: https://kf8nh.com/_matrix/media/v3/download/kf8nh.com/rLKuhPddjDxyWTkSHJbPDfLr (14 lines)
2024-06-21 20:47:24 <haskellbridge> <lush> I'm doing it systemwide rn, and I added:
2024-06-21 20:47:24 <haskellbridge> ... long message truncated: https://kf8nh.com/_matrix/media/v3/download/kf8nh.com/dxZXrtPTsXeHlmuYvRXUkuuZ (15 lines)
2024-06-21 20:48:21 mekeor joins (~user@2001:a61:24d2:9401:96ac:ce90:6d78:efe3)
2024-06-21 20:49:21 <haskellbridge> <iqubic (she/her)> I'm not sure. I don't actually use this feature myself.
2024-06-21 20:49:42 <haskellbridge> <iqubic (she/her)> Maybe asking in Nix Haskell channel would be better.
2024-06-21 20:52:06 <haskellbridge> <lush> So how do you manage xmonad in nixos then?
2024-06-21 20:52:19 <haskellbridge> <lush> Do you just nixos-rebuild everytime you change your xmonad.hs?
2024-06-21 20:52:37 <haskellbridge> <iqubic (she/her)> I do.
2024-06-21 20:53:41 <haskellbridge> <lush> I see, thanks. I guess if you already have a neatly configured xmonad setup that's fine.
2024-06-21 20:53:41 <haskellbridge> But I just start editing a new one and it's quite painful to do this all the time I think...
2024-06-21 21:02:05 × byorgey quits (~byorgey@user/byorgey) (Quit: Lost terminal)
2024-06-21 21:11:01 <Leary> lush: Forget about the xmonad.config option; that's only for NixOS. You need to put xmonad.hs where /xmonad/ expects to find it.
2024-06-21 21:13:54 <haskellbridge> <iqubic (she/her)> Leary, all that option does is install GHC for you and sets up xmonad to run with the XMONAD_GHC environment variable set properly. It doesn't actually put the config any for xmonad to be able to find it.
2024-06-22 00:13:24 × mekeor quits (~user@2001:a61:24d2:9401:96ac:ce90:6d78:efe3) (Quit: towards emacs as interface to cybernetic council communism)
2024-06-22 01:15:48 dysthesis joins (~dysthesis@user/dysthesis)
2024-06-22 02:43:16 <haskellbridge> <iqubic (she/her)> Is there a place I can go to see all the atoms that X.H.ExwhDesktops supports and handles?
2024-06-22 02:43:58 <haskellbridge> <iqubic (she/her)> I'm trying to see if that set all the right atoms for me to just be able to use polybar's xwindow and xworkspaces modules out of the box.
2024-06-22 02:44:16 <haskellbridge> <iqubic (she/her)> xwindow says: "NOTE: Requires a WM that supports the EWMH atom _NET_ACTIVE_WINDOW."
2024-06-22 02:45:24 <haskellbridge> <iqubic (she/her)> Wait... I think I can just use "xprop -root _NET_SUPPORTED"
2024-06-22 02:51:25 <haskellbridge> <柱間 (@hashirama:hashi.sbs)> iqubic (she/her): https://github.com/xmonad/xmonad-contrib/blob/master/XMonad/Hooks/EwmhDesktops.hs
2024-06-22 02:52:03 <haskellbridge> <柱間 (@hashirama:hashi.sbs)> iqubic (she/her): you mean, displaying the actual active window title in polybar?
2024-06-22 02:52:13 <haskellbridge> <柱間 (@hashirama:hashi.sbs)> if you meant that, i already do this with polybar and xmonad
2024-06-22 02:52:30 <geekosaur> yeh, _NET_SUPPORTED is the easiest place to find them
2024-06-22 02:53:12 <haskellbridge> <iqubic (she/her)> 柱間: This is what I mean.
2024-06-22 02:53:17 × td_ quits (~td@i53870921.versanet.de) (Ping timeout: 240 seconds)
2024-06-22 02:53:22 <geekosaur> you can get them from the source but I think they're scatted all over plus with extensible EWMH some may be defined in other modules
2024-06-22 02:53:28 <haskellbridge> <iqubic (she/her)> I'm also wondering if you have a good way to get polybar to show the layout.
2024-06-22 02:53:32 <geekosaur> and registered with EWMH
2024-06-22 02:54:26 <geekosaur> I think the only way to get the layout is to send it one way or another, since EWMH doesn't have the concept
2024-06-22 02:54:46 <geekosaur> you could use dbus, or write it to a file and use a polybar module to read the file when it changes
2024-06-22 02:55:03 <haskellbridge> <iqubic (she/her)> Cool... I'll stick to using the dbus and a PP.
2024-06-22 02:55:11 td_ joins (~td@i5387090B.versanet.de)
2024-06-22 02:55:41 <haskellbridge> <iqubic (she/her)> https://github.com/troydm/xmonad-dbus?tab=readme-ov-file#configuring-polybar
2024-06-22 02:56:14 <haskellbridge> <iqubic (she/her)> Looks like this has a neat little guide on how to set up xmonad and polybar to play nicely.
2024-06-22 02:56:46 <haskellbridge> <iqubic (she/her)> And that Go package for reading from dbus is in the Nix repos so I can just get it there.
2024-06-22 02:57:13 <haskellbridge> <iqubic (she/her)> geekosaur: I know you do a similar thing in your config.
2024-06-22 02:58:00 <geekosaur> yes, but with a dbus receiver that's a panel applet that can be built for gnome 2, mate, or xfce
2024-06-22 02:59:26 <geekosaur> (I think Nix has derivations for all three variants)
2024-06-22 03:01:08 <haskellbridge> <iqubic (she/her)> It does. But I'm planning on using polybar and not some DE like that, so I'm gonna use the small Go program and tell polybar to run that to get info. I'll have to wrap the data I send to have proper formatting and stuff, but that's more a polybar issue than an xmonad one.
2024-06-22 03:01:09 <geekosaur> xmonad-log-applet-{gnome,mate,xfce}
2024-06-22 03:01:59 <geekosaur> yeh, xmonad-log-applet speaks Pango markup, I have some utility functions for it in my config
2024-06-22 03:03:53 <haskellbridge> <iqubic (she/her)> Yeah... polybar has its own special text formatting stuff. https://github.com/polybar/polybar/wiki/Formatting#format-tags
2024-06-22 03:07:38 <haskellbridge> <柱間 (@hashirama:hashi.sbs)> iqubic (she/her): quite easy to do
2024-06-22 03:08:21 <haskellbridge> <柱間 (@hashirama:hashi.sbs)> https://codeberg.org/hashirama/modern_lisp-machine/src/commit/491183a723ce7d7decc1961deef2266d524aa0c9/.config/polybar/config.ini
2024-06-22 03:08:59 <haskellbridge> <iqubic (she/her)> But does that show your current XMonad layout?
2024-06-22 03:09:16 <haskellbridge> <柱間 (@hashirama:hashi.sbs)> you mean the name of the layout?
2024-06-22 03:09:32 <haskellbridge> <柱間 (@hashirama:hashi.sbs)> i think that would be very hard to do
2024-06-22 03:09:43 <haskellbridge> <iqubic (she/her)> Yeah... It's fine.
2024-06-22 03:10:49 <geekosaur> you can't get it from EWMH, as I said earlier, but with a custom PP it's easy
2024-06-22 03:11:00 <geekosaur> in fact most of the standard PPs include it
2024-06-22 03:11:07 <geekosaur> as does my custom one
2024-06-22 03:12:47 <geekosaur> https://github.com/geekosaur/xmonad.hs/blob/hilfy-2023/xmonad.hs#L347-L365
2024-06-22 03:13:25 <geekosaur> current screen's workspace is bright, other visible workspaces dim, then layout name and focused window title
2024-06-22 03:14:26 <geekosaur> https://imgur.com/F1Wg9qB.png
2024-06-22 03:27:15 × dysthesis quits (~dysthesis@user/dysthesis) (Quit: dysthesis)
2024-06-22 07:14:19 × mightyby1e quits (~mightybyt@ec2-52-201-220-249.compute-1.amazonaws.com) (Ping timeout: 256 seconds)
2024-06-22 07:14:34 mightybyte joins (~mightybyt@ec2-52-201-220-249.compute-1.amazonaws.com)
2024-06-22 07:41:33 <haskellbridge> <iqubic (she/her)> Is there a hook that runs every time I change layout, that I can use to write the new layout to a file or otherwise do something with the new layout name?
2024-06-22 07:48:06 <Leary> iqubic: Sounds like a job for the `logHook`. You'll have to track the `description` of the current layout/s yourself, though. A bit of extensible state will do it.
2024-06-22 07:49:46 <haskellbridge> <iqubic (she/her)> Oh, yeah, that might work really well.
2024-06-22 07:50:03 <haskellbridge> <iqubic (she/her)> Why would I need to track the descriptions myself?
2024-06-22 08:02:23 <Leary> `logHook` runs every refresh; it's not layoutDescriptionChangedHook, so you need to be the one to decide whether or not it's changed. If you really wanted that hook you'd need to put a modifier over the Choose layout to watch for relevant messages, which is another approach.
2024-06-22 08:03:18 <haskellbridge> <iqubic (she/her)> I see. That makes sense actually...
2024-06-22 08:11:26 <haskellbridge> <iqubic (she/her)> Is there a guide to using ExtensibleState stuff?
2024-06-22 08:37:46 <Leary> iqubic: https://hackage.haskell.org/package/xmonad-contrib-0.18.0/docs/XMonad-Util-ExtensibleState.html
2024-06-22 09:18:28 <haskellbridge> <iqubic (she/her)> What's the difference between "StateExtension" and "PersistentExtension"?
2024-06-22 09:25:57 <liskin> iqubic: one survives restart and the other doesn't
2024-06-22 09:26:36 <liskin> the one that doesn't is useful for caching stuff (e.g. ManageDocks uses it)
2024-06-22 09:26:45 <liskin> EwmhDesktops possibly as well
2024-06-22 09:27:13 <haskellbridge> <iqubic (she/her)> Is the WindowSet part of the state, and it is Persistant?
2024-06-22 09:27:50 <liskin> WindowSet isn't stored using ExtensibleState, but it is preserved across restarts
2024-06-22 09:27:57 <liskin> otherwise you'd lose your layouts on reload
2024-06-22 09:28:55 <liskin> (train about to reach its destination, afk soon)
2024-06-22 09:29:56 <haskellbridge> <iqubic (she/her)> Makes sense. I'll think about this more myself.
2024-06-22 11:34:45 × down200 quits (~down200@shell.lug.mtu.edu) (Ping timeout: 268 seconds)
2024-06-22 11:37:20 down200 joins (~down200@shell.lug.mtu.edu)
2024-06-22 12:01:53 × down200 quits (~down200@shell.lug.mtu.edu) (Ping timeout: 268 seconds)

All times are in UTC.