/anyrun-powermenu

A simple anyrun plugin to shutdown computer or logout user session through systemd commands.

Primary LanguageRustGNU General Public License v3.0GPL-3.0

Anyrun-Powermenu

A simple anyrun plugin to shutdown computer or logout user session through systemd commands. The specific commands for each action can be customized through a config file, which allows non-systemd guys to use this plugin.

Usage

Simple as it seems.

Demo Video

Configuration

Default config

// <Anyrun config dir>/powermenu.ron

Config(

  prefix: "p ",

  engines: [

    Custom(
      name: "Lock",
      cmd: "swaylock",
      icon: "system-lock-screen",
    ),

    Logout,
    Suspend,
    Hibernate,
    Reboot,
    Shutdown,

  ],

  max_entries: 12,
)