2023/03/17

2023-03-17 00:31:09 +0000thunderrd(~thunderrd@183.182.111.130) (Ping timeout: 256 seconds)
2023-03-17 00:53:18 +0000werneta(~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net)
2023-03-17 01:39:42 +0000catman(~catman@user/catman)
2023-03-17 01:57:31 +0000chomwitt(~chomwitt@2a02:587:7a19:9200:1ac0:4dff:fedb:a3f1) (Ping timeout: 246 seconds)
2023-03-17 01:59:49 +0000catman(~catman@user/catman) (Ping timeout: 276 seconds)
2023-03-17 02:09:05 +0000beastwick(~beastwick@pool-74-102-103-88.nwrknj.fios.verizon.net) (WeeChat 3.0)
2023-03-17 02:17:07 +0000bla(~bla@83.24.152.76.ipv4.supernova.orange.pl) (Ping timeout: 250 seconds)
2023-03-17 02:18:00 +0000bla(~bla@79.191.245.1.ipv4.supernova.orange.pl)
2023-03-17 02:47:18 +0000bla(~bla@79.191.245.1.ipv4.supernova.orange.pl) (Ping timeout: 268 seconds)
2023-03-17 02:52:08 +0000burp_(~quassel@hedgewars/sysadmin/burp) (Ping timeout: 252 seconds)
2023-03-17 02:52:21 +0000hightower3(~hightower@141-136-194-244.dsl.iskon.hr)
2023-03-17 02:54:52 +0000bla(~bla@79.191.245.1.ipv4.supernova.orange.pl)
2023-03-17 02:55:04 +0000hightower2(~hightower@20-10.dsl.iskon.hr) (Ping timeout: 276 seconds)
2023-03-17 03:03:07 +0000banc(~banc@154.47.24.197) (Ping timeout: 248 seconds)
2023-03-17 03:19:22 +0000td_(~td@i53870903.versanet.de) (Ping timeout: 268 seconds)
2023-03-17 03:20:40 +0000banc(~banc@154.47.24.197)
2023-03-17 03:21:08 +0000td_(~td@i5387092E.versanet.de)
2023-03-17 03:24:33 +0000bla(~bla@79.191.245.1.ipv4.supernova.orange.pl) (Ping timeout: 256 seconds)
2023-03-17 03:24:44 +0000bla(~bla@79.191.70.127.ipv4.supernova.orange.pl)
2023-03-17 05:05:14 +0000srk(~sorki@user/srk) (Remote host closed the connection)
2023-03-17 05:05:35 +0000srk(~sorki@user/srk)
2023-03-17 06:03:15 +0000ft(~ft@p3e9bc443.dip0.t-ipconnect.de) (Ping timeout: 260 seconds)
2023-03-17 06:10:54 +0000derfflinger(~derffling@user/derfflinger)
2023-03-17 06:18:59 +0000chomwitt(~chomwitt@2a02:587:7a19:9200:1ac0:4dff:fedb:a3f1)
2023-03-17 06:26:59 +0000werneta(~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net) (Ping timeout: 246 seconds)
2023-03-17 06:29:27 +0000werneta(~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net)
2023-03-17 07:04:41 +0000ft(~ft@p3e9bc443.dip0.t-ipconnect.de)
2023-03-17 07:14:12 +0000mncheck(~mncheck@193.224.205.254)
2023-03-17 07:57:51 +0000fnurglewitz(uid263868@id-263868.lymington.irccloud.com)
2023-03-17 08:26:06 +0000ft(~ft@p3e9bc443.dip0.t-ipconnect.de) (Quit: leaving)
2023-03-17 08:43:24 +0000derfflinger(~derffling@user/derfflinger) (Remote host closed the connection)
2023-03-17 08:43:43 +0000derfflinger(~derffling@user/derfflinger)
2023-03-17 09:38:06 +0000derfflinger(~derffling@user/derfflinger) (Remote host closed the connection)
2023-03-17 09:39:26 +0000derfflinger(~derffling@user/derfflinger)
2023-03-17 10:00:19 +0000Superficial(~user@gtsat.inesc-id.pt)
2023-03-17 10:01:48 +0000Superficial(~user@gtsat.inesc-id.pt) ()
2023-03-17 11:15:44 +0000hightower3(~hightower@141-136-194-244.dsl.iskon.hr) (Ping timeout: 246 seconds)
2023-03-17 11:46:47 +0000hightower2(~hightower@85.94.71.188)
2023-03-17 12:02:23 +0000derfflinger(~derffling@user/derfflinger) (Remote host closed the connection)
2023-03-17 12:02:41 +0000derfflinger(~derffling@user/derfflinger)
2023-03-17 12:58:35 +0000werneta(~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net) (Ping timeout: 256 seconds)
2023-03-17 14:52:23 +0000derfflinger(~derffling@user/derfflinger) (Quit: Leaving)
2023-03-17 16:07:24 +0000fnurglewitz(uid263868@id-263868.lymington.irccloud.com) (Quit: Connection closed for inactivity)
2023-03-17 16:19:57 +0000ft(~ft@p3e9bc443.dip0.t-ipconnect.de)
2023-03-17 16:21:16 +0000Tom(~Tom@151.246.204.197)
2023-03-17 16:22:03 +0000TomLensci
2023-03-17 16:22:54 +0000 <Lensci> Is there anyway to make xmonad run a script only when you press the specific mouse button on an empty workspace
2023-03-17 16:26:25 +0000 <geekosaur> yes but it won't be particularly easy
2023-03-17 16:27:42 +0000 <Lensci> I thought there would be an easy way to check if there is a window or not then either abort it or go to something like const $ "xdotool [whatever]"
2023-03-17 16:28:33 +0000 <geekosaur> actually I may be wrong since it's passed the window clicked on; I'll have to check what happens if there isn't one
2023-03-17 16:28:54 +0000 <Lensci> nice
2023-03-17 16:34:02 +0000 <geekosaur> what happens is we ungrab the button, so we dont receive it in that case 😞
2023-03-17 16:38:33 +0000 <geekosaur> well. should still be possible without doing a grab, by adjusting `rootMask` and catching it in `handleEventHook`
2023-03-17 16:39:22 +0000sagax(~sagax_nb@user/sagax)
2023-03-17 16:40:02 +0000 <geekosaur> wait, `rootMask` already has `buttonPressMask`. so you can do it in `handleEventHook`. just make sure it's on the root window
2023-03-17 16:41:47 +0000catman(~catman@user/catman)
2023-03-17 16:47:21 +0000 <geekosaur> https://paste.tomsmeding.com/FZh6ZIIn something like this
2023-03-17 16:47:48 +0000 <geekosaur> I cheated slightly, assuming if it's the root window then there are no windows (this is true for almost all layouts)
2023-03-17 16:48:07 +0000 <geekosaur> if you actually need the full one that'll be a little more work
2023-03-17 16:52:06 +0000catman(~catman@user/catman) (Ping timeout: 255 seconds)
2023-03-17 17:01:28 +0000 <Solid> Lensci: if it doesn't have to be a mouse button then there is plenty functionality of doing *something* on an empty workspace with e.g. [XMonad.Actions.TopicSpace]( https://hackage.haskell.org/package/xmonad-contrib/docs/XMonad-Actions-TopicSpace.html ) or [XMonad.Actions.DynamicProjects]( https://hackage.haskell.org/package/xmonad-contrib/docs/XMonad-Actions-DynamicProjects.html )
2023-03-17 17:02:01 +0000 <Lensci> It must be, unfortunately
2023-03-17 17:12:29 +0000 <Lensci> I am new to haskell and xmonad in general so this may seem stupid but can I get the number of windows in focused workspace then let the action run if it is equal to 0? I saw something like this while looking for simpler/less painful ways to do it `withWindowSet (pure . length . W.index)`
2023-03-17 17:18:31 +0000 <geekosaur> pithy we don't export `with` or it'd be `withWindowSet (W.with True (const False))`
2023-03-17 17:18:37 +0000 <geekosaur> *pity
2023-03-17 17:22:08 +0000 <geekosaur> `withWindowSet (isJust . W.peek)`
2023-03-17 17:22:35 +0000 <geekosaur> actually you want `isNothing` there, so it's `True` for an empty ws
2023-03-17 17:23:03 +0000 <geekosaur> that could then be added to the code I gave you, as part of the conditional that checks for the root window
2023-03-17 17:23:21 +0000 <geekosaur> line 5
2023-03-17 17:23:35 +0000 <geekosaur> hm, no, needs to be in X
2023-03-17 17:24:18 +0000 <geekosaur> `empty <- withWindowSet (isNothing . W.peek)` then line 5 (which becomes line 6) is `if w == rootw && empty then`
2023-03-17 17:25:55 +0000 <geekosaur> although at that point the root window check is redundant
2023-03-17 17:26:40 +0000 <geekosaur> I think I'd rewire so the WindowSet check, which is more expensive, is done only when the click is on the root window
2023-03-17 17:27:16 +0000 <geekosaur> not that it's very expensive
2023-03-17 17:30:31 +0000 <geekosaur> https://paste.tomsmeding.com/KBzENBNl
2023-03-17 17:31:13 +0000 <geekosaur> note that I still haven't tested this
2023-03-17 17:35:16 +0000 <geekosaur> well, I am now and it has errors. hold on
2023-03-17 17:39:31 +0000 <geekosaur> https://paste.tomsmeding.com/SuWOf1iZ
2023-03-17 17:51:07 +0000 <Lensci> odd it compiled successfully but it doesn't seem to do anything when I run it, just putting it on layout hook and defining the mouse event isn't enough?
2023-03-17 17:52:15 +0000 <geekosaur> layout hook? I'd expect that to throw a type error. it's a handleEventHook
2023-03-17 17:52:43 +0000 <geekosaur> and "defining the mouse event" is editing line 5
2023-03-17 17:52:53 +0000 <geekosaur> where I have `spawn …`
2023-03-17 17:53:26 +0000 <geekosaur> mouse presses when there's no active window never reach the normal mouse event handler
2023-03-17 18:05:58 +0000 <Lensci> oh wow it works, thank you very much
2023-03-17 18:06:18 +0000 <Lensci> I think I understood about 10% of what you said but still managed to get by somehow
2023-03-17 18:08:26 +0000 <Lensci> it seems to trigger on every mouse click, can I just modify it to do it only on right click?
2023-03-17 19:01:06 +0000Lensci(~Tom@151.246.204.197) (Quit: Client closed)
2023-03-17 22:52:23 +0000catman(~catman@user/catman)
2023-03-17 23:39:08 +0000werneta(~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net)
2023-03-17 23:45:24 +0000catman(~catman@user/catman) (Quit: WeeChat 3.8)
2023-03-17 23:47:29 +0000catman(~catman@user/catman)
2023-03-17 23:48:25 +0000joshproehl(~quassel@user/joshproehl) (Quit: Disappearing act!)
2023-03-17 23:48:40 +0000joshproehl(~quassel@user/joshproehl)