Skip to content

arunim-io/apm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arunim's Power Manager (apm)

apm is a simple power menu built with gtk4-layer-shell and gtk4.

Running

Just use the command apm to run.

Installation

From source

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/NixOS + Flakes

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";
    };
}

Configuration

apm is configured using toml. See examples/config.toml for reference.

For styling, see the following links:

See examples/styles.css for reference.

Options

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.

Button Options

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.

License

apm is GNU GPLv3 licensed.

About

Arunim's Power Manager

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published