An open API service indexing awesome lists of open source software.

https://github.com/bcyran/anyrun-powermenu

Powermenu plugin for anyrun.
https://github.com/bcyran/anyrun-powermenu

Last synced: 8 months ago
JSON representation

Powermenu plugin for anyrun.

Awesome Lists containing this project

README

          

# Powermenu

Powermenu plugin for [anyrun](https://github.com/anyrun-org/anyrun).

## Usage

Search for one of the following actions: lock, logout, power off, reboot, suspend, hibernate.
Select the action.
If prompted, confirm it.

## Configuration

```ron
// /powermenu.ron
Config(
lock: (
command: "loginctl lock-session",
confirm: false,
),
logout: (
command: "loginctl terminate-user $USER",
confirm: true,
),
poweroff: (
command: "systemctl -i poweroff",
confirm: true,
),
reboot: (
command: "systemctl -i reboot",
confirm: true,
),
suspend: (
command: "systemctl -i suspend",
confirm: false,
),
hibernate: (
command: "systemctl -i hibernate",
confirm: false,
),
)
```