Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update man pages #15

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
DAEMON_BINARY := swhkd
CLIENT_BINARY := swhkc
DAEMON_MAN_PAGE := swhkd.1
CLIENT_MAN_PAGE := swhkc.1
BUILDFLAGS := --release
POLKIT_DIR := /etc/polkit-1/rules.d
POLKIT_RULE := swhkd.rules
Expand Down Expand Up @@ -31,11 +33,17 @@ install:
@cp ./$(POLKIT_RULE) $(POLKIT_DIR)/$(POLKIT_RULE)
@chmod +x $(TARGET_DIR)/$(DAEMON_BINARY)
@chmod +x $(TARGET_DIR)/$(CLIENT_BINARY)
@cp ./docs/man/$(DAEMON_MAN_PAGE) /usr/local/man/man1/$(DAEMON_MAN_PAGE)
@cp ./docs/man/$(CLIENT_MAN_PAGE) /usr/local/man/man1/$(CLIENT_MAN_PAGE)
@chmod 755 /usr/local/man/man1/$(DAEMON_MAN_PAGE)
@chmod 755 /usr/local/man/man1/$(CLIENT_MAN_PAGE)

uninstall:
@rm $(TARGET_DIR)/$(CLIENT_BINARY)
@rm $(TARGET_DIR)/$(DAEMON_BINARY)
@rm $(POLKIT_DIR)/$(POLKIT_RULE)
@rm /usr/local/man/man1/$(DAEMON_MAN_PAGE)
@rm /usr/local/man/man1/$(CLIENT_MAN_PAGE)

run:
@cargo run --target=x86_64-unknown-linux-musl
Expand Down
20 changes: 3 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
</p>

## SWHKD

**S**imple **W**ayland **H**ot**K**ey **D**aemon

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.
Expand All @@ -22,25 +23,10 @@ It is also a drop-in replacement for sxhkd, meaning, your sxhkd config file is a
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 isn't complete yet.**
# Dependencies:

## Runtime:

- Policy Kit Daemon ( polkit )

## Compile time:

- `rustup`
- `make`

# Compiling:
# Installation

- `git clone https://github.com/shinyzenith/swhkd`
- `make setup`
- `make clean`
- `make` for a musl compile.
- `make glibc` for a glibc compile.
- `sudo make install`
See [INSTALL.md](./docs/INSTALL.md) for installing swhkd.

# Running:

Expand Down
Binary file removed bin/swhkc
Binary file not shown.
25 changes: 25 additions & 0 deletions docs/INSTALL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
## Installation

# Dependencies:

## Runtime:

- Policy Kit Daemon ( polkit )

## Compile time:

- `rustup`
- `make`

# Compiling:

- `git clone https://github.com/shinyzenith/swhkd`
- `make setup`
- `make clean`
- `make` for a musl compile.
- `make glibc` for a glibc compile.
- `sudo make install`

# Running:

`pkexec swhkd`
11 changes: 11 additions & 0 deletions docs/man/swhkc.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.\" Automatically generated by Pandoc 2.14.2
.\"
.TH "" "" "" "" ""
.hy
.SH SWHKC
.PP
swhkc is the client that waits for signals from swhkd to execute
commands as a non-root user.
.SH SEE ALSO
.PP
swhkd(1)
7 changes: 7 additions & 0 deletions docs/man/swhkc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# SWHKC

swhkc is the client that waits for signals from swhkd to execute commands as a non-root user.

# SEE ALSO

swhkd(1)
27 changes: 27 additions & 0 deletions docs/man/swhkd.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
.\" Automatically generated by Pandoc 2.14.2
.\"
.TH "" "" "" "" ""
.hy
.SH SWHKD
.PP
\f[B]S\f[R]imple \f[B]W\f[R]ayland \f[B]H\f[R]ot\f[B]K\f[R]ey
\f[B]D\f[R]aemon
.PP
swhkd is a display protocol-independent hotkey daemon made in Rust.
.PP
swhkd uses an easy-to-use configuration system inspired by sxhkd so you
can easily add or remove hotkeys.
.PP
It is also a drop-in replacement for sxhkd, meaning, your sxhkd config
file is also compatible with swhkd.
.PP
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.
.PP
\f[B]Note: The project isn\[cq]t complete yet.\f[R]
.SH RUNNING
.PP
\f[C]pkexec swhkd\f[R]
.SH SEE ALSO
.PP
swhkc(1)
21 changes: 21 additions & 0 deletions docs/man/swhkd.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# SWHKD

**S**imple **W**ayland **H**ot**K**ey **D**aemon

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 is also 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 isn't complete yet.**

# RUNNING

`pkexec swhkd`

# SEE ALSO

swhkc(1)