Home liberachat/#xmonad: Logs Calendar

Logs on 2022-01-06 (liberachat/#xmonad)

00:00:19 <noex> doRectFloat
00:00:26 <geekosaur> doFloat floats a window at its program-specified position and size. you want https://hackage.haskell.org/package/xmonad-contrib-0.17.0/docs/XMonad-Hooks-ManageHelpers.html#v:doRectFloat
00:00:28 <geekosaur> yeh
00:09:00 <noex> these are great. combined with scratchpads...should have set these up years ago
00:10:07 × jimr quits (~jimr@2603-7080-7640-b000-0000-0000-0000-0003.res6.spectrum.com) (Quit: Leaving)
00:16:59 <Hash> Hello
00:17:05 <Hash> Diggity dawgs dude men home slices
00:17:16 <Hash> So, I need a stand alone panel to switch open apps
00:17:22 <Hash> One panel on bottom of each monitor
00:17:37 <Hash> So I can switch the apps using mouse which are on that monitor.
00:17:47 <Hash> So task bar should only display open apps from THAT monitor
00:17:51 <Hash> So 1 taskbar per monitor
00:18:00 <Hash> And No fancy thigns needed, no frills, nothing
00:18:07 <Hash> Can be text only, no icons needed even.
00:18:13 <Hash> Nice to have a system tray build in too
00:18:18 <Hash> and a app menu icon.
00:18:34 <Hash> Just a basic taskbar, no gtk/qt dependency if possible.
00:18:46 <Hash> Any suggestions welcome, guys, thankyou. Also happy new year
00:19:07 <Hash> What do you guys use?
00:19:13 <Hash> Is htis a offtopic quuestion?
00:19:43 <MrElendig> give polybar a spin
00:20:27 <geekosaur> this has been done with xmobar but I don't know details
00:20:59 <Hash> I use xmobar and I use also dmenu to launch progrs
00:21:14 <Hash> I also have other stuff, like a grid system plugin to display commonly used apps I can laungh, np
00:21:19 <Hash> Just trying to see what is out there
00:21:21 <Hash> I'll check out polybar
00:21:33 <MrElendig> wouldn't be that hard to write a module for xmobar for it
00:21:34 <Hash> Any other bars? system try too, any of those?
00:22:56 <geekosaur> trayer is most common
00:23:13 <geekosaur> candybar but I think that might be (minimally) gtk
00:23:14 <MrElendig> could use any of the docs too
00:23:36 <Hash> Ok thanks
00:23:48 <MrElendig> polybar do have built in systray
00:23:49 <Hash> I used to use plasmashell with Xmonad as WM in KDE, just to get KDE panels
00:23:52 <Hash> But KDE is being a dork.
00:24:01 <Hash> And I'm not trying ito debug KDE.
00:24:08 <Hash> I'll happily switch.
00:24:13 <Hash> nice
00:24:34 <Hash> Also, one more thing, if you guys know
00:24:38 <MrElendig> https://wiki.archlinux.org/title/List_of_applications#Taskbars have fun
00:25:11 <Hash> When I use Ubuntu 20.04, my distro, Xmonad WM, and plasma session, if you install KDE, and configure KDE to use Xmonad, but also have a 2nd session, Xmonad only, in SDDM
00:25:14 <Hash> So 2 things
00:25:35 <Hash> 1) If you select Plasma Session, You get plasmashell to launch with Xmonad as WM. Good.
00:26:08 <Hash> 2) If you select only the Xmonad session, pure Xmonad, no plasmashell, no nothing, then all is well, sure, great, dandy, but none of the KDE apps are themed. They all appear default white colored KDE controls.
00:26:23 <Hash> The reason I use plasmashell is Xmonad is that so all the qt apps I use, get colroed dark style.
00:26:41 <Hash> So I'm trying to figure out how to use Xmonad only session, but also colorize the Qt/Gtk apps to be dark theme.
00:26:45 <Hash> Any advice on that?
00:27:50 <Hash> KDE colors don't take effect and Qt apps are not styled dark until I start plasmashell services of KDE
00:28:14 <MrElendig> Hash: set the apropiate env vars etc
00:28:16 <Hash> So, if anyoen ever used that, has tips, cool. If not, I dunno
00:28:30 <Hash> Ok
00:28:43 <Hash> I'll check out if KDE sets env vars for this and if they can be used otuside KDE env.
00:30:48 Hash is now known as EnchanterTim
00:59:18 mvk joins (~mvk@2607:fea8:5cdd:f000::45db)
01:27:44 dirtcastle joins (~dirtcastl@2409:4072:6e96:88a0:b007:b4ff:fe13:abb3)
01:42:24 × seschwar quits (~seschwar@user/seschwar) (Quit: :wq)
01:47:22 steve__ joins (~steve@ool-182c2b80.dyn.optonline.net)
01:55:37 × dirtcastle quits (~dirtcastl@2409:4072:6e96:88a0:b007:b4ff:fe13:abb3) (Ping timeout: 240 seconds)
01:55:59 dirtcastle joins (~dirtcastl@103.43.203.226)
02:38:32 × fcser quits (~fcser@booty.farted.net) (Read error: Connection reset by peer)
02:40:57 fcser joins (~fcser@booty.farted.net)
02:45:27 × fcser quits (~fcser@booty.farted.net) (Client Quit)
02:45:44 fcser joins (~fcser@booty.farted.net)
03:02:37 × banc quits (banc@gateway/vpn/airvpn/banc) (Ping timeout: 256 seconds)
03:11:37 × steve__ quits (~steve@ool-182c2b80.dyn.optonline.net) (Ping timeout: 240 seconds)
03:24:33 banc joins (banc@gateway/vpn/airvpn/banc)
03:44:06 <dirtcastle> spawnAndDo (doRectFloat (W.RationalRect 0.5 0.1 0.4 0.8) <+> doShift "1") "urxvtd -q -o -f && urxvtc -hold -e ~/fun.sh"
03:44:25 <dirtcastle> this doesn't obey dorect float.
03:44:40 <dirtcastle> the string executes properly
03:45:14 <dirtcastle> need full config?
03:48:31 × td_ quits (~td@94.134.91.82) (Ping timeout: 256 seconds)
03:50:06 td_ joins (~td@94.134.91.33)
03:53:57 × mvk quits (~mvk@2607:fea8:5cdd:f000::45db) (Ping timeout: 240 seconds)
03:57:27 <fizzie> `spawnAndDo` (and everything else in XMonad.Actions.SpawnOn) relies on the _NET_WM_PID property being set to the process it spawned, which is most likely not true for urxvtd && urxvtc.
03:58:36 <dirtcastle> so I should run the managehook with some other xprop property
04:00:36 <fizzie> Setting `-name ...` to something unique is the conventional way to single out specific terminals.
04:02:15 <dirtcastle> aahh. good idea. like in scrathpads.
04:04:45 <fizzie> There's also the XMonad.Hooks.FloatNext approach (just do the action on the next new window), which doesn't have the _NET_WM_PID requirement but does have an obvious race condition. Or the XMonad.Hooks.ToggleHook that it uses under the hood for more custom actions.
04:05:07 <dirtcastle> noted.
04:46:33 rekahsoft joins (~rekahsoft@cpe0008a20f982f-cm64777d666260.cpe.net.cable.rogers.com)
04:53:31 benin9 joins (~benin@183.82.176.241)
04:54:37 × benin quits (~benin@183.82.176.241) (Ping timeout: 240 seconds)
04:54:37 benin9 is now known as benin
05:26:52 <dirtcastle> spawnOn "6" "emacs --daemon && emacsclient -nc -s 'bkk' -F "(quote (name . \"emacsbkkk\"))""
05:27:01 <dirtcastle> struggling with syntax.
05:27:22 <dirtcastle> how to pass " inside string
06:13:20 sogens1 joins (~sogens@pa49-182-20-126.pa.qld.optusnet.com.au)
06:15:09 × sogens1 quits (~sogens@pa49-182-20-126.pa.qld.optusnet.com.au) (Client Quit)
06:15:28 sogens1 joins (~sogens@pa49-182-20-126.pa.qld.optusnet.com.au)
06:15:46 × sogens1 quits (~sogens@pa49-182-20-126.pa.qld.optusnet.com.au) (Client Quit)
06:17:11 steve__ joins (~steve@ool-182c2b80.dyn.optonline.net)
06:20:19 sogens joins (~sogens@pa49-182-20-126.pa.qld.optusnet.com.au)
06:22:22 sogens1 joins (~sogens@gateway/vpn/pia/sogens)
06:25:55 × sogens quits (~sogens@pa49-182-20-126.pa.qld.optusnet.com.au) (Ping timeout: 256 seconds)
06:52:41 × sogens1 quits (~sogens@gateway/vpn/pia/sogens) (Ping timeout: 256 seconds)
06:54:41 sogens1 joins (~sogens@pa49-182-20-126.pa.qld.optusnet.com.au)
07:12:37 × sogens1 quits (~sogens@pa49-182-20-126.pa.qld.optusnet.com.au) (Ping timeout: 240 seconds)
07:14:55 sogens1 joins (~sogens@gateway/vpn/pia/sogens)
07:36:51 <Solid> dirtcastle: you can use ' instead of " for -F
07:37:04 <Solid> spawnOn "6" "emacs --daemon && emacsclient -nc -s 'bkk' -F '(quote (name . \"emacsbkkk\"))'"
07:44:58 <dirtcastle> if i run this in bash with ' it should work right ? it doesn't. using. backslashes also doesn't work.
07:49:37 <Solid> it does not? `emacsclient -nc -s 'bkk' -F '(quote (name . \"emacsbkkk\"))'` works for me
07:49:53 <Solid> (btw, instead of `emacs --daemon &&` you can give `-a ''` to emacsclient)
07:55:38 <dirtcastle> oh. are u using backticks?
07:57:22 <dirtcastle> Invalid frame name -- not. a string or nil
08:05:39 × rekahsoft quits (~rekahsoft@cpe0008a20f982f-cm64777d666260.cpe.net.cable.rogers.com) (Ping timeout: 256 seconds)
08:07:21 <dirtcastle> for this emacsclient -nc -s 'bkk' -F '(quote (name . \"emacsbkkk\"))'
08:15:32 <Solid> in the shell directly you don't need to escape the quotes
08:15:39 <Solid> which is probably what it's getting hung up on
08:15:58 <Solid> (but in the haskell code you do since the whole thing is a string; i.e., in quotes already)
08:18:15 <dirtcastle> oh great.
08:20:22 <dirtcastle> instead of questioning, I should just copy paste stuff ig
08:29:29 × EnchanterTim quits (~Hash@hashsecurity.org) (Quit: https://hashsecurity.org)
08:30:01 × sogens1 quits (~sogens@gateway/vpn/pia/sogens) (Ping timeout: 256 seconds)
08:30:35 Hash joins (~Hash@hashsecurity.org)
08:31:37 sogens1 joins (~sogens@pa49-182-20-126.pa.qld.optusnet.com.au)
08:34:57 <Hash> Ok hi
08:35:35 × Hash quits (~Hash@hashsecurity.org) (Max SendQ exceeded)
08:36:14 Hash joins (~Hash@hashsecurity.org)
08:53:38 <dirtcastle> how to see error messages. I installed through pacman
08:58:01 <Hash> pacman is a distro packet manager I think
08:58:13 <Hash> so distro pckage should make everything go into ~/.xmonad/
08:58:21 <Hash> Ther should be some log file there I think
09:16:55 × geekosaur quits (~geekosaur@xmonad/geekosaur) (Read error: Connection reset by peer)
09:17:46 geekosaur joins (~geekosaur@xmonad/geekosaur)
09:56:58 sogens joins (~sogens@gateway/vpn/pia/sogens)
09:59:37 × sogens1 quits (~sogens@pa49-182-20-126.pa.qld.optusnet.com.au) (Ping timeout: 240 seconds)
10:02:23 × dirtcastle quits (~dirtcastl@103.43.203.226) (Remote host closed the connection)
10:03:16 <Solid> afaik pacman doesn't install xmessage (it's listed as an optional dependency)
10:03:21 <Solid> so perhaps try installing that
10:06:29 × sogens quits (~sogens@gateway/vpn/pia/sogens) (Ping timeout: 256 seconds)
10:08:29 sogens joins (~sogens@pa49-182-20-126.pa.qld.optusnet.com.au)
10:13:17 × sogens quits (~sogens@pa49-182-20-126.pa.qld.optusnet.com.au) (Ping timeout: 240 seconds)
10:14:45 sogens joins (~sogens@gateway/vpn/pia/sogens)
10:34:26 dirtcastle joins (~dirtcastl@103.43.203.229)
10:43:17 <dirtcastle> Solid, I wrote a shell script for spawning emacsclient.
10:56:37 x88x88x joins (~x88x88x@2001:19f0:5:39a8:5400:3ff:feb6:73cb)
11:25:21 × sogens quits (~sogens@gateway/vpn/pia/sogens) (Quit: WeeChat 3.4)
11:25:36 sogens joins (~sogens@gateway/vpn/pia/sogens)
11:28:35 sogens1 joins (~sogens@gateway/vpn/pia/sogens)
11:30:22 × sogens quits (~sogens@gateway/vpn/pia/sogens) (Ping timeout: 256 seconds)
11:57:21 × byorgey quits (~byorgey@155.138.238.211) (Quit: leaving)
12:03:57 × sogens1 quits (~sogens@gateway/vpn/pia/sogens) (Ping timeout: 240 seconds)
12:06:08 sogens1 joins (~sogens@pa49-182-20-126.pa.qld.optusnet.com.au)
12:06:37 × steve__ quits (~steve@ool-182c2b80.dyn.optonline.net) (Ping timeout: 256 seconds)
12:10:00 mc47 joins (~mc47@xmonad/TheMC47)
12:15:17 seschwar joins (~seschwar@user/seschwar)
12:15:34 byorgey joins (~byorgey@155.138.238.211)
12:25:53 × sogens1 quits (~sogens@pa49-182-20-126.pa.qld.optusnet.com.au) (Ping timeout: 256 seconds)
12:27:22 sogens1 joins (~sogens@gateway/vpn/pia/sogens)
12:39:17 × sogens1 quits (~sogens@gateway/vpn/pia/sogens) (Ping timeout: 240 seconds)
12:41:41 sogens1 joins (~sogens@pa49-182-20-126.pa.qld.optusnet.com.au)
12:44:11 <dirtcastle> apparantly scratchpad is so hard to do? do i need to configure log hook ? (since I'm using xmobar) more steps are required than what is mentioned in the docs
12:44:24 <dirtcastle> is there any article that will help
12:45:05 <dirtcastle> I also use ezconfig abt which I know little of. but still followed through the doc properly. but still can't get it to working.
12:47:46 <fizzie> I only use NamedScratchpad, but both it and the basic scratchpad (which I think is just a wrapper around NamedScratchpad) should only need the keybindings + the manageHook to function.
12:48:02 <geekosaur> scratchpads shouldn't be tht difficult
12:48:22 <dirtcastle> I use keybinding like this. : M-s t
12:48:48 <dirtcastle> they are called KB_groups
12:49:00 <dirtcastle> it seems
12:49:25 <dirtcastle> should I get this kind of keybinding by default?
12:49:49 <dirtcastle> it's like u press meta+ 's' and then t seperately.
12:49:55 <dirtcastle> idk if this is normal
12:49:57 <fizzie> I don't know about "KB_groups", but EZConfig's Emacs-style keybindings are _supposed_ to use XMonad.Actions.Submap automatically to support multi-key sequences, yes.
12:50:11 <fizzie> (I think. I don't have any configured.)
12:51:49 <fizzie> (XMonad.Actions.Submap is the "manual" way to do it, FWIW. But EZConfig additionalKeysP should generate those as needed, says the documentation.)
12:53:25 <geekosaur> https://github.com/geekosaur/xmonad.hs/blob/skkukuk/xmonad.hs uses scratchpads and EZConfig, but not xmobar (but logs to xmonad-log-applet instead)
12:53:38 <geekosaur> that said, it's not exactly a beginner config :)
12:56:42 <Solid> dirtcastle: the docs for X.U.NamedScratchpad ( https://hackage.haskell.org/package/xmonad-contrib-0.17.0/docs/XMonad-Util-NamedScratchpad.html ) should tell you anything you need
12:56:46 <Solid> you don't need a logHook
13:03:28 <geekosaur> logHook is not for scratchpads, not for keybindings. it's for logging to a statusbar. if you're using xmobar, you may want a logHook at some point to customize what you send to it
13:05:06 <Solid> sure but a priori xmobar has nothing to do with scratchpads (I think they are jumbling concepts here so it may be better to take things step by step)
13:05:15 <geekosaur> yeh
13:05:30 <geekosaur> trying to do too much at once
13:05:57 <geekosaur> might be good to go through the tutorial once before trying to make a more advanced config
13:08:46 <geekosaur> ahy, yep, was redone to use NamedScratchpads. and has a small doc bug because someone missed a reference to the old workspace :)
13:10:23 geekosaur patches straight into master since it's a 1-letter fix
13:10:33 <geekosaur> to a comment, even
13:17:44 <dirtcastle> geekosaur, I have to go through config prime . ez config not so easy.
13:19:05 <Solid> dirtcastle: go through the tutorial: https://xmonad.org/TUTORIAL.html
13:19:11 <Solid> it should have everything you need
13:19:11 <geekosaur> you used X.C.Prime? that's more or less inviting trouble. we should have moved that to -extras years ago for people to play with if they wanted to
13:19:23 <Solid> and yeah, don't use X.C.Prime
13:21:21 <dirtcastle> oh
13:27:36 <geekosaur> it was an experiment that never went anywhere and practically nothing works with it
13:28:07 <geekosaur> we should just mark it as deprecated and remove it in a few versions
13:35:24 <Solid> +!
13:35:25 <Solid> +1
13:40:11 <dirtcastle> https://pastecode.io/s/hu932d7i. my config the error messages are commented in the end. I went through the tutorial. couldn't fix it. I think it's definitely abt submap abt which I know nothing.
13:42:58 <dirtcastle> submap doc didn't tell how to do it for additionalKeysP
13:43:35 <fizzie> The second error is from attempting to pass `myKeys` via "keys = myKeys" field of the config record, rather than only with `additionalKeysP`. You'd want to remove line 82.
13:43:43 <geekosaur> you're trying to use `myKeys` both with `additionalKeysP` (which is correct) and for `keys =` which is wrong
13:43:50 <geekosaur> or, what fizzie said
13:44:00 <fizzie> And the first error is from using `mkKeymap` in `myKeys`.
13:45:12 <fizzie> The type signature says `myKeys :: [(String, X ())]` meaning it's a simple list of ("string", action) pairs, but the actual contents are not.
13:47:07 <fizzie> You should be okay with just myKeys = [ ("M-C-r", ...), ("M-s t", ...) ] and then xmonad $ def { ...no keys= here... } `additionalKeysP` myKeys
13:47:51 <geekosaur> yes. the EZ part of EZConfig is it deals with mkKeymap, mod keys, and such for you
13:48:00 <fizzie> (Part of what additionalKeysP does is call `mkKeymap` for you, and then merge it with whatever's in the config originally, which would just be the default bindings if you don't set it.)
13:48:08 <geekosaur> let it do its job, just write the key sequences you want
13:50:42 edun joins (~e@user/edun)
13:51:36 <dirtcastle> EZconfig is amazing! I'll do the changes and let u know
13:58:47 <dirtcastle> ohhh yeahhhh
13:58:50 <dirtcastle> finalllyyyy
13:58:57 <dirtcastle> i made it n
13:59:02 <dirtcastle> you have no idea
13:59:33 <dirtcastle> how satisfied I feel rn( tho i didn't do the work). thank you so much guys for your time!!!
14:53:41 jimr joins (~jimr@2603-7080-7640-b000-0000-0000-0000-0003.res6.spectrum.com)
15:08:05 × jimr quits (~jimr@2603-7080-7640-b000-0000-0000-0000-0003.res6.spectrum.com) (Quit: Leaving)
15:12:29 jimr joins (~jimr@2603-7080-7640-b000-0000-0000-0000-0003.res6.spectrum.com)
15:37:21 <jimr> morning
15:37:33 <geekosaur> o/
16:11:54 × jimr quits (~jimr@2603-7080-7640-b000-0000-0000-0000-0003.res6.spectrum.com) (Quit: Leaving)
17:24:33 widelec-BB joins (~widelec@cpe-109-207-144-181.docsis.tczew.net.pl)
18:15:36 × benin quits (~benin@183.82.176.241) (Quit: The Lounge - https://thelounge.chat)
18:22:03 <AIM[m]> <dirtcastle> "EZconfig is amazing! I'll do the..." <- Yeah, I've seen it... Currently I use the config in Darc's Archive Config....
18:22:27 <AIM[m]> I have to port my shortcuts to EZ Config....
18:48:55 × edun quits (~e@user/edun) (Quit: Leaving.)
18:52:28 <Hash> Mornign
18:55:37 × dirtcastle quits (~dirtcastl@103.43.203.229) (Ping timeout: 240 seconds)
18:57:52 × widelec-BB quits (~widelec@cpe-109-207-144-181.docsis.tczew.net.pl) (Quit: )
18:57:54 m1nty[m] joins (~m1ntymatr@2001:470:69fc:105::1:45ec)
18:58:23 <m1nty[m]> what is ChanServ
18:58:41 <m1nty[m]> it wanted to pm me when i joined this room
18:59:18 <geekosaur> it manages channels for libera.chat
19:00:04 <geekosaur> this channel has a welcome banner which is sent as a /notice on joining
19:01:19 widelec-BB joins (~widelec@cpe-109-207-144-181.docsis.tczew.net.pl)
19:10:44 jimr joins (~jimr@2603-7080-7640-b000-0000-0000-0000-0003.res6.spectrum.com)
19:11:38 <AIM[m]> <m1nty[m]> "what is ChanServ" <- Just a bot, dm you some info about this room
19:11:49 <AIM[m]> * Just a bot, dm-ing you some info about this room
19:27:56 × geekosaur quits (~geekosaur@xmonad/geekosaur) (Remote host closed the connection)
19:29:48 × jimr quits (~jimr@2603-7080-7640-b000-0000-0000-0000-0003.res6.spectrum.com) (Quit: Leaving)
19:30:17 geekosaur joins (~geekosaur@xmonad/geekosaur)
21:20:09 × mc47 quits (~mc47@xmonad/TheMC47) (Remote host closed the connection)
21:29:08 × jludwig quits (~justin@user/jludwig) (Quit: ZNC - https://znc.in)
21:37:00 jludwig joins (~justin@user/jludwig)
21:41:25 benin joins (~benin@183.82.176.241)
21:46:16 steve__ joins (~steve@ool-182c2b80.dyn.optonline.net)
22:05:45 iMaaNor parts (uid534642@id-534642.tinside.irccloud.com) ()
22:05:48 iMaaNor joins (uid534642@id-534642.tinside.irccloud.com)
22:45:23 iMaNor joins (~imaanor@45.86.201.237)
22:55:09 × iMaNor quits (~imaanor@45.86.201.237) (Quit: Leaving)
23:34:59 × werneta quits (~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net) (Ping timeout: 256 seconds)
23:36:50 werneta joins (~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net)
23:49:59 <m1nty[m]> <geekosaur> "this channel has a welcome..." <- oh ok ty

All times are in UTC on 2022-01-06.