Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dheygere authored Apr 22, 2023
1 parent 30cca53 commit 97a7b15
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,23 @@
# k380-fn-lock-for-windows
Lock Fn keys on K380 (for windows)

## Goal
This program locks the fn key for the Logitech K380 bluetooth keyboard on Windows.
Having the F1-F12 without pressing the Fn key is nice for developers.

I wanted a simple way to do the same as the Logitech Options/Options+ softwares WITHOUT their continuously running processes.

## How to use
Running `setFnKeys.exe` will lock Fn key till next reboot.
Revert with `setMediaKeys.exe` to unlock and restore media keys.

## How to build
- prerequisite : install mingw
- build setFnKeys.exe with :
`gcc main.c -o dist/setFnKeys.exe -I hidapi/include -L hidapi/x86 -lhidapi`
- build setMediaKeys.exe with :
`gcc main.c -D setMediaKeys -o dist/setMediaKeys.exe -I hidapi/include -L hidapi/x86 -lhidapi`

# Inspiration
code from : https://github.com/keighrim/k810fn/blob/master/win/k810fn/k810fnCLI.cpp
values from : https://github.com/jergusg/k380-function-keys-conf/blob/master/k380_conf.c

0 comments on commit 97a7b15

Please sign in to comment.