Logs: liberachat/#xmonad
| 2021-08-12 15:11:48 | <geekosaur> | the example is toggling between qwerty and dvorak |
| 2021-08-12 15:21:21 | <Solid> | huh, that's a really neat module |
| 2021-08-12 15:30:56 | ← | By_JumperX4[m] parts (~byjumperx@2001:470:69fc:105::a2e) () |
| 2021-08-12 15:34:30 | × | seschwar quits (~seschwar@user/seschwar) (Quit: :wq) |
| 2021-08-12 15:35:16 | × | mc47 quits (~mc47@xmonad/TheMC47) (Read error: Connection reset by peer) |
| 2021-08-12 15:57:57 | <unrooted> | geekosaur: what to do then? |
| 2021-08-12 15:59:40 | × | wonko quits (~wjc@62.115.229.50) (Ping timeout: 272 seconds) |
| 2021-08-12 16:02:56 | <geekosaur> | unrooted, you can look into how to have lightdm autostart dbus with the session, or you can have the xmonad session run under dbus-launch |
| 2021-08-12 16:03:23 | <unrooted> | okie |
| 2021-08-12 16:09:05 | → | seschwar joins (~seschwar@user/seschwar) |
| 2021-08-12 16:29:54 | × | geekosaur quits (~geekosaur@xmonad/geekosaur) (Killed (NickServ (GHOST command used by allbery_b))) |
| 2021-08-12 16:29:54 | → | allbery_b joins (~geekosaur@xmonad/geekosaur) |
| 2021-08-12 16:29:57 | allbery_b | is now known as geekosaur |
| 2021-08-12 17:23:53 | → | mc47 joins (~mc47@xmonad/TheMC47) |
| 2021-08-12 17:23:54 | × | mc47 quits (~mc47@xmonad/TheMC47) (Remote host closed the connection) |
| 2021-08-12 17:29:51 | → | denbrahe[m] joins (~denbrahem@2001:470:69fc:105::19c0) |
| 2021-08-12 17:35:01 | × | geekosaur quits (~geekosaur@xmonad/geekosaur) (Remote host closed the connection) |
| 2021-08-12 17:35:26 | → | geekosaur joins (~geekosaur@xmonad/geekosaur) |
| 2021-08-12 17:50:17 | → | wonko joins (~wjc@62.115.229.50) |
| 2021-08-12 18:02:10 | <elonsroadster[m]> | <geekosaur> "the example is toggling between..." <- geekosaur I think you're still misunderstanding. He was not asking to toggle between qwerty and Dvorak, he was asking to activate a different set of key bindings that just so happened to have the names qwerty and Dvorak. |
| 2021-08-12 18:02:47 | <elonsroadster[m]> | I.e. he wanted to have his xmonad keyboards be different when he was using each of the layouts |
| 2021-08-12 18:09:34 | <fizzie> | But it was still exactly the same set of *actions* they wanted, I think, just on different keys. So what's the practical difference between remapping keys (for the purposes of key bindings only, which is what XMonad.Actions.KeyRemap does) vs. switching to a different set of bindings? As long as you need the same actions (just on different keys), you can accomplish that with either. |
| 2021-08-12 18:17:01 | <elonsroadster[m]> | <fizzie> "But it was still exactly the..." <- A few points: |
| 2021-08-12 18:17:01 | <elonsroadster[m]> | - I didn't look closely at the set of keybinds grvxs[m] was requesting, so I'm not sure whether or not this was true |
| 2021-08-12 18:17:01 | <elonsroadster[m]> | - Even if it were true, it would have been much more work for him to translate exactly what he wanted into a format compatible with KeyRemap. He had two sets of keymaps defined as keybindings already, my code ended up just being plug and play |
| 2021-08-12 18:17:01 | <elonsroadster[m]> | - Obviously biased, but the code I gave him was also simpler and easier to understand |
| 2021-08-12 18:30:09 | <fizzie> | Well, depending. You can argue remapping would be a net simplification, because you don't need to keep maintaining two nominally independent sets of keybindings when really the intent you want to express is "this single set of bindings should stay on the same physical keys". Sure, the delta from their current config would have been larger. |
| 2021-08-12 18:30:15 | <fizzie> | (I agree just swapping the bindings on the fly is *conceptually* simpler. And KeyRemap is kind of clunky.) |
| 2021-08-12 18:31:41 | <unrooted> | okay I fixed that xmobar issue from before, thanks guys |
| 2021-08-12 18:31:48 | unrooted | uploaded an image: (352KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/GJyTtHTmMbagPZiFsoMlQEIr/unixpornProgress2.png > |
| 2021-08-12 18:32:02 | <unrooted> | I think I can share progress (screenshot from before fixing xmobar) |
| 2021-08-12 18:32:24 | <Solid> | you may also argue that not having to understand the code is exactly what the top level docs of KeyRemap are for ;) |
| 2021-08-12 18:32:42 | <Solid> | though I agree that what elonsroadster[m] wrote is probably more extensible overall |
| 2021-08-12 18:33:07 | <Solid> | (and it would probably make a great module) |
| 2021-08-12 18:37:53 | × | wonko quits (~wjc@62.115.229.50) (Ping timeout: 248 seconds) |
| 2021-08-12 18:44:24 | <unrooted> | god damn it, does it take always so long to use custom shell command in xmobar? |
| 2021-08-12 18:45:17 | unrooted | uploaded an image: (10KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/hEazivBKknwCGTZdgsgfxOxi/image.png > |
| 2021-08-12 18:46:22 | <unrooted> | even using built-in weather module doesn't work 😩 |
| 2021-08-12 18:56:23 | <geekosaur> | that looks like it's not getting output |
| 2021-08-12 18:59:41 | <unrooted> | fixed that using nix version of xmobar |
| 2021-08-12 18:59:43 | unrooted | uploaded an image: (8KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/fYuWGHuPzxNDCXDFuXjRGiIT/image.png > |
| 2021-08-12 19:05:58 | → | nova joins (novasenco@user/nova) |
| 2021-08-12 20:12:16 | → | berberman_ joins (~berberman@user/berberman) |
| 2021-08-12 20:13:47 | × | berberman quits (~berberman@user/berberman) (Ping timeout: 268 seconds) |
| 2021-08-12 20:19:31 | grvxs[m] | < https://libera.ems.host/_matrix/media/r0/download/libera.chat/717fe81b2b6e3b02f68afdec6b20f43ded3d87ce/message.txt > |
| 2021-08-12 20:20:08 | grvxs[m] | uploaded an image: (42KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/qHSjrPJNJWxEyhdLGdqJaFDc/image.png > |
| 2021-08-12 20:27:23 | <grvxs[m]> | https://github.com/xmonad/xmonad-contrib/blob/master/XMonad/Actions/KeyRemap.hs |
| 2021-08-12 20:27:23 | <grvxs[m]> | wait this does exactly what I want, it even has the same layout I use |
| 2021-08-12 20:30:14 | <elonsroadster[m]> | grvxs[m]: Great! Use that if that feels more comfortable to you. |
| 2021-08-12 20:30:32 | <elonsroadster[m]> | It's not clear to me that it allows toggling back and forth though, so I'm not sure how you would accomplsih that |
| 2021-08-12 20:30:53 | <grvxs[m]> | yea, i was trying to find that lol |
| 2021-08-12 20:31:56 | <grvxs[m]> | the current config works just fine but it has an issue (toggling workspaces don't work) |
| 2021-08-12 20:31:56 | <grvxs[m]> | https://www.reddit.com/r/xmonad/comments/n5dop6/is_there_a_xmonad_equivalent_for_i3s_workspace/ |
| 2021-08-12 20:32:24 | <elonsroadster[m]> | I think you can use `setKeyRamp dvorakProgrammerKeyRemap` |
| 2021-08-12 20:32:42 | <elonsroadster[m]> | grvxs[m]: wdym by toggling in this case? |
| 2021-08-12 20:32:43 | <grvxs[m]> | I noticed it when I added the shiftWorkspaceBinds to the normal binds |
| 2021-08-12 20:33:10 | <elonsroadster[m]> | I still dont quite understand what you mean by "toggling" in this case |
| 2021-08-12 20:33:18 | <elonsroadster[m]> | I'm assuming that you can switch workspaces right? |
| 2021-08-12 20:33:19 | <grvxs[m]> | if I am on workspace 1 and then I go to workspace 3, pressing the keymap for workspace 3 should take me back to 1 |
| 2021-08-12 20:33:37 | → | wonko joins (~wjc@62.115.229.50) |
| 2021-08-12 20:33:56 | <elonsroadster[m]> | grvxs[m]: that's certainly not xmonad default behavior |
| 2021-08-12 20:34:03 | <grvxs[m]> | yea it's not |
| 2021-08-12 20:34:13 | <grvxs[m]> | I have that in my keybinds |
| 2021-08-12 20:34:21 | <elonsroadster[m]> | so unless you added some config to do that it wont do that |
| 2021-08-12 20:35:22 | <grvxs[m]> | It was working, but it didn't work when I added the 2 sets of layouts I had |
| 2021-08-12 20:35:47 | <grvxs[m]> | lemme send the commit wait |
| 2021-08-12 20:36:16 | <grvxs[m]> | https://github.com/grvxs/dots/commit/cea93ca819bf46570bc8e66b514507bbc5d3c45d |
| 2021-08-12 20:37:34 | <elonsroadster[m]> | it should work in qwerty mode |
| 2021-08-12 20:37:38 | <elonsroadster[m]> | but maybe not in dvorak mode |
| 2021-08-12 20:37:47 | <elonsroadster[m]> | is that right? |
| 2021-08-12 20:37:54 | <grvxs[m]> | it doesn't work in qwerty nor in dvorak |
| 2021-08-12 20:38:19 | <grvxs[m]> | the concatenation of lists did something wrong ig |
| 2021-08-12 20:39:15 | <elonsroadster[m]> | I actually don't understand why you'd want this binding at all though |
| 2021-08-12 20:39:27 | <grvxs[m]> | btw both sets of keybinds work when they're not concatenated to the normal ones |
| 2021-08-12 20:39:29 | <elonsroadster[m]> | why not just have a binding for cycle workspace that always takes you to the last workspace |
| 2021-08-12 20:39:52 | <grvxs[m]> | yea, I have that |
| 2021-08-12 20:39:52 | <grvxs[m]> | M-U |
| 2021-08-12 20:40:05 | <grvxs[m]> | i got kinda used to the "toggling" workspaces when I used i3 |
| 2021-08-12 20:41:07 | <elonsroadster[m]> | wait you're saying that if you only bind the "switchable" keys |
| 2021-08-12 20:41:21 | <elonsroadster[m]> | things work, but if you add in the rest of your normal keys it doesn't? |
| 2021-08-12 20:41:51 | <grvxs[m]> | umm |
| 2021-08-12 20:42:04 | <grvxs[m]> | <grvxs[m]> "https://github.com/grvxs/dots/co" <- after this commit it doesn't work |
| 2021-08-12 20:42:45 | grvxs[m] | uploaded an image: (71KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/swgspaGYbfPDXUzLdbPvkBFx/image.png > |
| 2021-08-12 20:42:52 | <elonsroadster[m]> | wait are you sure they work, to me it seems like you got the order wrong |
| 2021-08-12 20:43:08 | <grvxs[m]> | i got rid of the above and added them to the workspaceBinds function |
| 2021-08-12 20:43:57 | <grvxs[m]> | they work before that commit |
| 2021-08-12 20:44:10 | <elonsroadster[m]> | This part: `bindOn [("", windows $ W.greedyView n), (n, toggleWS)])` seems wrong to me |
| 2021-08-12 20:44:19 | <grvxs[m]> | and I add this in the |
| 2021-08-12 20:44:19 | <grvxs[m]> | ``` , keys = workspaceShiftBinds myLayout |
| 2021-08-12 20:44:19 | <grvxs[m]> | ``` |
| 2021-08-12 20:44:20 | <grvxs[m]> | * and I add this in the |
| 2021-08-12 20:44:21 | <grvxs[m]> | ``` |
| 2021-08-12 20:44:21 | <grvxs[m]> | ``` |
| 2021-08-12 20:44:31 | <grvxs[m]> | * and I add this in the |
| 2021-08-12 20:44:31 | <grvxs[m]> | ``` |
| 2021-08-12 20:44:31 | <grvxs[m]> | , keys = workspaceShiftBinds myLayout |
| 2021-08-12 20:44:31 | <grvxs[m]> | ``` |
| 2021-08-12 20:44:44 | <elonsroadster[m]> | ah nvm |
| 2021-08-12 20:44:48 | <grvxs[m]> | * and I add this in the defaults |
| 2021-08-12 20:44:48 | <grvxs[m]> | ``` |
All times are in UTC.