Home liberachat/#xmonad: Logs Calendar

Logs: liberachat/#xmonad

←Prev  Next→ 184,812 events total
2023-11-02 19:51:52 Manu38 joins (~Manu38@2a01:e0a:96:a450:90b3:37ae:5ead:2d6f)
2023-11-02 19:53:43 <Manu38> geekosaur yes I did specified `Master` with the following command in my `xmobar` config file : `Run Alsa "default" "Master" []`
2023-11-02 19:54:48 <geekosaur> I guess you'll have to find someone who knows xmobar then, sorry
2023-11-02 19:55:17 <geekosaur> (I use xmonad as the window manager for MATE so I have a couple of mate-panels)
2023-11-02 20:42:00 <Manu38> Thank you geekosaur Anyone @here using the `Alsa` plugin of `xmobar` ?
2023-11-02 20:52:10 × mc47 quits (~mc47@xmonad/TheMC47) (Remote host closed the connection)
2023-11-02 21:17:26 <Manu38> liskin maybe ? Since looking at that on the web I reached your "Linux, media keys and multiple players" blog post :)
2023-11-02 21:17:58 <liskin> Manu38: I don't really use xmobar's plugins tbh
2023-11-02 21:18:10 <Manu38> Shit :)
2023-11-02 21:18:20 <liskin> as much as I love Haskell, xmobar is best kept minimal
2023-11-02 21:18:43 <liskin> so all the actually interesting stuff in my xmobar is bash/python scripts setting X root window properties
2023-11-02 21:18:46 <Manu38> Probably the best solution for me is to remove this sound plugin.
2023-11-02 21:18:59 ft joins (~ft@p4fc2a529.dip0.t-ipconnect.de)
2023-11-02 21:19:37 <liskin> that being said, perhaps you can follow my lead and put together a script or something that watches the volume and then sets a property for xmobar to display
2023-11-02 21:20:02 <liskin> this way you don't need to limit yourself to weird unmtained buggy impls in xmobar and just use whatever works :-)
2023-11-02 21:21:16 <Manu38> Yep. But my Haskell skills are way to weak for now to jump into that. So I'm adding it to my todo list for a later time and will remove the sound indicator in my `xmobar` for now.
2023-11-02 21:21:56 <Manu38> The most important thing for now, is to have my shortcuts operational.
2023-11-02 21:22:20 <liskin> pactl get-sink-volume @DEFAULT_SINK@ | grep -Po '\d+(?=%)' | head -n 1
2023-11-02 21:22:34 <liskin> you can just put thin into a Run and have it refresh every couple seconds… :-D
2023-11-02 21:22:39 <liskin> s/thin/this/
2023-11-02 21:23:04 <liskin> hm, not Run, the other thing, what was it called
2023-11-02 21:23:57 <Manu38> I was not aware that one could run arbitrary commands in `xmobar`.
2023-11-02 21:24:05 <Manu38> Let's check that right now !
2023-11-02 21:24:25 <liskin> Run Com "bash" ["-c", "pactl get-sink-volume @DEFAULT_SINK@ | grep -Po '\d+(?=%)' | head -n 1"] "volume" 10
2023-11-02 21:24:27 <liskin> that sort of thing
2023-11-02 21:24:52 <liskin> not exactly power efficient though, wouldn't want to have this on a laptop
2023-11-02 21:25:17 <liskin> although with modern hardware, doesn't really make much difference any more
2023-11-02 21:25:24 <Manu38> Because of polling instead of event base you mean ?
2023-11-02 21:25:47 <liskin> that, and also because it's launching a shell and three subprocesses every second
2023-11-02 21:26:31 <Manu38> I don't think this could be noticeable in terms of battery autonomy. Do you think so ?
2023-11-02 21:28:50 <liskin> who knows, it could be a 0.1 watt more or something on this old crap I have
2023-11-02 21:29:14 <liskin> I've shaved a couple deciwatts off by making xmobar refresh only once a second instead of like 5 times
2023-11-02 21:29:36 <liskin> (was it worth the time? probably not, lol)
2023-11-02 21:30:52 <Manu38> (lol)
2023-11-02 21:31:27 <Manu38> Anyway, thank you for the tips of running external process in Xmobar, but I will stay without sound indicator for now :)
2023-11-02 21:32:17 <liskin> sensible choice
2023-11-02 21:32:53 liskin never had one anyway; headphones battery level is much more useful these days
2023-11-02 21:34:31 <Manu38> I don't have battery powered headphones but I am using old style ones and speakers since I'am most of the time alone in my working environment.
2023-11-02 21:53:00 × chomwitt quits (~chomwitt@2a02:587:7a2d:bc00:1ac0:4dff:fedb:a3f1) (Ping timeout: 240 seconds)
2023-11-02 22:14:57 todi joins (~todi@p4fd1a3e6.dip0.t-ipconnect.de)
2023-11-02 22:18:11 sundbry joins (~quassel@2600:1700:38c6:180:a1da:9e07:832c:1349)
2023-11-02 22:32:19 <Manu38> liskin if you are still, here I am trying to understand how you implemented communication between `xmonad` and `xmobar` through X11 properties (since not for the volume stuff, but for a keyboard indicator I'll need to do it soon).
2023-11-02 22:32:45 <Manu38> In your `xmobar.hs` file, you use for example a property called `_XMOBAR_DND`
2023-11-02 22:33:20 <Manu38> To display it's content in your status bar, is that correct ?
2023-11-02 22:34:18 <liskin> yeah
2023-11-02 22:34:48 <liskin> it's set this way: xprop -root -f _XMOBAR_DND 8u -set _XMOBAR_DND "blah blah whatever"
2023-11-02 22:36:02 <Manu38> Where is that thing set ? I was not able to see it, and how your `xmonad.hs` file links to that ?
2023-11-02 22:38:17 <liskin> it's not set by xmonad itself
2023-11-02 22:38:35 <liskin> https://github.com/search?q=repo%3Aliskin%2Fdotfiles%20_xmobar_dnd&type=code
2023-11-02 22:38:38 <Manu38> By a deamon launched at startup by `xmonad` or by your system ?
2023-11-02 22:40:30 <Manu38> Ok thanks, the answer is "by a script called at login time AND by a deamon".
2023-11-02 22:44:23 <liskin> yeah something like that :-)
2023-11-02 22:51:16 <geekosaur> argh
2023-11-02 22:52:05 <geekosaur> I think I'm going to let this latest sit until tomorrow and hope another night's sleep makes me feel better (I'm ill)
2023-11-02 22:52:33 <geekosaur> probably best not to respond to someone when I feel lousy and am tempted to take it out on someone else
2023-11-02 22:53:18 <Manu38> geekosaur nothing related to me, do you confirm ?
2023-11-02 22:53:27 <geekosaur> I confirm
2023-11-02 22:54:09 <geekosaur> we have someone who seems to think (a) xmonad for wayland can be written with just an additional xmonad module or two, and thinks xwayland will somehow help after being told it won't
2023-11-02 22:57:17 <geekosaur> oh, and linked me to something written by someone who clearly didn't know what they were doing (wait, put xmonad in the background and then loop on xhost to keep the session open? what?) and thinks it's xmonad's job to "do this better"
2023-11-02 22:57:40 <geekosaur> no, it's the job of whoever wrote that idiotic script to _write it properly_
2023-11-02 22:57:45 <liskin> I agree it'd be better to get some rest
2023-11-02 22:58:32 <liskin> as far as I understand it, that linked thing actually might work, so creating additional misunderstandings by not trying it and telling everyone else that it doesn't isn't really the best way forward
2023-11-02 22:59:06 <geekosaur> oh, it'll work
2023-11-02 22:59:13 <liskin> (what I think it does is it starts a wayland compositor with rootful Xwayland, and then running xmonad inside of it)
2023-11-02 22:59:42 <geekosaur> yes, but it forks xmonad into the background and then loops on xhost to keep the session open. what happened to `exec xmonad`?
2023-11-02 22:59:54 <geekosaur> should work just as well with xwayland
2023-11-02 23:00:18 <geekosaur> the only thing you lose with xwayland is it can't manage wayland-native windows
2023-11-02 23:00:31 <liskin> it puts the compositor and Xwayland in the background
2023-11-02 23:00:38 <liskin> then it loops using xhost to wait for it to become ready
2023-11-02 23:00:42 <liskin> and then runs xmonad in the fg
2023-11-02 23:02:22 <geekosaur> that's npot what I saw it doing, but, well, ill and not very functional. there's a reason I didn't reply to that and won't until tomorrow
2023-11-02 23:02:32 <liskin> :-)
2023-11-02 23:03:35 <geekosaur> my fever finally broke this morning so maybe I'm getting over this whatever it is
2023-11-02 23:28:47 × Manu38 quits (~Manu38@2a01:e0a:96:a450:90b3:37ae:5ead:2d6f) (Ping timeout: 248 seconds)
2023-11-03 00:32:29 × Groumf quits (~Groumf@2a01:e0a:582:bb40:e5c6:f484:7015:1722) (Quit: Client closed)
2023-11-03 00:36:31 × tremon quits (~tremon@83.80.159.219) (Quit: getting boxed in)
2023-11-03 03:43:13 × td_ quits (~td@i5387092B.versanet.de) (Ping timeout: 252 seconds)
2023-11-03 03:44:48 td_ joins (~td@i53870911.versanet.de)
2023-11-03 06:59:06 chomwitt joins (~chomwitt@2a02:587:7a2d:bc00:1ac0:4dff:fedb:a3f1)
2023-11-03 07:49:10 × sundbry quits (~quassel@2600:1700:38c6:180:a1da:9e07:832c:1349) (Read error: Connection reset by peer)
2023-11-03 08:32:01 Manu38 joins (~Manu38@2a01:e0a:96:a450:21f2:7fc2:6390:78b2)
2023-11-03 09:51:32 <geekosaur> it is 0600, I've gotten one hour of sleep, I am declaring myself _non compos mentis_ for the day
2023-11-03 09:51:45 <liskin> :-(
2023-11-03 09:51:57 <liskin> I got 6, and I blame the DNS
2023-11-03 09:52:45 <liskin> late last night I was wondering why weechat-android always takes a while to connect, and found out my nameservers were messed up and I've probably been losing emails for days as well :-(
2023-11-03 09:53:07 <geekosaur> 😞
2023-11-03 09:53:10 <liskin> (not that I would like to have received more mail than I have, lol)
2023-11-03 10:03:59 × Manu38 quits (~Manu38@2a01:e0a:96:a450:21f2:7fc2:6390:78b2) (Ping timeout: 248 seconds)
2023-11-03 10:09:13 × ft quits (~ft@p4fc2a529.dip0.t-ipconnect.de) (Quit: leaving)
2023-11-03 10:28:31 mc47 joins (~mc47@xmonad/TheMC47)
2023-11-03 10:28:35 × tv quits (~tv@user/tv) (Quit: derp)
2023-11-03 10:28:49 tv joins (~tv@user/tv)
2023-11-03 11:30:57 hightower2 joins (~hightower@211-188.dsl.iskon.hr)
2023-11-03 12:58:33 × zoglesby quits (f0f8ca1525@user/zoglesby) (Ping timeout: 246 seconds)
2023-11-03 12:59:03 zoglesby joins (f0f8ca1525@user/zoglesby)
2023-11-03 12:59:16 samhh_ is now known as samhh
2023-11-03 14:35:28 Manu38 joins (~Manu38@2a01:e0a:96:a450:de4b:b30b:d95e:2990)
2023-11-03 15:49:59 × Manu38 quits (~Manu38@2a01:e0a:96:a450:de4b:b30b:d95e:2990) (Quit: Client closed)
2023-11-03 16:59:39 chomwitt parts (~chomwitt@2a02:587:7a2d:bc00:1ac0:4dff:fedb:a3f1) (Leaving)
2023-11-03 18:36:39 ft joins (~ft@p4fc2a529.dip0.t-ipconnect.de)

All times are in UTC.