Home liberachat/#kmonad: Logs Calendar

Logs on 2023-01-14 (liberachat/#kmonad)

00:03:43 × raccct quits (~raccct@2001:1711:fa56:7900:8022:98aa:bb6d:77ef) (Ping timeout: 260 seconds)
06:37:10 <n0r> I don't know what keyboard you have, but on most it can't be remapped. That is because pressing it does not send a signal to the OS - or even the CPU - but is a layer-toggle handled by the keyboard hardware itself. KMonad can't change how the keyboard hardware behaves. Shift, Control, Alt etc. are modifier keys handled by the OS and therefor can be changed in the OS. Also see here:
06:37:10 <n0r> https://github.com/kmonad/kmonad/blob/master/doc/faq.md#q-why-cant-i-remap-the-fn-key-on-my-laptop
06:51:39 <Solid> they already seem to have disappeared
07:33:05 <n0r> Oh right I didn't realize this is IRC where people don't stay long 😅
08:11:07 <Solid> wouldn't be fun otherwise :)
11:06:51 raccct joins (~raccct@2001:1711:fa56:7900:8022:98aa:bb6d:77ef)
11:07:13 <raccct> anyone using kmonad with sway?
11:07:40 <n0r> Not currently, but I used to.
11:08:52 <raccct> n0r: do I have to disable something in sway to get kmonad to be able to grab IOCTL? kmonad can't get a hold of my keyboard since sway is using it
11:11:50 <n0r> I never had this issue, probably because I was always starting kmonad before sway launched (as a systemd service).
11:12:52 <raccct> n0r: thanks for the hint. a reboot might be necessary to get kmonad loaded first maybe.
11:12:55 <n0r> I mean: Kmonad as a service. Therefore also active in tty and even before logging in.
11:13:42 × raccct quits (~raccct@2001:1711:fa56:7900:8022:98aa:bb6d:77ef) (Quit: Client closed)
11:18:12 raccct joins (~raccct@2001:1711:fa56:7900:8022:98aa:bb6d:77ef)
11:19:37 <raccct> n0r: reboot didn't do the trick. kmonad is running as a service (enabled). config there. but no effect. when I try to run kmonad config.kbd manually I get: kmonad: Could not perform IOCTL grab on: /dev/input/event4
11:21:21 <raccct> when I check with `fuser -v /dev/input/event4` I get PID: 975 F.... sway
11:22:43 <raccct> what else could I try?
11:23:20 <n0r> Is the service wantedBy multi-user.target ?
11:26:09 <raccct> wantedBy=default.target so I change that and try again. thanks!
11:29:00 × raccct quits (~raccct@2001:1711:fa56:7900:8022:98aa:bb6d:77ef) (Quit: Client closed)
11:31:59 raccct joins (~raccct@2001:1711:fa56:7900:8022:98aa:bb6d:77ef)
11:33:28 <raccct> n0r: no luck :( - still sway capturing the keyboard
11:34:43 <raccct> what more could I try?
11:36:32 <n0r> Well, at least sway isn't the responsible one since KMonad now definitely should be trying to first, but fails where sway succeeds later.
11:40:19 <n0r> So how about permissions? Is KMonad even allowed to mess with the input system? It should run as a user with certain permissions. Afaik that means the groups "input" and "uinput", but don't quote me on that. I just ran it as root.
11:49:17 <raccct> yup. had added input and uinput groups to my user. now also tried to run `sudo kmonad config.kbd` still gives: kmonad: Could not perform IOCTL grab on: /dev/input/event4
11:51:11 <n0r> Can't help you any further unfortunatly. It "just worked" for me so I never investigated details of this.
11:51:42 <raccct> n0r: no worries. thanks for the hints tho!
12:31:25 × raccct quits (~raccct@2001:1711:fa56:7900:8022:98aa:bb6d:77ef) (Quit: Client closed)
13:50:47 raccct joins (~raccct@2001:1711:fa56:7900:8022:98aa:bb6d:77ef)
14:05:15 × Diablo-D3 quits (foobar@exelion.net) (Ping timeout: 268 seconds)
14:14:21 Diablo-D3 joins (foobar@exelion.net)
14:24:14 × Diablo-D3 quits (foobar@exelion.net) (Remote host closed the connection)
14:24:49 Diablo-D3 joins (foobar@exelion.net)
14:31:51 × raccct quits (~raccct@2001:1711:fa56:7900:8022:98aa:bb6d:77ef) (Quit: Client closed)
14:38:24 <Diablo-D31> raccct: try unplugging and replugging the keyboard?
14:38:24 <Diablo-D31> oh wait
14:38:24 <Diablo-D31> it wont even with sudo? weird
17:20:34 raccct joins (~raccct@2001:1711:fa56:7900:8022:98aa:bb6d:77ef)
18:44:53 × raccct quits (~raccct@2001:1711:fa56:7900:8022:98aa:bb6d:77ef) (Ping timeout: 260 seconds)
19:41:00 Guest13 joins (~Guest13@64.42.177.150)
19:42:06 × Guest13 quits (~Guest13@64.42.177.150) (Client Quit)
22:41:20 raccct joins (~raccct@2001:1711:fa56:7900:8022:98aa:bb6d:77ef)
22:42:44 <raccct> n0r: just wanted to let you know I have managed to get it working - thanks for the swing! :)
22:49:02 <raccct> I run linux on a mac keyboard which has some special keys that I cannot put in defsrc because kmonad complains. In Keycodes.hs there is a if_DARWIN_HOST_OS condition. So I can't use those restricted keys (like fn, lp, mctl) in linux on mac hardware? Can I somehow remap them in kmonad?
23:37:43 × raccct quits (~raccct@2001:1711:fa56:7900:8022:98aa:bb6d:77ef) (Ping timeout: 260 seconds)

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