Hello, On 2023-04-02 13:49:56 +0000, P. p. phalantha wrote: > Hi all, > > I am running the GNU Guix operating system on my laptop. I want to swap > caps lock with control (ctrl:swapcaps) when using the laptop keyboard, but > not when using a bluetooth external keyboard. Is there a way to configure > this behavior? Thanks in advance! Not really guix specific answer, but I'm pretty sure you could achieve using this setxkbmap's --device parameter. The device ID should be possible to get from xinput list. W. -- There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors.