05a18e8874
implemented exec_command with wordexp(3)
...
this allows for a less error-prone parsing method
(as wordexp(3) is in libc) and enables for shell-like
word expansion, refer to the man page for more info
about wordexp(3)
2020-07-05 17:00:50 +02:00
d39281f9a6
minor fix
...
hotkeys don't get triggerd twice when after the right
keys are pressed one or more other keys are pressed
afterwards
2020-07-05 12:02:32 +02:00
ed7202e5c8
added key_buffer_compare_random/ordered
...
In the future one can specify that the hotkey triggers
only when the keys are pressed in the right order, or
in any order, this will be configured per-hotkey in the
config file
2020-07-05 11:58:21 +02:00
dd319e08b7
deleted empty first line
2020-06-17 16:57:20 +02:00
8bbdaa3d21
key_buffer is now static for performance
2020-06-09 21:47:44 +02:00
435bbfbab8
modified configuration file and parser
2020-06-09 20:47:25 +02:00
300b82bc5e
added str_to_argv()
2020-06-09 20:46:51 +02:00
33526a916f
some linting
2020-06-09 18:15:45 +02:00
e15699e4ed
removed unused files
2020-06-09 17:54:58 +02:00
9a5767263e
key conversion table megastruct
2020-06-09 15:47:14 +02:00
9866fa0533
struct init test
2020-06-09 15:46:44 +02:00
9564915e08
key_buffer_compare()
2020-06-06 23:11:45 +02:00
edaa6806d4
made std c99 compliant
2020-05-27 14:50:57 +02:00
b18fb0cf8e
formatting
2020-05-16 16:03:03 +02:00
129f0ce8e8
commented unnecessary free
2020-05-13 14:20:07 +02:00
bd3d82158b
minor macro formatting
2020-05-13 14:19:55 +02:00
d7b0ac68ef
green text
2020-05-13 14:03:41 +02:00
c4e671b203
close epoll fd on exit
2020-05-13 14:02:31 +02:00
5acaa2b7df
line savings
2020-05-13 14:02:12 +02:00
9c89e52692
update on device change with inotify
2020-05-13 00:22:16 +02:00
4042c02ada
inotify test
2020-05-13 00:17:29 +02:00
a8f8dc8126
removed bsd compatibility
2020-05-12 22:54:15 +02:00
aaaa94c41d
die() error
2020-05-12 15:18:06 +00:00
3d84ee6726
converted die to a macro
2020-05-12 15:14:14 +00:00
db923d7ae0
defines united
2020-05-12 12:17:24 +02:00
2a236af8a1
saved up some lines with color macros
2020-05-12 12:07:45 +02:00
7c85ebab77
triggerhappy project
2020-05-10 16:51:41 +02:00
e7d69154e0
template it keymap
2020-05-02 21:58:41 +02:00
cdfed84d5e
redundant message on no devices
2020-05-02 16:04:02 +02:00
3c9bbe4140
execvp
2020-04-26 17:31:06 +02:00
1fb0a4c6fa
testing parsing a simple conf file
2020-04-26 01:04:55 +02:00
038e312941
explicit pointer conversion
...
god I hate linter warnings
2020-04-25 23:14:15 +02:00
e9f80e8200
first readme
2020-04-25 23:10:47 +02:00
d71e2c98e1
use execv()
...
using execv() instead of execl() allows to more simply run a command
with arguments
2020-04-25 23:03:02 +02:00
8292e4df75
rename project
2020-04-25 18:16:52 +02:00
6bd7d36bfc
renamed project to hkd
2020-04-25 18:15:37 +02:00
7abb0a3c23
added as reference
2020-04-25 11:24:34 +02:00
296bd3fb79
indented cases and others
2020-04-25 11:24:18 +02:00
8d890b9e9e
coloured output
2020-04-24 16:53:34 +02:00
88308249bf
clarified const string
...
cahnged const char *ev_root to const char *evdev_root_dir
to clarufy the role of the variable
2020-04-24 16:40:22 +02:00
c0400929e4
moved dir scan logic to function
...
moved the logic behind choosing the right file desciptors into a
function allowing for later dynamic update
2020-04-23 23:14:41 +02:00
76dd08c465
added debug compilations
2020-04-23 23:13:17 +02:00
636bfe7a5e
reformat and better naming
2020-04-23 22:17:38 +02:00
58c01fb9d1
generalized die()
...
using fprintf() instead of fputs() to allow string concatenation, die()
now requires a error message which can be NULL and a error message which
will be passed to strerror(), this ensures that errno is fresh when we
use it
2020-04-23 19:25:16 +02:00
58aceac802
justified exit condition
2020-04-23 18:59:14 +02:00
922090060f
use switch for fork()
...
save two local variables and improve readability by a bit
2020-04-23 18:56:54 +02:00
45c52ecf20
removed trailing spaces
2020-04-23 17:01:28 +02:00
80bacaf775
wait before exit
2020-04-22 17:09:10 +02:00
678fef9358
fixed various bugs
2020-04-20 15:43:19 +02:00
e0a64d75c7
added test folder
2020-04-20 15:42:32 +02:00