Skip to content

phreshbrread/pmenu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

135 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pmenu

TUI-based power menu written in C for Linux and BSD systems. Handles shutting down, rebooting and suspending.

Usage

Simply run from a terminal. I recommend setting a keybind to open and execute at the same time. Example: kitty -T pmenu -o font_size=16 pmenu

Run pmenu --help to view valid cmd arguments

Install

Nix

This repo can be added as a custom package. To do so, include the following in your flake.nix:

    inputs = {
        pmenu.url = "github:phreshbrread/pmenu";
    };

Make sure the nixosConfiguration for your system receives this input. Then, in your configuration.nix (or wherever else your package lists are):

    environment.systemPackages = with pkgs; [
        inputs.pmenu.packages.${pkgs.system}.default
    ];

Everything else

There are currently no prebuilt binaries. To install, simply run cmake-install.sh in scripts/ to build and install. Alternatively, manually run the following:

    mkdir -p build && cmake -B build && cmake --build build && cmake --install build

Building

Dependencies

  • cmake
  • ncurses

With nix

Simply run nix build to build according to the included flake.nix

Manual build

Run cmake-build.sh in the script/ directory, or manually run the following:

    mkdir -p build && cmake -B build && cmake --build build

This will output a binary at ./build/pmenu

About

TUI-based power menu written in C for Linux and BSD systems

Resources

License

Stars

Watchers

Forks

Contributors