-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
64 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[Unit] | ||
Description=using caps-lock and enter as extra ctrl modifiers | ||
Documentation=https://github.com/ryanprior/home-row-control/blob/master/README.md | ||
|
||
[Service] | ||
Type=forking | ||
Environment=DISPLAY=:0 | ||
ExecStart=/usr/local/bin/_home_row_control | ||
Restart=always | ||
RestartSec=5 | ||
|
||
[Install] | ||
WantedBy=default.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
remove lock = Caps_Lock | ||
keycode 66 = Control_R | ||
add control = Control_R | ||
keycode any = Caps_Lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
remove mod4 = Hyper_L | ||
keycode 36 = Hyper_L | ||
add control = Hyper_L | ||
keycode any = Return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/usr/bin/env bash | ||
|
||
PACKAGE_NAME="home-row-control" | ||
VERSION="0.1" | ||
|
||
CONF_DIR=/etc/home-row-control | ||
CONF=user.conf | ||
CONF_TARGET=$CONF_DIR/$CONF | ||
|
||
SCRIPT=_home_row_control | ||
SCRIPT_TARGET=/usr/local/bin/$SCRIPT | ||
|
||
CHANGELOG=CHANGELOG.md | ||
|
||
DOC=README.md | ||
DOC_TARGET=/usr/share/doc/home-row-control/$DOC | ||
|
||
SERVICE=home-row-control.service | ||
SERVICE_TARGET=/usr/lib/systemd/user/$SERVICE | ||
|
||
set -x | ||
fpm -s dir \ | ||
-t deb \ | ||
-n $PACKAGE_NAME \ | ||
-v $VERSION \ | ||
--license "CC-0" \ | ||
--maintainer "Ryan Prior <ryanprior@gmail.com>" \ | ||
--vendor "Ryan Prior" \ | ||
--description "Use big modifier keys in the home row for Ctrl" \ | ||
-a all \ | ||
--url "https://github.com/ryanprior/home-row-control" \ | ||
"-d "{xcape,x11-xserver-utils,coreutils,dash} \ | ||
--config-files $CONF_DIR \ | ||
--deb-changelog $CHANGELOG \ | ||
--deb-no-default-config-files \ | ||
$SCRIPT=$SCRIPT_TARGET \ | ||
$DOC=$DOC_TARGET \ | ||
$SERVICE=$SERVICE_TARGET \ | ||
maps=$CONF_DIR |