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
...
A basic config parser has been implemented in `config.rs`. It is still
incomplete, but one letter key press bindings in QWERTYUIOP should work
now, along with a command on the next line.
Example `swhkdrc` file that should work:
```
r
alacritty
w
kitty
t
/bin/firefox
```
**TODO:**
- Add more supported key presses (alphabetical, numerical, insert,
home, delete, end, etc)
- Add chained keybindings (`super + g`, `super + 3`)
- Add error handling for parsing the contents of the file
Note: `server.rs` has been modified to add `mod config` at the start of
the file, but it was necessary to do testing for the config parser.
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
Idlidev
d39876e4ca
[update] move assets/ -> docs/assets/ and update INSTALL.md
2 years ago
Shinyzenith
2e1f6c2e9c
[delete] Remove man pages temporarily.
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
0e00175ff0
[update] Comment out man page build instructions.
2 years ago
Shinyzenith
00c59ab5cc
[update] Comment out man page build instructions.
2 years ago
Shinyzenith
e421f02d7b
[update] Mkdir manpage dir
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
Idlidev
257e642d52
[update] update man path to /usr/local/share/man/man1 in makefile
2 years ago
Idlidev
356e0200aa
[update] update readme
2 years ago
Idlidev
d409c28870
[update] update readme
2 years ago
Idlidev
6a3d12f3f0
[update] update readme
2 years ago
Idlidev
c75e8e72d7
[update] add man pages, update readme
2 years ago
Shinyzenith
734918ea0f
[update] Makefile, run clause no longer needed.
2 years ago
Shinyzenith
b7fbcdaf34
[update] Makefile, remove `cargo test`.
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
71c9645152
[update] add server binary to gitignore
2 years ago
Aakash Sen Sharma
31620b8169
[update] log on removal of socket file.
2 years ago
Shinyzenith
97b8af219f
[update] log on removal of socket file.
2 years ago
Aakash Sen Sharma
33393c436d
Merge pull request #10 from Shinyzenith/devel
...
[feature] Implement UNIX domain socket IPC client.
2 years ago
Aakash Sen Sharma
b8fb1a5515
Merge branch 'main' into devel
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
132733cd41
[update] readme
2 years ago
Shinyzenith
32fb606e79
[update] Readme, WIP notice.
2 years ago
Shinyzenith
cae5b1f8af
[update] Readme, WIP note
2 years ago
Shinyzenith
41f16be2cd
[update] Readme.
2 years ago
Idli
5125b0d165
[update] update readme
2 years ago
Shinyzenith
251cfd0636
[update] Readme, Switch to flat square for badges
2 years ago
Shinyzenith
d2c8da156a
[update] Readme, switch to proper dynamic badges
2 years ago
Idlidev
cef00e792e
[update] Update readme, update swhkd logo
2 years ago
Shinyzenith
8f8e32b4a9
[create] reupload swhkd logos.
2 years ago
Shinyzenith
2312e0f408
[remove] swhkd logos
2 years ago
Idlidev
e64e98b7cf
[update] Update swhkd logo
2 years ago
Idlidev
45b585c176
[update] Update swhkd logo
2 years ago
Shinyzenith
3858bd863e
[update] Update swhkd logo
2 years ago
Shinyzenith
a534d65e3f
[update] Readme, add swhkd logo.
2 years ago