Home liberachat/#xmonad: Logs Calendar

Logs on 2023-01-15 (liberachat/#xmonad)

00:04:47 × jabuxas quits (~jabuxas@user/jabuxas) (Quit: WeeChat 2.8)
00:11:29 jabuxas joins (~jabuxas@user/jabuxas)
01:10:51 jao joins (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net)
01:30:57 minnie joins (~minnie@159.196.202.199)
03:02:52 × banc quits (banc@gateway/vpn/protonvpn/banc) (Ping timeout: 252 seconds)
03:26:06 banc joins (banc@gateway/vpn/protonvpn/banc)
03:59:44 × td_ quits (~td@83.135.9.53) (Ping timeout: 272 seconds)
04:00:59 td_ joins (~td@83.135.9.57)
04:24:18 × jao quits (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) (Remote host closed the connection)
04:30:34 jao joins (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net)
05:02:21 × hrberg quits (~quassel@171.79-160-161.customer.lyse.net) (Ping timeout: 255 seconds)
06:12:12 lokesh1197 joins (~Thunderbi@14.139.128.52)
06:38:42 × jao quits (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) (Ping timeout: 272 seconds)
08:01:40 × lokesh1197 quits (~Thunderbi@14.139.128.52) (Ping timeout: 272 seconds)
08:33:55 × bla quits (~bla@79.191.115.97.ipv4.supernova.orange.pl) (Ping timeout: 260 seconds)
09:00:11 × unclechu quits (~unclechu@2001:470:69fc:105::354) (Quit: You have been kicked for being idle)
09:00:11 × liskin[m] quits (~liskinmat@2001:470:69fc:105::768) (Quit: You have been kicked for being idle)
09:00:40 bla joins (~bla@79.191.115.97.ipv4.supernova.orange.pl)
09:18:27 × thunderrd quits (~thunderrd@183.182.111.166) (Ping timeout: 265 seconds)
09:46:48 × bla quits (~bla@79.191.115.97.ipv4.supernova.orange.pl) (Ping timeout: 272 seconds)
09:51:23 lokesh1197 joins (~Thunderbi@14.139.128.52)
09:53:33 bla joins (~bla@79.191.115.97.ipv4.supernova.orange.pl)
10:36:05 × bla quits (~bla@79.191.115.97.ipv4.supernova.orange.pl) (Remote host closed the connection)
10:51:09 bla joins (~bla@79.191.115.97.ipv4.supernova.orange.pl)
11:09:19 × lokesh1197 quits (~Thunderbi@14.139.128.52) (Ping timeout: 260 seconds)
11:20:22 lokesh1197 joins (~Thunderbi@14.139.128.52)
11:24:03 tremon joins (~tremon@83-85-213-108.cable.dynamic.v4.ziggo.nl)
12:04:01 rundown joins (~defjam@2a02:c7e:2807:b900:6c7a:2207:d06b:87cb)
12:29:29 <vrs> the new StatusBar module doesn't really like it when you do screen-specific stuff
12:29:42 liskin[m] joins (~liskinmat@2001:470:69fc:105::768)
12:29:53 <vrs> sure there's the screen-specific loggers in X.U.Loggers but withScreen itself is not exported
12:29:56 unclechu joins (~unclechu@2001:470:69fc:105::354)
12:30:58 <vrs> and it's not *hard* to lift and use it but it's also not documented at all (ok yeah it takes a screen parameter - which you're probably supposed to pass while instantiating the config. very different from multiPP)
12:31:36 <vrs> granted I was probably one of three users of the original dynamicbars
12:33:25 <vrs> (I feel like logging screen specific stuff is the only reason you'd have multiple status bars? just to show which screen is focused for example?)
12:54:40 × ectospasm quits (~ectospasm@user/ectospasm) (Quit: WeeChat 3.7.1)
13:32:40 vifon joins (~vifon@user/vifon)
13:34:23 <vifon> Hello. I've just updated xmobar to 0.45 and it seems it uses a new format to specify fonts. Previously it was possible to specify multiple fonts by separating them with ";" (inside the "font" setting, without using "additionalFonts"). Is it possibly to do so in the new format?
14:08:39 ectospasm joins (~ectospasm@user/ectospasm)
14:11:23 <Solid> vrs: I think any hints (or PRs) in that direction would be most welcome
14:12:00 <Solid> I reckon for most people the only screen-specific stuff they show is the workspaces on that monitor (at least that's the case for me) so that front could probably use some love
14:13:11 <Solid> vifon: I believe so; now you just separate them with commas: https://codeberg.org/xmobar/xmobar/src/branch/master/doc/quick-start.org#fonts
14:13:29 <Solid> (note: I'm just going by the documentation; xmobar 0.45+ doesn't build on musl so I'm still on 0.44)
14:17:37 <vifon> Oh wow, this syntax really is crazy.
14:17:48 <vifon> > It's also possible to specify a list of fonts, separating them by commas, so that they act as fallbacks when the preceding one is not able to display a given glyph. A bit confusingly, the styles and sizes come in reverse order after the families:
14:17:50 <lambdabot> <hint>:1:38: error: parse error on input ‘of’
14:17:50 <vifon> > Family 1, Family 2 Styles 2 Size 2, Styles 1 Size 1
14:17:52 <lambdabot> <hint>:1:9: error: parse error on input ‘,’
14:18:00 <vifon> Ouch, sorry, lambdabot.
14:18:07 <Solid> It's pretty horrible yeah
14:18:10 × jabuxas quits (~jabuxas@user/jabuxas) (Quit: WeeChat 2.8)
14:36:17 qbt joins (~qbt@user/edun)
14:51:32 wuqas joins (~user@2804:14c:8793:97d5:8230:49ff:fe14:1509)
14:58:02 <wuqas> can i remap default shortcuts in 'additionalKeysP'?
14:58:27 <geekosaur> yes
14:58:46 <wuqas> i tried something like ("M-<Enter>", "M-x") but it throws me an error
14:59:00 <geekosaur> oh, not like that, no
14:59:37 <wuqas> what should i read on documentation to try to understand that?
14:59:58 <wuqas> i usually rely on answers from the internet to do my things but i could not find any on remapping default shortcuts
14:59:59 <geekosaur> I thought you meant replacing the definition on one of the builtin keys
15:02:01 jao joins (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net)
15:02:26 <geekosaur> there's no shorthand for taking the definition from one and putting it on another, especially not like that because the defaults are already converted to `(KeyMask, KeySym)` format
15:04:18 <geekosaur> you could do something silly like `("M-x", (mod4Mask, xK_Enter) ! keys def def)` but that's error-prone and ugly
15:04:53 <geekosaur> I may have the lookup reversed. but i8n any case I don't recommend it
15:05:29 <geekosaur> easier is just to take the definition from https://github.com/xmonad/xmonad/blob/master/src/XMonad/Config.hs and respecifying it
15:06:43 <geekosaur> yeh, I reversed them. `("M-x", keys def def ! (mod4Mask, xK_Enter))`
15:09:53 <wuqas> hmmm
15:10:22 <wuqas> thanks for that, i will try to add 'keys :: Xconfig Layout' to my script
15:11:03 <geekosaur> keys :: XConfig Layout -> M.Map (KeyMask, KeySym) (X ())
15:11:24 <geekosaur> it's the accessor for the `keys` field in an XConfig
15:11:36 <wuqas> heheh
15:11:43 <wuqas> this stuff is rocket science
15:12:24 <geekosaur> nnm actually I missed a step since it's not the Map directly, it takes an XConfig parameter
15:12:59 <vrs> Solid: I have essentially completely custom logging set up due to how I manage my workspaces (I create sub-workspaces as pseudogroups because X.L.Groups doesn't play well with 2D navigation, among others) and in multiscreen setups, an important part of telling what screen I'm on is which of my xmobars has colors
15:13:01 <geekosaur> keys :: LayoutClass l a => XConfig (l a) -> (XConfig Layout -> M.Map (KeyMask, KeySym) (X ()))
15:13:10 <vrs> Solid: https://i.imgur.com/p9qriVe.png
15:13:26 <geekosaur> this is why AdditionalKeysP exists, it hides the ugly stuff
15:13:35 <geekosaur> (hence EZConfig)
15:13:49 <wuqas> yeah, neat solution for adding custom shortcuts
15:14:09 <wuqas> can i add Xconfig Layout to my 'main = xmonad $ def' in some way?
15:14:16 <wuqas> i am 102% lost
15:14:21 <vrs> Solid: I think the most annoying bits of my current config are 1. withScreen is not exported 2. dynamicworkspaceorder doesn't have insertBefore/After functionality
15:14:24 <geekosaur> no
15:14:27 <vrs> both of which I think I'll cut PRs for
15:14:41 <geekosaur> you already have an XConfig, it's the `def $ ...`
15:14:49 <wuqas> so i have to create something like `additionalKeysP`?
15:15:30 <geekosaur> `XConfig Layout` is what it becomes internally, your layout is wrapped in an existential so xmonad's guts don't have tpo deal with something whose type depends on what you put in your `layoutHook`
15:15:41 <vrs> vifon: huhhh that explains some of my recent troubles
15:16:09 <wuqas> but if i try to add ((modMask .|. shiftMask, xK_Return), spawn $ XMonad.terminal conf) -- %! Launch terminal | to my def $ it throws me an error
15:16:53 <geekosaur> you just want the `spawn` part
15:17:25 <vrs> wuqas: I tend to use removeKeysP
15:17:29 <geekosaur> the rest is the "raw" version of "M-S-<Enter>"
15:18:35 <Solid> vrs: that's a pretty interesting setup—certainly very far from what I've seen anyone of us use (hence, I suppose, the underdocumented/unexported functions :)
15:19:25 <geekosaur> it would be possible but unwieldy to write a `remapKeysP`, you'd need to write something that "reversed" the rewriting of "P" format to "raw"
15:19:26 <vrs> one of these days I'm gonna post my config...
15:19:38 <Solid> I'd ceratinly be interested
15:21:20 <Solid> geekosaur: should already be done with XMonad.Prelude.keymaskToString
15:21:45 <Solid> Er, keyToString
15:24:01 <geekosaur> oh, huh, right, and I even wrote the first version of that 🙃
15:24:10 <geekosaur> (part of the debug stuff)
15:24:53 <wuqas> how can i use removeKeysP? i am trying this: `removeKeysP`
15:24:54 <wuqas> [ ("M-<Enter>")
15:24:54 <wuqas> ]
15:25:10 <wuqas> but M-Enter still works...
15:25:40 <wuqas> and just in case i got it correctly, if i remove a shortcut with removeKeysP i can set a new shortcut on the removed key?
15:25:40 <geekosaur> I think, as shown in Config, that key is actually xK_Return aka <Return>
15:25:54 <geekosaur> you can as long as the removeKeysP comes first
15:26:08 <geekosaur> it processes them in order
15:26:13 <wuqas> uhul!
15:26:16 <wuqas> thanks >.<
15:27:07 <geekosaur> which also means if you're replacing a definition you don't need to remove it first, it'll overwrite the existing one if any
15:27:42 <wuqas> lol
15:27:58 <wuqas> the whole episode was <Enter> for <Return>
15:28:08 <Solid> hah
15:28:26 <geekosaur> old engineering workstations were what X11's key definitions were designed for, and Enter meant something different
15:29:07 <wuqas> this key definitions on xmonad.hs works like this: https://github.com/k0kubun/xremap?
15:29:25 lb9di is now known as evilop
15:29:30 <wuqas> i mean, they are the same or some are on a lower level than the other?
15:30:16 <geekosaur> higher level, but not much higher
15:30:31 <geekosaur> compare xmonad key bindings to kmonad
15:30:41 <wuqas> which? the xmonad or the github app i send?
15:30:46 <geekosaur> (which does for keys roughly what xmonad does for window management)
15:31:38 <geekosaur> xmonad's key definitions only affect other apps to the extent that they are "passive key grabs" so when the X server sees them it gives xmonad control and sends the key to it
15:31:50 <geekosaur> but you can't really remap keys for other applications this way
15:32:07 <geekosaur> (there are some unreliable hacks, but if you want that use kmonad or that app you pointed to)
15:32:16 <wuqas> interesting
15:32:28 <wuqas> there is any other $monad app out there?
15:32:51 <geekosaur> termonad which is a terminal emulator
15:35:13 <wuqas> ok, here is another one, i typed "startupHook = setDefaultCursor xC_cross" on my xmonad $ def
15:35:37 <wuqas> but i noticed that when i open some app, the default pointer cursor is the one being used
15:35:37 <Solid> I think stumpwm works like this where the regrab the keyboard/mouse whenever the focused window changes
15:35:47 <Solid> in order to faciliate app-specific bindings
15:36:24 <wuqas> oh! there is a lot of remappers out there no?
15:36:35 <wuqas> the cutest i found is: https://github.com/sezanzeb/input-remapper
15:36:51 <geekosaur> `setDefaultCursor`, strictly speaking, sets the cursor for the root window. many but not all apps will inherit that
15:36:57 <wuqas> but as far as i remember, it did not worked for me... but that was a while ago
15:37:13 <geekosaur> but an app whoich explicitly sets the arrow cursor will use that regardless of what you specify
15:37:19 <wuqas> can i set a major default cursor?
15:37:47 <wuqas> yeah... i got this with xterm and firefox
15:37:55 <wuqas> and emacs
15:38:21 <geekosaur> yeh, all of them specify. it's not at all uncommon
15:38:40 <geekosaur> emacs in particular is constantly changing cursors for me so it can't just inherit
15:39:19 <geekosaur> text bar over text, pointer over an empty area, double-headed arrows over modelines, etc.
15:40:35 <geekosaur> if you want more control over mouse cursors, use an app like lxappearance to set and maybe define a cursor theme
15:43:04 wuqas` joins (~user@191.177.51.98)
15:43:17 × wuqas quits (~user@2804:14c:8793:97d5:8230:49ff:fe14:1509) (Ping timeout: 246 seconds)
15:58:11 × wuqas` quits (~user@191.177.51.98) (Remote host closed the connection)
16:06:30 × matijja quits (~matijja@193.77.181.201) (Quit: ZNC 1.8.2 - https://znc.in)
16:06:59 matijja joins (~matijja@193.77.181.201)
16:08:11 <liskin> Solid: actually my setup might be similar to vrs's, al least the xmobar bits
16:09:02 <liskin> X.H.StatusBar works for me, but I don't use PP at all for the screen-specific bars, I just assemble the content manually
16:09:26 <liskin> Suppose X.something.Loggers might help, but the code works so why change it
16:09:59 wuqas joins (~user@2804:14c:8793:97d5:8230:49ff:fe14:1509)
16:11:25 <wuqas> i think i got the cursor by changing it directly on /usr/share/icons...
16:13:05 <geekosaur> okay, so you found a different way to manipulate cursor themes 🙂
16:13:13 <wuqas> heheh
16:13:32 <wuqas> all i wanted was to change the default for the icon 'cell' on Adwaita
16:13:53 <wuqas> so i had to copy and substitute default and left_ptr
16:14:18 <wuqas> but i installed the app you mentioned.. went to a webpage with icon packs but i could not find an elegant solution to the open crosshair i wanted
16:14:46 <geekosaur> that was why I mentioned "maybe define"
16:15:01 <geekosaur> I don't think it has a proper cursor theme editor, though
16:15:42 <wuqas> yeah.. i noticed that files do not have an .extension
16:16:05 <geekosaur> yeh, it just uses the names defined by X11
16:19:03 × minnie quits (~minnie@159.196.202.199) (Ping timeout: 256 seconds)
16:26:45 <Solid> liskin: oh, interesting; in that case you should just switch to *Loggers to have PRs for days :P
16:33:04 × matijja quits (~matijja@193.77.181.201) (Quit: ZNC 1.8.2 - https://znc.in)
16:33:45 matijja joins (~matijja@193.77.181.201)
16:52:37 × wuqas quits (~user@2804:14c:8793:97d5:8230:49ff:fe14:1509) (Remote host closed the connection)
17:43:50 × rundown quits (~defjam@2a02:c7e:2807:b900:6c7a:2207:d06b:87cb) (Quit: WeeChat 3.0)
17:57:09 Solitary joins (~Solitary@user/solitary)
18:11:41 × Solitary quits (~Solitary@user/solitary) (Ping timeout: 252 seconds)
18:13:13 Solitary joins (~Solitary@user/solitary)
18:54:14 × Solitary quits (~Solitary@user/solitary) (Ping timeout: 260 seconds)
18:59:09 Solitary joins (~Solitary@user/solitary)
19:18:45 × Solitary quits (~Solitary@user/solitary) (Ping timeout: 265 seconds)
19:22:42 Solitary joins (~Solitary@user/solitary)
19:36:42 × Solitary quits (~Solitary@user/solitary) (Quit: All work and no play makes Jack a dull boy.)
19:37:51 Solitary joins (~Solitary@user/solitary)
19:44:14 × lokesh1197 quits (~Thunderbi@14.139.128.52) (Quit: lokesh1197)
19:44:37 lokesh1197 joins (~Thunderbi@14.139.128.52)
19:53:40 × Solitary quits (~Solitary@user/solitary) (Quit: All work and no play makes Jack a dull boy.)
19:55:44 Solitary joins (~Solitary@user/solitary)
20:09:37 × Solitary quits (~Solitary@user/solitary) (Ping timeout: 268 seconds)
20:16:12 jabuxas joins (~jabuxas@user/jabuxas)
20:17:16 × jabuxas quits (~jabuxas@user/jabuxas) (Client Quit)
20:17:35 jabuxas joins (~jabuxas@user/jabuxas)
20:19:12 Solitary joins (~Solitary@user/solitary)
20:20:51 × jabuxas quits (~jabuxas@user/jabuxas) (Client Quit)
20:21:01 jabuxas joins (~jabuxas@user/jabuxas)
20:21:15 × jabuxas quits (~jabuxas@user/jabuxas) (Client Quit)
20:21:58 jabuxas joins (~jabuxas@user/jabuxas)
20:22:05 × lokesh1197 quits (~Thunderbi@14.139.128.52) (Ping timeout: 260 seconds)
20:33:48 × Solitary quits (~Solitary@user/solitary) (Quit: All work and no play makes Jack a dull boy.)
20:35:15 Solitary joins (~Solitary@user/solitary)
20:42:56 × bla quits (~bla@79.191.115.97.ipv4.supernova.orange.pl) (Ping timeout: 272 seconds)
20:51:17 × jabuxas quits (~jabuxas@user/jabuxas) (Quit: WeeChat 3.6)
20:52:04 jabuxas joins (~jabuxas@user/jabuxas)
20:55:50 hrberg joins (~quassel@171.79-160-161.customer.lyse.net)
20:56:35 <geekosaur> wonder if I should clean up and package this hack: https://github.com/geekosaur/xmonad.hs/blob/skkukuk/xmonad.hs#L300-L311 (comment is wrong, it works now but needs cleanup)
20:59:17 × Solitary quits (~Solitary@user/solitary) (Ping timeout: 265 seconds)
21:00:39 × qbt quits (~qbt@user/edun) (Quit: WeeChat 3.5)
21:11:07 × hrberg quits (~quassel@171.79-160-161.customer.lyse.net) (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)
21:11:27 <liskin> Solid: hacktoberfest is months away though
21:11:47 hrberg joins (~quassel@171.79-160-161.customer.lyse.net)
21:11:51 <liskin> Which reminds that they still didn't evaluate the maintainers activity it seems
21:12:05 <liskin> Or just ran out of t-shirts
21:15:39 <vrs> hmm what could be causing xmobar to suddenly ignore all font configuration?
21:15:57 <vrs> I seem to have apt-upgraded it, did they break something?
21:17:48 <liskin> Some might consider switching to pango as breaking everything :-)
21:18:22 <liskin> Especially those who use bitmap fonts and their distro doesn't ship OpenType versions of them
21:18:35 <liskin> (not sure if any distro does)
21:19:09 <vrs> I configured it using xft so far
21:19:30 <liskin> Yeah that code's gone
21:19:36 <vrs> reeeee
21:20:00 <vrs> I mean xft is janky but ignoring it without even so much as an error message?
21:21:07 <geekosaur> https://ircbrowse.tomsmeding.com/browse/lcxmonad?id=103843#trid103843
21:21:46 <geekosaur> read forward, there's some other nasty surprises
21:24:52 <vrs> such as the bar sizes being pretty off suddenly
21:28:58 <vrs> it's rendering to something smaller than the font size but reporting the old size to xmonad, afaict
21:34:39 <vrs> hm "white" now means "white" for <> and "grey" for anything else
21:34:52 <vrs> I don't like this
21:36:55 <geekosaur> xmobar doesn't report anything to xmonad
21:37:04 <geekosaur> what did you mean by that?
21:37:13 <geekosaur> well, it reports its strut size
21:38:03 <geekosaur> but that'll follow from some xmobar internal thing; I don't know how it picks its box size relative to the font, or even if it does or makes you pick a suitable font
21:38:33 <vrs> "a bit confusingly, the styles and sizes come in reverse order after the families" what the shit
21:38:40 <vrs> who cooked that up
21:38:46 <geekosaur> that was the main nasty surprise
21:38:54 <geekosaur> I was referring to
21:40:40 <vrs> and yeah I was referring to the strut size
21:41:35 <vrs> whatever it was reporting was inconsistent with what it was displaying
21:42:16 <geekosaur> I don't think it can pick a box size from the font size because either it has to be able to parse and make sense of font specification strings instead of pushing that off onto pango, or it has to actually render some example text and check the resulting size
21:43:08 <vrs> yeah I ended up fixing it by using TopH/BottomH instead of TopL/BottomL which I was using previously
21:48:49 <vrs> seriously though font string specifications shouldn't take inspiration from heptapod A
22:02:12 mc47 joins (~mc47@xmonad/TheMC47)
22:08:28 × hrberg quits (~quassel@171.79-160-161.customer.lyse.net) (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)
22:14:09 hrberg joins (~quassel@171.79-160-161.customer.lyse.net)
22:21:07 minnie joins (~minnie@159.196.202.199)
22:28:29 Solitary joins (~Solitary@user/solitary)
22:36:26 × Solitary quits (~Solitary@user/solitary) (Quit: All work and no play makes Jack a dull boy.)
22:39:00 Solitary joins (~Solitary@user/solitary)

All times are in UTC on 2023-01-15.