Added info to README
This commit is contained in:
parent
a0110e1fea
commit
32d6f09368
1 changed files with 5 additions and 2 deletions
|
@ -49,7 +49,8 @@ Make sure that the executable has permissions to run as a program with `chmod +x
|
||||||
There are two recommended ways to execute Makima:
|
There are two recommended ways to execute Makima:
|
||||||
- **Run Makima as root with `sudo -E makima`.**\
|
- **Run Makima as root with `sudo -E makima`.**\
|
||||||
Navigate into the directory of the executable and use `sudo -E ./makima`.\
|
Navigate into the directory of the executable and use `sudo -E ./makima`.\
|
||||||
Alternatively, add Makima to a directory that's in `PATH`, possibly `/usr/bin` or `~/.local/bin` and simply use `sudo -E makima` from anywhere.\
|
Alternatively, add Makima to a directory that's in `PATH`, possibly `/usr/bin` or `~/.local/bin` and simply use `sudo -E makima` from anywhere.
|
||||||
|
|
||||||
_Note: the `-E` argument is necessary because it allows Makima to inherit your user environment instead of the root environment when running with `sudo`. You can also add the `-b` argument (`sudo -Eb makima`) to detach if from the terminal and make it run in the background._
|
_Note: the `-E` argument is necessary because it allows Makima to inherit your user environment instead of the root environment when running with `sudo`. You can also add the `-b` argument (`sudo -Eb makima`) to detach if from the terminal and make it run in the background._
|
||||||
|
|
||||||
- **Run Makima as a Systemd service.**\
|
- **Run Makima as a Systemd service.**\
|
||||||
|
@ -58,6 +59,8 @@ Grab `makima.service` from this repo and edit the `User=` line with your usernam
|
||||||
Move the file into `/etc/systemd/system`, then run `systemctl daemon-reload`.\
|
Move the file into `/etc/systemd/system`, then run `systemctl daemon-reload`.\
|
||||||
After this, you can start and stop Makima with `systemctl start/stop makima` or you can enable/disable it on startup with `systemctl enable/disable makima`. If you change the config files and you want the changes to take place, restart Makima with `systemctl restart makima`.
|
After this, you can start and stop Makima with `systemctl start/stop makima` or you can enable/disable it on startup with `systemctl enable/disable makima`. If you change the config files and you want the changes to take place, restart Makima with `systemctl restart makima`.
|
||||||
|
|
||||||
|
_Note: when running as a systemd service, Makima inherits your systemd user environment, not your shell environment (you can see it with `systemctl --user show-environment`). If you need to pass env variables to it, do so by adding them to the unit file with `Environment=VARIABLE=value`._
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
You can find a bunch of [example config files](https://github.com/cyber-sushi/makima/tree/main/examples) on this repo, either pick one of them or create your own from scratch.\
|
You can find a bunch of [example config files](https://github.com/cyber-sushi/makima/tree/main/examples) on this repo, either pick one of them or create your own from scratch.\
|
||||||
Makima's config directory defaults to `$HOME/.config/makima` but can be changed through the `MAKIMA_CONFIG` environment variable (if you run Makima as a system service, add it directly to the Systemd unit).
|
Makima's config directory defaults to `$HOME/.config/makima` but can be changed through the `MAKIMA_CONFIG` environment variable (if you run Makima as a system service, add it directly to the Systemd unit).
|
||||||
|
@ -83,7 +86,7 @@ To retrieve the window class of a specific application, refer to your compositor
|
||||||
|
|
||||||
**Note 3: on Wayland, make sure that the `XDG_CURRENT_DESKTOP` environment variable is set, or Makima won't be able to use application-specific bindings.**
|
**Note 3: on Wayland, make sure that the `XDG_CURRENT_DESKTOP` environment variable is set, or Makima won't be able to use application-specific bindings.**
|
||||||
|
|
||||||
**Note 4: on Plasma Wayland, Makima uses `kdotool` to retrieve the active window instead of doing so internally, which means that you also need that installed. Sorry about this, but I didn't want to hardcode JavaScript snippets inside of Makima just to communicate with KWin.**
|
**Note 4: on Plasma Wayland, Makima uses `kdotool` ([Github repo](https://github.com/jinliu/kdotool) or [AUR package](https://aur.archlinux.org/packages/kdotool-git)) to retrieve the active window instead of doing so internally, which means that you also need that installed. Sorry about this, but I didn't want to hardcode JavaScript snippets inside of Makima just to communicate with KWin.**
|
||||||
|
|
||||||
### Layout hotswapping
|
### Layout hotswapping
|
||||||
To declare multiple layouts, similarly to app-specific bindings, put `::<int>` at the end of a config file, where `int` is an integer value between 0 and 3, representing the layout number. If not specified, Makima will assume 0.\
|
To declare multiple layouts, similarly to app-specific bindings, put `::<int>` at the end of a config file, where `int` is an integer value between 0 and 3, representing the layout number. If not specified, Makima will assume 0.\
|
||||||
|
|
Loading…
Add table
Reference in a new issue