ChocolateLoverRaj / cros-keyboard-map

Utility to generate keyd configurations for use on Chromebooks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Utility to generate keyd configurations for use on Chromebooks

Instructions

  1. Download the file chromebook-keyd-config from GitHub Releases.
  2. # Copy the file to `/usr/local/bin`
    cd ~/Downloads
    sudo cp chromebook-keyd-config /usr/local/bin
    
  3. git clone https://github.com/ChocolateLoverRaj/cros-keyboard-map
    
  4. cd cros-keyboard-map
    
  5. ./install.sh
    

Customizing

You can add ur own keyd config in addition to the chromebook config by creating the file /etc/chromebook-keyd-config/keyd.conf. The format is the same as the keyd config, but do not include the [ids] section. Here is an example custom config:

[main]
# It's nice for the lock button to be delete. For sleep you can just close the lid and for lock you can just do Search + L
sleep = delete

# When search key is held make the top row act like function keys
[meta]
sleep = f14
backspace = delete

######## ChromeOS shortcuts ########
[alt]
# alt + meta = capslock
meta = capslock

Building

Prerequisites

Install Rust

Fedora

sudo dnf install -y fuse-devel

Testing Service

Stop the installed service

sudo systemctl stop chromebook-keyd-config

Build

Run this command every time u wanna test changes.

cargo build

Run

sudo target/debug/chromebook-keyd-config

Test keyd

sudo keyd reload

Thanks to rvaiya for creating keyd.

About

Utility to generate keyd configurations for use on Chromebooks

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Rust 76.5%Language:Shell 23.5%