apm is a simple power menu built with
gtk4-layer-shell
andgtk4
.
Just use the command apm
to run.
You will need the following dependencies to build the binary.
- pkg-config
- glib
- gtk4
- gtk4-layer-shell
cargo build --release
If you are using Nix or NixOS with flakes support, then run:
nix build
nix profile install github:arunim-io/apm
You can also include it in your flake config.
Example:
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
apm.url = "github:arunim-io/apm";
};
}
apm
is configured using toml
. See examples/config.toml
for reference.
For styling, see the following links:
See examples/styles.css
for reference.
Name | Type | Default Value | Description |
---|---|---|---|
spacing | integer |
25 | The gap between each button |
icon_size | integer |
50 | The size of the icon in the button |
icon_margin | integer |
10 | The margin of the icon in the button |
buttons | Button[] |
[] | The buttons to display. |
Name | Type | Default Value | Description |
---|---|---|---|
icon | string |
25 | The icon to display |
label | string |
50 | The label to show under the button |
cmd | string |
10 | The command to execute when the button is called. |
key | string |
[] | The key to use for activating the button. |
apm
is GNU GPLv3 licensed.