159 Commits (6f18996445500ebe65ec4c7544f286ecfbedd1f8)

Author SHA1 Message Date
Angelo Fallaria abe8987d79 refactor: rename Keybind to Hotkey
2 years ago
Angelo Fallaria 17d0f02baa test: add blank tests to fill in later
2 years ago
Angelo Fallaria d153526037 test: improve test for nonexistent file
2 years ago
Angelo Fallaria fd9524eaf5 style: remove some newlines in start of parse_config
2 years ago
Angelo Fallaria ebd9db0689 fix: remove unneeded PartialEq derive in enum
2 years ago
Angelo Fallaria 7103537e31 fix: return actual line number in error
2 years ago
Angelo Fallaria 8918b03f6e feat: add handling of empty command
2 years ago
Angelo Fallaria 5763be0a7b style: improve styling and comments of config parse func
2 years ago
Angelo Fallaria 503f174672 feat: add more error situations in the config parser
2 years ago
Angelo Fallaria c2c1a0285d feat(config): return error if keybind at last line
2 years ago
Angelo Fallaria 3f5c46cc48 style: remove unecessary TODO: comments
2 years ago
Angelo Fallaria a444e3eff1 style: compress the evdev keys vector
2 years ago
Angelo Fallaria 2d97b2dea3 feat(config): add all alphanumeric numbers
2 years ago
Angelo Fallaria 1a1ba9ffbd test(config): add 9 more unit tests
2 years ago
Angelo Fallaria 252ce9f2e4 feat: add basic config parser
2 years ago
Shinyzenith b5a7422c89
[delete] Remove all IPC code.
2 years ago
Shinyzenith 54234ac9e8
[refactor] Warn on failure to remove sock file
2 years ago
Shinyzenith f0d212b9b0
[Refactor] permission_check(), exit on fail.
2 years ago
Shinyzenith 021291c6a3
[refactor] Warn on no perms.
2 years ago
Shinyzenith 5da3789981
[refactor] Remove redundant return statement
2 years ago
Shinyzenith faecfcf617
[refactor] Refuse to run swhkd as user with input group
2 years ago
Shinyzenith 096b610edc
[update] Remove redundant comments.
2 years ago
Shinyzenith 1e01014a14
[update] Remove physical path logging
2 years ago
Shinyzenith 65e9649f87
[update] Cargo fmt.
2 years ago
Shinyzenith eab71d680d
[refactor] Remove redundant Result<(), Box<dyn Error>>
2 years ago
Shinyzenith a9e66360a9
[refactor] Do not hardcode executable path, use std::env::current_exe() instead
2 years ago
Shinyzenith f77fb6049b
[update] Remove clap from server.rs
2 years ago
Shinyzenith 97b8af219f
[update] log on removal of socket file.
2 years ago
Shinyzenith ab914f5b9c
[refactor] Add temporary to hotedit the shell command for development testing.
2 years ago
Shinyzenith 5d92de385a
[feature] Implement UNIX domain socket IPC between swhks ( server ) & swhkd ( daemon )
2 years ago
Shinyzenith c15b5b153e
[refactor] Setup build instructions for client to recieve shell commands.
2 years ago
Shinyzenith ac6c5d5fc6
[refactor] Remove preceeding "Note:" from root warning.
2 years ago
Shinyzenith 620782f1ba
[refactor] Default to /etc/swhkd/swhkdrc instead of /home/USER/.config/swhkd/swhkdrc.
2 years ago
Shinyzenith ced2ea3c95
[refactor] flag creation function, xdg checker function, allow swhkd to run as root
2 years ago
Shinyzenith f2a1e5b862
[refactor] Append valid devices to a vector and check for 0 devices
2 years ago
Shinyzenith c8dcd0dd0c
[refactor] Replace glob with evdev::enumerate.
2 years ago
Shinyzenith 6ccce2792c
[refactor] concise import
2 years ago
Shinyzenith 824d36a7f9
[refactor] concise format
2 years ago
Shinyzenith a9d6966ad5
[refactor] Utilize cargo pkg authors
2 years ago
Shinyzenith df2f110208
[refactor] use Path::new PathBuf instead of pushstr
3 years ago
Shinyzenith dbad34c65f
[refactor] turn permission checks into a function main.rs
3 years ago
Shinyzenith fc70c44684
[feature] config file path detection with xdg base directory variables
3 years ago
Shinyzenith c774f6b3f8
move input group permission check to separate function
3 years ago
Shinyzenith c44b634cc3
logging added, permission checks added, basic error handling
3 years ago
Shinyzenith 328c310f16
add tokio as dependency for event scheduling
3 years ago
Shinyzenith 8bbd34c4df
Check all event devices for KEY_ENTER presence.
3 years ago
Shinyzenith ffd8b998b2
remove all python code
3 years ago
Shinyzenith 6ce03e1bc3
Rolling back a commit.
3 years ago
ckyiu 704d1f1e47 Add requirements.txt and clean up configuration related stuff
3 years ago
Shinyzenith 13d3e26725
stdout to devnull
3 years ago
Shinyzenith 069230e0be
Fixed running swhkd as sudo and added exception for no input group
3 years ago
Shinyzenith 421728d19d
no keyboard check
3 years ago
Shinyzenith fc3454b94f
typo fix
3 years ago
Shinyzenith f7da66a1a7
added stderr for error messages, config parser, sample configuration file. STILL A WIP. THE PROGRAM WILL JUST SPIT OUT THE EVENTS AND NOT ACTUALLY USE YOUR DEFINED EVENTS.
3 years ago
Shinyzenith 41a17d9b49
remove EV_MSC event
3 years ago
Shinyzenith 12e50824b4
Useless import
3 years ago
Shinyzenith 35455635c1
signal handler fix and some minor changes
3 years ago
Shinyzenith 1eca3b18e0
readme update
3 years ago
Shinyzenith f58f07c5be
working input detection
3 years ago