199 Commits (main)

Author SHA1 Message Date
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
2 years ago
Shinyzenith dbad34c65f
[refactor] turn permission checks into a function main.rs
2 years ago
Shinyzenith fc70c44684
[feature] config file path detection with xdg base directory variables
2 years ago
Shinyzenith c774f6b3f8
move input group permission check to separate function
2 years ago
Shinyzenith c44b634cc3
logging added, permission checks added, basic error handling
2 years ago
Shinyzenith 328c310f16
add tokio as dependency for event scheduling
2 years ago
Shinyzenith 8bbd34c4df
Check all event devices for KEY_ENTER presence.
2 years ago
Shinyzenith ffd8b998b2
remove all python code
2 years ago
Shinyzenith 6ce03e1bc3
Rolling back a commit.
2 years ago
ckyiu 704d1f1e47 Add requirements.txt and clean up configuration related stuff
2 years ago
Shinyzenith 13d3e26725
stdout to devnull
2 years ago
Shinyzenith 069230e0be
Fixed running swhkd as sudo and added exception for no input group
2 years ago
Shinyzenith 421728d19d
no keyboard check
2 years ago
Shinyzenith fc3454b94f
typo fix
2 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.
2 years ago
Shinyzenith 41a17d9b49
remove EV_MSC event
2 years ago
Shinyzenith 12e50824b4
Useless import
2 years ago
Shinyzenith 35455635c1
signal handler fix and some minor changes
2 years ago
Shinyzenith 1eca3b18e0
readme update
2 years ago
Shinyzenith f58f07c5be
working input detection
2 years ago