Skip to content

Commit

Permalink
Note added for other Logitech devices
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetumit committed Aug 6, 2022
1 parent 28dbc1f commit 304595f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@

Convenient way to swap upper fn keys on Logitech K380.

> If you want to try for other devices you need to change `DEV` with your device name and *KERNELS* in *RULE* to `KERNELS=="*:046D:*"` in script. (*:046D:* is vendor id of Logitech devices. Rest of it product id of device. You can add it too but it should work without it.)

## Installation
- Arch Linux:
- Install via AUR
Expand Down
2 changes: 1 addition & 1 deletion k380-swap-keys
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Description: Convenient way to swap upper fn keys on Logitech K380.

# You can try for other devices too
DEV='K380'
DEV='K380' # You need to change KERNELS in RULE to KERNELS=="*:046D:*" for other logitech devices
DEST="/etc/udev/rules.d/80-$DEV.rules"
RULE='ACTION=="add", SUBSYSTEM=="hidraw", KERNEL=="hidraw*", SUBSYSTEMS=="hid", KERNELS=="*:046D:B342.*", RUN+="/bin/sh -c \"k380-swap-keys -s\""'

Expand Down

0 comments on commit 304595f

Please sign in to comment.