Home liberachat/#xmonad: Logs Calendar

Logs on 2023-06-28 (liberachat/#xmonad)

00:01:34 <geekosaur> (use `kill` as the action to run to close all windows / all windows with a given tag)
00:02:54 <[Leary]> Probably need `killWindow`.
00:03:35 <geekosaur> hm, probably
00:04:18 <geekosaur> oh, roight, for some reason I misremembered tose as kill and kill1
00:04:32 <geekosaur> don't use kill directly unless you really want a hard kill
00:06:02 <Twily[m]> Looking at the souce “kill” is just a shorthand for “killWindow” for a currently focused window
00:06:57 <geekosaur> wow, I'm not doing well tonight. sigh. killClient is the one to avoid…
00:07:26 <Twily[m]> geekosaur so the idea is to add a key to add some custom tag to a focused window (or a window by a rule, like current workspace), and then kill all the tagged windows?
00:08:24 <geekosaur> XMonad.Actions.WithAll has stuff to run on all windows in a workspace. XMonad.Actions.TagWindows lets you add and remove tags from windows, and then run things on windows with a given tag
00:08:38 <geekosaur> you don't have to tag all windows on a workspace, use WithAll instead
00:09:16 <Twily[m]> Yeah, now I see, was looking at the second link first
00:09:20 <Twily[m]> Thanks
00:10:19 <Twily[m]> By the way, that XMonad.Hooks.Modal you recommended previously works exactly like I wanted it to to replicate i3wm modes
00:15:57 <Twily[m]> Does xmonad-contrib has something to mark a floating window sticky? To set _NET_WM_STATE_STICKY?
00:16:49 <Twily[m]> I found an example how to respect window stickiness with custom X _NET_WM_STATE parsing and doing copyToAll but not toggling for this one.
00:17:15 <Twily[m]> Technically I can implement a hack myself, like just tagging windows and doing copyToAll for the tag
00:18:37 <geekosaur> it doesn't, and technically shouldn't: _NET_WM_STATE is used to communicate things to the window manager
00:18:55 <geekosaur> we don't set it, we respond to it
00:19:53 <geekosaur> (that said, there's some things in it which are actually owned by a pager instead of the window manager, and we can set those)
00:21:42 <Twily[m]> I just want to replicate “sticky toggle” command from i3wm. I didn’t check what it really does though.
00:21:54 <Twily[m]> I guess I’ll be totally fine with the custom tag solution.
00:22:14 <geekosaur> setting _NET_WM_STATE is irrelevant because the only thing that would care is us…
00:22:20 <geekosaur> so just use tags or whatever
00:45:14 <Twily[m]> If I add a tag to a window should I see it in xprop output?
00:45:41 <Twily[m]> Hm.. actually I can see it now
00:46:47 <Twily[m]> It seems it’s just my manage-hook that is not working
00:51:27 <Twily[m]> isStickyWindow = XMonad.liftX . TagWindows.hasTag stickyWindowTag =<< XMonad.ask
00:51:33 <Twily[m]> isStickyWindow --> XMonad.doF copyToAll
00:51:54 <Twily[m]> Am I doing it wrong. I can see the tag is set in xprop output
00:52:16 <Twily[m]> But the window does not appear on other workspaces when I’m switching to them
00:55:03 <geekosaur> the manageHook only runs when a window first appears, so it won't have the tag initially and by the time you can add it it's too late for the manageHook
00:57:05 <Twily[m]> Hm... I just had the same though that it is the case.
00:57:28 <Twily[m]> So maybe instead of this taggin I can just do copyToAll in a key handler?
00:58:16 <Twily[m]> Or tag it in case I want to invert the state. What is the opposite of “copyToAll”?
00:58:31 <geekosaur> `killAllOtherCopies`
00:59:10 <geekosaur> and if you do this in a key handler it's probably `withFocused $ windows . copyToAll`
01:01:17 <geekosaur> hold on, it's not
01:02:20 hightower3 joins (~hightower@141-136-163-93.dsl.iskon.hr)
01:03:41 <geekosaur> oh, it's just `windows copyToAll`
01:04:46 <Twily[m]> Does it apply still only to a currently focused window?
01:04:54 <geekosaur> yes
01:05:15 <geekosaur> copyToAll knows which window is focused because it's given the whole StackSet
01:05:23 × hightower2 quits (~hightower@141-136-230-213.dsl.iskon.hr) (Ping timeout: 264 seconds)
01:07:10 <Twily[m]> As far as I understand it’s part of a copyToAll implementation to figure out if it’s a focused window or not?
01:26:43 <Twily[m]> Okay, this copyToAll works just weird when you have multiple screens
01:27:08 <Twily[m]> As soon as copyToAll riggers the window jumps to another screen.
01:27:20 <Twily[m]> If I switch to that another screen it jumps back
01:27:27 <Twily[m]> Hard to tell what’s going on
01:28:16 <Twily[m]> And it grabs the focus. If I try to switch to another window it prevents me to do so
01:31:17 <[Leary]> The screen-swapping misbehaviour is fixed in git master.
01:31:41 <Twily[m]> xmonad or xmonad-contrib?
01:31:50 <[Leary]> xmonad
02:27:29 × td_ quits (~td@i5387090F.versanet.de) (Ping timeout: 240 seconds)
02:29:41 td_ joins (~td@i5387093D.versanet.de)
06:14:48 × FatBoyXPC quits (~FatBoyXPC@user/fatboyxpc) (Server closed connection)
06:17:30 FatBoyXPC joins (~FatBoyXPC@user/fatboyxpc)
07:00:00 × hightower3 quits (~hightower@141-136-163-93.dsl.iskon.hr) (Quit: Leaving)
08:07:15 cfricke joins (~cfricke@user/cfricke)
09:07:31 × mc47[m] quits (~mc47matri@2001:470:69fc:105::733) (Remote host closed the connection)
09:09:54 × unclechu quits (~unclechu@2001:470:69fc:105::354) (Remote host closed the connection)
09:10:59 × m5zs7k quits (aquares@web10.mydevil.net) (Ping timeout: 246 seconds)
09:12:48 m5zs7k joins (aquares@web10.mydevil.net)
09:27:14 × ft quits (~ft@p508db151.dip0.t-ipconnect.de) (Quit: leaving)
09:53:32 × fizzie quits (irc@selene.zem.fi) (Server closed connection)
09:54:11 fizzie joins (irc@selene.zem.fi)
11:35:25 malook joins (~Thunderbi@2a02:9b0:4048:2916:dc6d:cf0f:826a:c92b)
11:52:29 emma-underscores joins (~emma-unde@2001:470:69fc:105::2:cdfc)
11:53:46 × mncheck-m quits (~mncheck@193.224.205.254) (Read error: Connection reset by peer)
11:53:54 × smashgrab quits (~smashgrab@188.166.8.80) (Ping timeout: 250 seconds)
11:54:29 smashgrab joins (~smashgrab@188.166.8.80)
12:45:27 obimod joins (~weechat@gateway/tor-sasl/obimod)
12:45:54 × incertia quits (~incertia@209.122.71.127) (Ping timeout: 250 seconds)
12:46:05 incertia_ joins (~incertia@209.122.71.127)
12:46:29 incertia_ is now known as incertia
12:47:17 × obimod quits (~weechat@gateway/tor-sasl/obimod) (Changing host)
12:47:17 obimod joins (~weechat@user/obimod)
12:47:23 × obimod quits (~weechat@user/obimod) (Client Quit)
12:47:41 obimod joins (~weechat@user/obimod)
13:54:22 × cfricke quits (~cfricke@user/cfricke) (Ping timeout: 250 seconds)
13:54:40 cfricke joins (~cfricke@user/cfricke)
13:58:35 × amir quits (sid22336@user/amir) (Server closed connection)
13:58:45 amir joins (sid22336@user/amir)
14:05:07 × geekosaur quits (~geekosaur@xmonad/geekosaur) (Killed (NickServ (GHOST command used by allbery_b)))
14:05:07 allbery_b joins (~geekosaur@xmonad/geekosaur)
14:05:12 allbery_b is now known as geekosaur
14:23:14 × malook quits (~Thunderbi@2a02:9b0:4048:2916:dc6d:cf0f:826a:c92b) (Ping timeout: 260 seconds)
14:34:11 × cfricke quits (~cfricke@user/cfricke) (Ping timeout: 264 seconds)
14:56:51 × ectospasm quits (~ectospasm@user/ectospasm) (Quit: WeeChat 3.8)
15:14:08 diep joins (~diep@172-104-137-130.ip.linodeusercontent.com)
15:20:06 ectospasm joins (~ectospasm@user/ectospasm)
15:24:56 × Natch quits (~natch@c-9e07225c.038-60-73746f7.bbcust.telenor.se) (Ping timeout: 250 seconds)
15:26:23 × diep quits (~diep@172-104-137-130.ip.linodeusercontent.com) (Remote host closed the connection)
15:28:22 Natch joins (~natch@c-9e07225c.038-60-73746f7.bbcust.telenor.se)
15:49:45 × ml| quits (~ml|@user/ml/x-5298235) (Ping timeout: 240 seconds)
16:04:09 ml| joins (~ml|@user/ml/x-5298235)
16:54:55 × deebo quits (~globe@stonebay32.com) (Server closed connection)
16:55:11 deebo joins (~globe@stonebay32.com)
17:21:13 × amenonsen quits (~amenonsen@pitta.toroid.org) (Remote host closed the connection)
17:21:33 amenonsen joins (~amenonsen@pitta.toroid.org)
17:24:27 × burp quits (~quassel@hedgewars/sysadmin/burp) (Server closed connection)
17:24:37 burp joins (~quassel@hedgewars/sysadmin/burp)
17:32:13 × geekosaur quits (~geekosaur@xmonad/geekosaur) (Quit: Leaving)
17:32:28 × xmonadtrack quits (~xmonadtra@user/geekosaur/bot/xmonadtrack) (Remote host closed the connection)
17:39:15 ft joins (~ft@p508db151.dip0.t-ipconnect.de)
17:39:53 geekosaur joins (~geekosaur@xmonad/geekosaur)
17:44:37 xmonadtrack joins (~xmonadtra@069-135-003-034.biz.spectrum.com)
17:44:38 × xmonadtrack quits (~xmonadtra@069-135-003-034.biz.spectrum.com) (Changing host)
17:44:38 xmonadtrack joins (~xmonadtra@user/geekosaur/bot/xmonadtrack)
18:30:07 <xmonadtrack> xmonad Brandon S Allbery KF8NH {GitHub} * v0.17.2-71-g1aac661: Correctly cite Conor McBride's paper (70 seconds ago, 1 file, 4+ 1-) https://github.com/xmonad/xmonad/commit/1aac6611d820
18:30:25 unclechu joins (~unclechu@2001:470:69fc:105::354)
21:29:02 malook joins (~Thunderbi@5.110.139.81)
21:55:26 × malook quits (~Thunderbi@5.110.139.81) (Ping timeout: 252 seconds)
22:14:01 × obimod quits (~weechat@user/obimod) (Remote host closed the connection)
22:14:26 obimod joins (~weechat@user/obimod)

All times are in UTC on 2023-06-28.