-
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
1 parent
eb9f77a
commit 11cc4d8
Showing
6 changed files
with
130 additions
and
20 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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#!/bin/bash | ||
#!/bin/sh | ||
cc -Wall -O2 -o rtmouse rtmouse.c -lX11 -lXi -lXtst |
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,24 @@ | ||
struct Dwell_Config config = | ||
{ | ||
// Minimum movement before a mouse motion activates the dwell timer | ||
.min_movement_pixels = 10, | ||
|
||
// rtmouse will wait this long after mouse movement ends before clicking. | ||
// default 500ms. you may want to make it longer | ||
.dwell_time = 500 / TIMER_INTERVAL_MS, | ||
|
||
// rtmouse will drag-click if you move the mouse within this timeframe | ||
// after a click occurs. | ||
.drag_time = 500 / TIMER_INTERVAL_MS, | ||
|
||
// dragging only happens when this is on | ||
.drag_enabled = true, | ||
|
||
// sound plays on click when this is on | ||
.sound_enabled = true, | ||
|
||
// status_file will be modified with enabled/disabled/terminated statuses | ||
// when this is on | ||
.write_status = true, | ||
.status_file = "/tmp/rtmouse-status.txt" | ||
}; |
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,6 @@ | ||
#!/bin/sh | ||
|
||
set -v | ||
|
||
install --mode 755 -D -t /usr/local/bin rtmouse | ||
install --mode 644 -D -t /usr/local/share/rtmouse mousetool_tap.wav |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#!/bin/bash | ||
#!/bin/sh | ||
./build.sh && ./rtmouse |