Home liberachat/#xmonad: Logs Calendar

Logs on 2022-08-15 (liberachat/#xmonad)

00:01:25 mvk joins (~mvk@2607:fea8:5ce3:8500::a1ec)
00:05:31 <geekosaur> that implies that xmonad was still running, since the X session would exit when xmonad does
00:05:40 <geekosaur> so what's your xmonad.hs?
00:06:06 × vreahli10 quits (~vreahli@2601:647:5700:1380:7900:ab45:4951:dbee) (Ping timeout: 252 seconds)
00:07:35 <vreahli> Current xmonad.hs here: https://gist.github.com/vreahli/00231e22e6a65feaa9c4db6c17d25677 (the three lines from the starter tutorial.)
00:08:15 <geekosaur> huh. that should not crash. how do you know that the process dies?
00:08:48 <vreahli> I guessed xmonad stopped because `killall xmonad` couldn't find a process, however `killall Xorg` was able to get rid of the blank screen and return me to the virtual console
00:09:11 <vreahli> I'm not certain the process died, but it's a guess '=D
00:09:32 <geekosaur> xmonad will have replaced itself by a process named xmonad-x86_64-linux (or whatever arch and system you're on) which is the compiled config
00:09:58 <geekosaur> what happens if you press alt-shift-return? (make sure xterm is installed)
00:11:23 vreahli86 joins (~vreahli@2601:647:5700:1380:7900:ab45:4951:dbee)
00:11:41 <geekosaur> https://paste.tomsmeding.com/afWxOZ2v
00:12:13 × vreahli quits (~vreahli@2601:647:5700:1380::59e1) (Quit: Client closed)
00:13:33 <vreahli86> Ah - good news - `~/.cache/xmonad/xmonad-x86_64-linux` is alive
00:14:35 <vreahli86> alt+shift+enter unfortunately doesn't do anything. FWIW, there's also no cursor present.
00:15:01 <geekosaur> that sounds odd
00:15:11 <vreahli86> goddangit - alt+shift+enter works! Apologies!
00:15:28 <geekosaur> again, is xterm installed? these days it's usually not, and overriding the terminal is one of the first things the tutorial has you do
00:15:39 <geekosaur> okay
00:16:09 <vreahli86> Yup! Xterm is installed, sorry about that! I kept using i3 shortcuts without thinking about it.
00:16:45 <geekosaur> alt-/ shows a cheatsheet if you need a reminder 🙂
00:16:49 <vreahli86> Thank you for the help! FWIW I've been stuck on this for a few hours '=D
00:16:54 <vreahli86> I will never forget that one :D
00:17:12 <geekosaur> sorry alt-shift-/ aka alt-?
00:17:35 <vreahli86> It's all good, I got the cheat sheet up :)
01:04:02 × vreahli86 quits (~vreahli@2601:647:5700:1380:7900:ab45:4951:dbee) (Ping timeout: 252 seconds)
01:12:53 twiclo1 joins (~twiclo@mail.twil.cx)
01:14:45 <twiclo1> I have ewmhFullscreen enabled. When I fullscreen a youtube video it takes up the whole monitor. Unfortunately it's not working with an old java game client. If I enable fullscreen the window takes up the whole monitor but the actual game doesn't fill to fit its window. This does work under cinnamon
01:20:21 × noex quits (~null@user/noex) (Quit: :q!)
01:39:12 × mvk quits (~mvk@2607:fea8:5ce3:8500::a1ec) (Ping timeout: 244 seconds)
02:04:23 × banc- quits (banc@gateway/vpn/airvpn/banc) (Ping timeout: 255 seconds)
02:25:02 banc joins (banc@gateway/vpn/airvpn/banc)
02:27:35 × td_ quits (~td@94.134.91.250) (Ping timeout: 252 seconds)
02:29:18 td_ joins (~td@muedsl-82-207-238-255.citykom.de)
02:51:35 × gdd1 quits (~gdd@2001:470:1f13:187:2167:5afb:418e:21fa) (Ping timeout: 268 seconds)
02:52:11 gdd1 joins (~gdd@2001:470:1f13:187:e8a5:fbff:fe29:42f5)
02:56:55 rekahsoft joins (~rekahsoft@bras-base-wdston4533w-grc-02-142-113-160-8.dsl.bell.ca)
02:56:56 × rekahsoft quits (~rekahsoft@bras-base-wdston4533w-grc-02-142-113-160-8.dsl.bell.ca) (Remote host closed the connection)
03:01:38 rekahsoft joins (~rekahsoft@bras-base-wdston4533w-grc-02-142-113-160-8.dsl.bell.ca)
03:18:24 × steve_ quits (~steve@ool-182c2b80.dyn.optonline.net) (Ping timeout: 244 seconds)
03:41:11 mvk joins (~mvk@2607:fea8:5ce3:8500::a1ec)
03:55:26 steve_ joins (~steve@ool-182c2b80.dyn.optonline.net)
03:55:57 trillpoli[m]1 joins (~trillpoli@2001:470:69fc:105::da4e)
04:52:57 × rekahsoft quits (~rekahsoft@bras-base-wdston4533w-grc-02-142-113-160-8.dsl.bell.ca) (Ping timeout: 244 seconds)
05:02:03 × Florian[m]1 quits (~qe7ftcyrp@2001:470:69fc:105::2:4ea8) (*.net *.split)
05:02:03 × thaumavorio quits (~thaumavor@thaumavor.io) (*.net *.split)
05:02:03 × burp quits (~quassel@hedgewars/sysadmin/burp) (*.net *.split)
05:02:14 burp joins (~quassel@hedgewars/sysadmin/burp)
05:03:21 thaumavorio joins (~thaumavor@thaumavor.io)
05:06:36 Florian[m]1 joins (~qe7ftcyrp@2001:470:69fc:105::2:4ea8)
05:13:55 × twiclo1 quits (~twiclo@mail.twil.cx) (Ping timeout: 268 seconds)
05:16:58 × Solid[m] quits (~slot-matr@2001:470:69fc:105::1:a84) (*.net *.split)
05:16:58 × Neo[Envs][m] quits (~neovoiden@2001:470:69fc:105::2:b07) (*.net *.split)
05:16:59 × ChaoticMist[m] quits (~gilganixm@2001:470:69fc:105::3d09) (*.net *.split)
05:16:59 × craige[m] quits (~craigemcw@2001:470:69fc:105::35f1) (*.net *.split)
05:16:59 × cdepillabout[m] quits (~cdepillab@2001:470:69fc:105::3d3) (*.net *.split)
05:16:59 × davean quits (~davean@davean.sciesnet.net) (*.net *.split)
05:16:59 × FatBoyXPC quits (~FatBoyXPC@user/fatboyxpc) (*.net *.split)
05:16:59 × jsoo quits (~znc@irc.refl.club) (*.net *.split)
05:17:53 FatBoyXPC joins (~FatBoyXPC@user/fatboyxpc)
05:18:00 cdepillabout[m] joins (~cdepillab@2001:470:69fc:105::3d3)
05:18:17 jsoo joins (~znc@irc.refl.club)
05:18:25 davean joins (~davean@davean.sciesnet.net)
05:21:05 Neo[Envs][m] joins (~neovoiden@2001:470:69fc:105::2:b07)
05:21:29 Solid[m] joins (~slot-matr@2001:470:69fc:105::1:a84)
05:23:11 ChaoticMist[m] joins (~gilganixm@2001:470:69fc:105::3d09)
05:23:14 craige[m] joins (~craigemcw@2001:470:69fc:105::35f1)
05:23:30 × jao quits (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) (Ping timeout: 264 seconds)
05:54:44 × Lears quits (~Leary]@122-58-224-198-vdsl.sparkbb.co.nz) (Ping timeout: 268 seconds)
05:59:45 Guest3741 joins (~Guest37@2401:4900:1c21:e9d:ee5:cdce:6440:7ff6)
06:00:25 × Guest3741 quits (~Guest37@2401:4900:1c21:e9d:ee5:cdce:6440:7ff6) (Client Quit)
06:32:07 dschrempf joins (~dominik@070-207.dynamic.dsl.fonira.net)
06:43:57 × steve_ quits (~steve@ool-182c2b80.dyn.optonline.net) (Ping timeout: 268 seconds)
07:42:53 × Hash quits (~Hash@tunnel686959-pt.tunnel.tserv15.lax1.ipv6.he.net) (Quit: ZNC - https://znc.in)
07:50:03 benin0 joins (~benin@183.82.206.125)
08:03:02 chomwitt joins (~chomwitt@2a02:587:dc15:5e00:1cf8:31f1:edb9:8492)
08:41:50 Hash joins (~Hash@tunnel686959-pt.tunnel.tserv15.lax1.ipv6.he.net)
08:49:41 cfricke joins (~cfricke@user/cfricke)
08:58:44 trillpoli[m]1 parts (~trillpoli@2001:470:69fc:105::da4e) ()
09:47:14 [Leary] joins (~Leary]@122-58-224-198-vdsl.sparkbb.co.nz)
10:05:27 <zim0369[m]1> I need help with this code block:... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/14508e951ab2b078a1efee90cfdbbdbb72bb7d59)
10:05:31 <zim0369[m]1> geekosaur:
10:08:55 <zim0369[m]1> I want to edit this submap to do:... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/25223ac5b155f2e95c7462f0efd5b7626a7cf167)
10:09:35 <zim0369[m]1> M-o a sends the focus to workspace 1... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/9dacd8dac4a0fe87c1f250eb1215e651347e95b0)
10:15:01 <zim0369[m]1> * `M-o a` sends the focus to workspace 1... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/bf9e5886f2a176c2022a580bb321460419c86c81)
10:16:47 × dschrempf quits (~dominik@070-207.dynamic.dsl.fonira.net) (Quit: WeeChat 3.6)
10:17:44 dschrempf joins (~dominik@070-207.dynamic.dsl.fonira.net)
10:22:11 jao joins (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net)
11:06:38 vyorkin[m] joins (~vyorkinma@2001:470:69fc:105::a5e)
11:27:29 × bubbler quits (~bubbler@2a02:810d:8cc0:3fa0:28f1:2f9d:d0e4:6494) (Quit: WeeChat 3.5)
11:36:48 × dschrempf quits (~dominik@070-207.dynamic.dsl.fonira.net) (Quit: WeeChat 3.6)
11:39:49 justache joins (~justache@user/justache)
12:12:33 × zawaken quits (~zawaken@user/zawaken) (Quit: ZNC 1.9.x-nightly-20220808-32d4a4d5 - https://znc.in)
12:14:33 × justache quits (~justache@user/justache) (Quit: ZNC 1.8.2 - https://znc.in)
12:14:41 zawaken joins (~zawaken@user/zawaken)
12:15:07 justache joins (~justache@user/justache)
12:16:43 Alok[m] uploaded an image: (77KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/QeqHUkwbnDCZotevUNFrvQbJ/image.png >
12:17:16 <Alok[m]> how can I make a mod + f toggle keybinding to toggle fullscreen. I am using ewmh fullscreen
12:25:50 × mvk quits (~mvk@2607:fea8:5ce3:8500::a1ec) (Ping timeout: 255 seconds)
12:30:00 <geekosaur> Alok[m], the application has to do the fullscreening
12:30:19 <geekosaur> we could force the window fullscreen but there's no guarantee the app would follow suit
12:30:32 <Alok[m]> how does other wms handle this?
12:30:55 <geekosaur> unless you mean switching temporarily to Full layout, in which case look at https://hackage.haskell.org/package/xmonad-contrib-0.17.0/docs/XMonad-Layout-ToggleLayouts.html
12:31:07 <geekosaur> which is not quite the same thing as EWMH fullscreen
12:35:48 <geekosaur> there are differences between this and ewmh fullscreen. if you press F11 in a browser ewmh fullscreen is used, and since the browser is initiating the fullscreen it can do things like hide the titlebar and address bar
12:44:36 <Alok[m]> <geekosaur> "unless you mean switching..." <- I mean overlapping all windows
12:46:26 <geekosaur> then you want the Full layout and you want to look at the module I indicated
12:46:40 <geekosaur> just don't expect it to behave like pressing F11
13:17:06 <geekosaur> zim0369[m]1, didn''t you ask for that code block to do what it currently does?
13:17:22 <geekosaur> (which I'm not even sure of, I don't recall shiftRL any more)
13:20:25 <geekosaur> [ ((0,k),windows $ W.greedyView i) | (i,k) <- zip myWorkspaces [xK_a .. xK_i] ]
13:35:49 <zim0369[m]1> <geekosaur> "zim0369, didn''t you ask for..." <- Umm.. Yea.. But
13:36:09 <zim0369[m]1> > <@zim0369:matrix.org> I want to edit this submap to do:... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/2bace14c1ec57dc7e02d4eda667bba701645efed)
13:36:11 <lambdabot> <hint>:1:1: error: parse error on input ‘<@’
13:36:32 <quarkQuark[m]111> Alok: I think XMonad.Layout.MultiToggle is what you're looking for. Here's the relevant part of my config: https://paste.tomsmeding.com/unSQP0XI
13:36:52 <geekosaur> MultiToggle is the same as Toggle but harder to use because it supports multiple toggles
13:37:05 <geekosaur> I pointed to single-toggle, which is simpler
13:37:53 <geekosaur> zim0369[m]1, so I gave you a replacement list comprehension that does what you want
14:24:41 Alok[m] uploaded an image: (7KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/ykeJvDOgLGwtaaZaPEQTMVrg/image.png >
14:25:50 <Alok[m]> is it correct?
14:27:32 <geekosaur> presuming you also have the layout part to receive the message, yes
14:28:12 <geekosaur> myLayout = toggleLayout Full $ (rest of your layout here)
14:28:30 <geekosaur> or however you have your layouts set up
14:34:13 <Alok[m]> <geekosaur> "myLayout = toggleLayout Full..." <- what is `toggleLayout Full`?
14:34:27 Alok[m] uploaded an image: (77KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/HsxrbLEXMLcGaQVhQqVWcegK/image.png >
14:34:29 <Alok[m]> I have it like this
14:34:48 <Alok[m]> <geekosaur> "presuming you also have the..." <- ummm no probably
14:36:40 <geekosaur[m]> Sorry I'll have to get back to my desktop first
14:38:32 <geekosaur[m]> But `toggleLayout Full` is the part you need for the message to work
14:43:54 <Alok[m]> <geekosaur[m]> "But `toggleLayout Full` is the..." <- I can't find what `toggleLayout` is
14:44:14 <Alok[m]> I have imported that package though
14:44:28 <geekosaur> did you read the page I sent? https://hackage.haskell.org/package/xmonad-contrib-0.17.0/docs/XMonad-Layout-ToggleLayouts.html
14:44:33 <geekosaur> it shows how to use it
14:44:55 <geekosaur> simply importing a package in Haskell only makes names available for use, it doesn't actually do anything
14:46:02 <geekosaur> `myLayout = smartBorders $ toggleLayout Full $ tiled ||| Mirror tiled ||| Full`
14:46:11 <geekosaur> (leave the following `where` clause as is)
14:49:47 <Alok[m]> geekosaur: there's no variable `toggleLayout`
14:49:56 <geekosaur> you might at some point learn how to use a pastebin, it's hard to copy from an image 🙂
14:49:59 Alok[m] uploaded an image: (12KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/mhxCMfNLTPSInwYMDzIOGJgn/image.png >
14:50:00 × justache quits (~justache@user/justache) (Remote host closed the connection)
14:50:01 Alok[m] uploaded an image: (70KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/OrBPEusXEXlhTCzIjgWtbBEF/image.png >
14:50:13 justache joins (~justache@user/justache)
14:50:21 <geekosaur> sorry, it's `toggleLayouts`
14:50:31 <Alok[m]> geekosaur: oh ok sorry
14:50:43 <geekosaur> exampple from the webpage
14:50:45 <geekosaur> myLayout = toggleLayouts Full (Tall 1 (3/100) (1/2)) ||| etc..
14:50:45 <geekosaur> main = xmonad def { layoutHook = myLayout }
14:51:01 <geekosaur> because it could be more than one conceivably
14:51:13 <geekosaur> using ||| to separate them just as with the main layout
14:51:23 <Alok[m]> yes, I did exactly the same
14:51:41 <Alok[m]> Should I send full config?
14:54:30 <geekosaur> and error message if any, yes
14:54:30 <Alok[m]> ok it changes layout, but nothing happens to the windows lol
14:55:03 <geekosaur> how do you know it changed layout if nothing happens to the windows?
14:55:20 <Alok[m]> I am expecting the current window to go full screen
14:55:37 <Alok[m]> I'm not sure if I am doing the right thing
14:55:37 <Alok[m]> with bar hidden and no space on edges
14:56:10 <Alok[m]> * full screen, when theres a single window
14:56:59 <Alok[m]> * full screen, when there's only one window. If multiple windows, it works almost fine, by making the focused window fullscreen but doesn't overlap the bar)
14:57:48 <geekosaur> yes, you need to add something for the bar to toggle off because that's separate
14:57:58 <geekosaur> where is `avoidStruts` in your config?
14:58:30 <geekosaur> I suspect you have `layout = avoidStruts myLayout` somewhere?
15:01:04 <Alok[m]> there's no avoidStruts
15:01:36 <Alok[m]> https://batbin.me/unthorny
15:02:51 <geekosaur> huh. I wonder how the bar is visible at all, then. must be on top instead of below
15:03:43 <geekosaur> (which means it's overlapping windows instead of displaying below/above them)
15:03:44 <geekosaur> do you have an xmobar config?
15:04:39 <geekosaur> `myLayout = smartBorders $ toggleLayouts Full $ avoidStruts $ tiled ||| Mirror tiled ||| Full`
15:04:50 <geekosaur> and make sure xmobar is set with `lowerOnStart = True`
15:05:19 <Alok[m]> geekosaur: it was on top, I changed it to below lol. I was following official xmonad tutorial
15:05:30 <Alok[m]> geekosaur: Ye, lemme send
15:05:56 <geekosaur> not lower as in bottom of the screen, lower as in "below all other windows"
15:06:10 <geekosaur> instead of overlapping them because it's over them
15:06:56 <Alok[m]> https://batbin.me/overurbanization
15:07:09 <Alok[m]> geekosaur: oh no
15:07:43 <Alok[m]> sometimes it is above them sometimes below, idk how but yeah I've noticed that too
15:12:33 <geekosaur> right, without the `lowerOnStart` it'll be wherever it was relative to other windows when it launched, so it'll float around. `avoidStruts` and `lowerOnStart` should make it behave
15:13:18 <geekosaur> and the modified `myLayout` aith `avoidStruts` should stop it from overlapping when `Full` is toggled on, once `lowerOnStart` is set
15:17:06 <Alok[m]> how to fix ;(
15:17:36 <geekosaur> ?
15:17:44 <geekosaur> didn't I just tell you?
15:19:12 <geekosaur> first, edit your xmobar config and add `, lowerOnStart = True` to it, just after the first line
15:19:39 <geekosaur> second, change your xmonad config the way I said earlier
15:19:49 <geekosaur> [15 15:04:38] <geekosaur> `myLayout = smartBorders $ toggleLayouts Full $ avoidStruts $ tiled ||| Mirror tiled ||| Full`
15:31:26 × catman quits (~catman@user/catman) (Quit: WeeChat 3.6)
15:34:34 catman joins (~catman@user/catman)
15:47:47 × cfricke quits (~cfricke@user/cfricke) (Ping timeout: 248 seconds)
15:51:35 cfricke joins (~cfricke@user/cfricke)
15:53:59 logzet joins (~quassel@2001:9e8:e518:c800:dabb:c1ff:fed3:a1b9)
15:57:20 × catman quits (~catman@user/catman) (Quit: WeeChat 3.6)
15:59:51 catman joins (~catman@user/catman)
16:04:11 × cfricke quits (~cfricke@user/cfricke) (Quit: WeeChat 3.6)
16:31:05 × chomwitt quits (~chomwitt@2a02:587:dc15:5e00:1cf8:31f1:edb9:8492) (Ping timeout: 255 seconds)
16:46:48 steve_ joins (~steve@ool-182c2b80.dyn.optonline.net)
17:16:42 chomwitt joins (~chomwitt@2a02:587:dc15:5e00:ece7:3fb3:7c32:eccf)
17:24:40 diep joins (~diep@2a01:cb11:2d7:4a00:a13f:e40c:c4e8:736c)
17:25:41 mvk joins (~mvk@2607:fea8:5ce3:8500::a1ec)
17:46:33 × benin0 quits (~benin@183.82.206.125) (Quit: The Lounge - https://thelounge.chat)
18:32:05 <zim0369[m]1> <geekosaur> "[ ((0,k),windows $ W.greedyView..." <- not exactly what I'm trying to do
18:33:23 zim0369[m]1 sent a hs code block: https://libera.ems.host/_matrix/media/r0/download/libera.chat/3cc62d6066da8a53f6df89ac9ed1ef4db7d91260
18:33:50 <zim0369[m]1> but I prolly would have to do something like a nested submap
18:34:57 <geekosaur[m]> No, that would replace the existing one since they both bind the same keys
18:35:27 <geekosaur[m]> But I guess I don't understand how you're expecting to have both
18:36:02 <zim0369[m]1> no I want the last one to be under a "m" submap instead of using shift
18:36:40 <zim0369[m]1> `M-o m a` to move a window to workspace 1 and take focus to workspace 1
18:36:40 <zim0369[m]1> while `M-o a` to just take focus to workspace 1
18:36:59 <geekosaur[m]> Then yes, you need another submap
18:39:40 zim0369[m]1 sent a hs code block: https://libera.ems.host/_matrix/media/r0/download/libera.chat/4f1cbbacaabbbc547ad568d5df28052553ba46f3
18:42:16 <geekosaur> no, that's not quite right. the list comprehension produces a complete list, you need to append to it with ++, not just add an item with a comma
18:42:17 <zim0369[m]1> or maybe this?... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/1ba9aa96cd556474deb78c535aea92f40c4cee2a)
18:44:51 <geekosaur> https://paste.tomsmeding.com/h12iePrn
18:45:27 <geekosaur> (I haven't syntax checked that but I think everything matches up)
18:47:53 <geekosaur> a comma inside a list comprehension introduces a filter condition, not a new list item
18:52:02 <zim0369[m]1> geekosaur: I couldn't quite understand this
18:52:04 <zim0369[m]1> but your implementation works flawlessly
18:52:21 <zim0369[m]1> I'm rather convinced with the use of `++` and why it didn't come to my mind
19:04:49 <zim0369[m]1> but doesn't work
19:04:50 <zim0369[m]1> I'm trying to combine this with the previous implementation:... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/6ecf610b50f32bbe88849a6b05a602a7c8fed02c)
19:05:51 <geekosaur> I think you need to pastebin your whole xmonad.hs, or at least the whole keybindings part
19:07:51 × sogens quits (~sogens@211.30.173.20) (Ping timeout: 252 seconds)
19:08:32 <geekosaur> tbh I tried checking it locally and had an unmatched brace somewhere, but I had to make several edits because my workspace list is named differently and I don't have shiftRL
19:09:55 sogens joins (~sogens@211.30.156.66)
19:10:59 <geekosaur> missed a line when testing in ghci, maybe it's okay as is
19:11:30 <zim0369[m]1> https://paste.tomsmeding.com/b5iF3uJf
19:14:10 <geekosaur> not sure that would work as written, since additionalKeysP doesn't control the submap you manually created
19:15:42 <geekosaur> https://paste.tomsmeding.com/egfv9ETB
19:16:35 <geekosaur> you would have to have additionalKeysP create the submaps for you, by defining the keys as e.g. "M-o a"
19:18:43 <zim0369[m]1> oh just had to add it inside the submap list
19:18:47 <zim0369[m]1> nice
19:18:48 <geekosaur> right
19:19:15 <zim0369[m]1> sometimes I feel like I get the smartest ideas about/for tiling wms
19:19:32 isaacthekind[m] uploaded an image: (120KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/NldBAIkawKMgvksDkITlbRQq/image.png >
19:19:33 <isaacthekind[m]> sorry to butt in, i have this xmobar config. but no matter what i do to it, it doesn't seem to change, the status bar just always looks the same. tried rebooting, building, recompiling xmonad. not sure what to do. this is my current file:
19:20:50 <geekosaur> not sure I can help much since I don't really do xmobar. I think Solid has some clue about this but don't know if he's about
19:22:32 <isaacthekind[m]> any chance you wanna show what your status bar looks like? iirc you said you built it just using xmonad?
19:22:40 <zim0369[m]1> isaacthekind[m]: why don't u put your xmobar config in .xmobarrc instead?
19:22:41 <isaacthekind[m]> and yeah hopefully solid shows up, i'm stuck
19:22:54 <isaacthekind[m]> zim0369[m]1: vastly prefer working with haskell
19:23:15 <zim0369[m]1> oh
19:23:43 <zim0369[m]1> then I can't help with this way of configuring things. I've configured xmobar a lot before with the traditional way.
19:24:30 <isaacthekind[m]> that's ok, i am patient, i'll work on xmonad for now
19:25:22 <geekosaur> my status bar isn't xmobar
19:25:51 <geekosaur> it's mate-panel, using xmonad-log-applet via dbus
19:28:02 <geekosaur> I did find Solid's own xmobar config, dunno how much that might help you: https://gitlab.com/slotThe/dotfiles/-/blob/master/xmobar/.config/xmobarrc/src/xmobarrc.hs
19:32:06 <geekosaur> you probably want to install it under a name different from "xmobar" so you don't run the standard one with its defaults instead
19:32:31 <isaacthekind[m]> could you clarify that last bit
19:33:03 <isaacthekind[m]> the file is somewhat helpful, but it's not the haskell syntax part that's weird. it's that i think i'm not calling it properly elsewhere and it's defaulting to whatever the base config is.
19:33:16 <isaacthekind[m]> that's at least what it looks like, without knowing what's happening under the hood
19:33:53 <geekosaur> right, so when yiou build the xmobar config, are you building it separately like Solid is or are you passing your .hs as a parameter?
19:35:02 <isaacthekind[m]> no, i'm doing the first, i didn't realize the second was possible
19:35:17 <geekosaur> so what is the name of the result?
19:35:56 <isaacthekind[m]> i'm really confused with that kinda stuff. like i don't really understand any of the compilation things, i just know how to write the actual haskell code and run it in a cmd line.
19:36:02 <isaacthekind[m]> like what is the "result"
19:36:27 <isaacthekind[m]> i can show my basic structure here if that helps.
19:36:29 <geekosaur> when you compile a config like this (or an xmonad.hs) it produces an executable
19:36:54 <isaacthekind[m]> oh
19:36:58 <geekosaur> https://gitlab.com/slotThe/dotfiles/-/blob/master/xmobar/.config/xmobarrc/xmobarrc.cabal <-- Solid calls his "xmobar" and then uses hiw $PATH to make sure the correct "xmobar" is run
19:37:01 <isaacthekind[m]> like the executable name specified in the cabal
19:37:09 <geekosaur> *his
19:37:38 <isaacthekind[m]> mine is "xmobad"
19:37:49 <geekosaur> ok, so that shouldn't collide
19:38:12 isaacthekind[m] uploaded an image: (123KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/LJkqjFyWFUrlzpTVIzAGJpNX/image.png >
19:38:14 <isaacthekind[m]> this is my dir structure
19:38:20 <isaacthekind[m]> then this is how i call it in xmonad.hs
19:38:38 isaacthekind[m] uploaded an image: (515KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/JTEKSvsALonfVkTZulZgizDg/image.png >
19:38:41 <isaacthekind[m]> code is a bit cluttered atm
19:39:17 <geekosaur> directory structure doesn't really matter here, the questions are (a) is it actually getting rebuilt? (b) where is the executable getting put?
19:40:27 <isaacthekind[m]> yeah i'm not sure how to approach those questions
19:40:39 <isaacthekind[m]> aside from just spending a bunch of time learning cabal (which i do intend to do at some point)
19:44:46 <geekosaur> when you make changes to your xmobar.hs, do you do anything else afterward?
19:45:33 <isaacthekind[m]> not consistently, cause i can't figure out what works. i've tried building after, installing, updating, recompiling and restarting xmonad
19:45:38 <isaacthekind[m]> none of those seemed to do it
19:45:51 <geekosaur> "cabal install" in the same directory as your xmobar.hs
19:46:02 <geekosaur> (no package name)
19:48:36 <geekosaur> after that, presuming you're using `withEasySB`, you press `mod-q` to restart xmonad and xmobar/xmobad
19:52:03 <geekosaur> hm, XMonadLog. so you're doing it the old way with a pipe? then `mod-q` should work. but if you're using `withEasySB` you probably aren't using a pipe to communicate with xmobad and things won't work well
19:53:51 <isaacthekind[m]> hmm
19:53:54 <isaacthekind[m]> no effect
19:54:18 <isaacthekind[m]> idx about pipe, i haven't been able to play with it at all yet cause i can't get it to respond to config changes
19:54:32 <isaacthekind[m]> s/idx/idk/
20:04:54 <isaacthekind[m]> also one separate q wrt xmonad. i notice i have a case where i can use ++ or ^++^, i've never seen the latter before, and i can't find any docs on it. could someone explain what that is
20:07:40 <geekosaur> I have no idea, it's not a standard operator or one we define?
20:08:17 <isaacthekind[m]> https://github.com/altercation/dotfiles-tilingwm/blob/master/.xmonad/xmonad.hs
20:08:26 <isaacthekind[m]> check line 1204
20:08:37 <isaacthekind[m]> he uses a bunch of them around there
20:13:09 <geekosaur> https://hackage.haskell.org/package/xmonad-contrib-0.17.0/docs/XMonad-Util-NamedActions.html#v:-94--43--43--94-
20:13:20 <geekosaur> it apparently combines named keymaps
20:13:40 <isaacthekind[m]> ohh i see
20:13:42 <geekosaur> (the `Submap "name here" (` things)
20:14:27 <isaacthekind[m]> i bet the list it's producing is actually not of the right type when i use the normal concat
20:14:28 <isaacthekind[m]> thank you for finding that
20:14:55 × Forkk_ quits (~forkk@li926-228.members.linode.com) (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
20:15:00 <geekosaur> it's a wrapped list that has to be combined specially, I think
20:18:05 Forkk joins (~forkk@li926-228.members.linode.com)
20:20:50 <isaacthekind[m]> ok noted
20:21:35 noex joins (~null@user/noex)
20:42:39 × logzet quits (~quassel@2001:9e8:e518:c800:dabb:c1ff:fed3:a1b9) (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)
20:58:39 × noex quits (~null@user/noex) (Quit: :q!)
21:06:07 × diep quits (~diep@2a01:cb11:2d7:4a00:a13f:e40c:c4e8:736c) (Remote host closed the connection)
21:08:28 <isaacthekind[m]> Solid: if you're around later today to answer a q or two about using a haskell xmobar config, that would be killer.
22:16:33 sagax joins (~sagax_nb@user/sagax)
22:39:31 × steve_ quits (~steve@ool-182c2b80.dyn.optonline.net) (Ping timeout: 248 seconds)
22:46:50 noex joins (~null@user/noex)
22:50:26 h7x4[m] joins (~h7x4naniw@2001:470:69fc:105::1:f33d)
23:25:47 × noex quits (~null@user/noex) (Quit: :q!)
23:57:28 tikosh joins (~tikosh@2601:201:301:c5e0::a254)
23:58:43 <tikosh> I attempt to have three instances of xmobar on my xmonad system. but every time I compile i get variable not in scope xmproc
23:59:11 <tikosh> I feel like an idiot sometimes interacting to make haskell code especially as a novice

All times are in UTC on 2022-08-15.