Shinyzenith
6911e116cb
|
2 years ago | |
---|---|---|
.github | 2 years ago | |
contrib | 2 years ago | |
docs | 2 years ago | |
src | 2 years ago | |
.gitignore | 2 years ago | |
.rustfmt.toml | 2 years ago | |
CODE_OF_CONDUCT.md | 2 years ago | |
CONTRIBUTING.md | 2 years ago | |
Cargo.lock | 2 years ago | |
Cargo.toml | 2 years ago | |
LICENSE | 2 years ago | |
Makefile | 2 years ago | |
README.md | 2 years ago | |
release.sh | 2 years ago | |
swhkd.rules | 2 years ago |
README.md
A next-generation hotkey daemon for Wayland/X11 written in Rust.
SWHKD
Simple Wayland HotKey Daemon
swhkd is a display protocol-independent hotkey daemon made in Rust. swhkd uses an easy-to-use configuration system inspired by sxhkd so you can easily add or remove hotkeys.
It also attempts to be a drop-in replacement for sxhkd, meaning, your sxhkd config file is also compatible with swhkd.
Because swhkd can be used anywhere, the same swhkd config can be used across Xorg or Wayland desktops, and you can even use swhkd in a tty.
Note: The project is a WIP. BUT!! It does work right now however it's not a drop-in replacement yet. Example config file.
Installation
See INSTALL.md for installing swhkd.
Running:
swhks &
pkexec swhkd
To refresh the config at runtime, make a script like so:
#!/bin/sh
sudo killall swhkd
pkexec swhkd
Mark it as executeable using chmod +x <path_to_refresh_script>
.
Then call it using setsid -f <path_to_refresh_script>
.
A better implementation using signals will be developed later.