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.
- Host: GitHub
- URL: https://github.com/bcyran/anyrun-powermenu
- Owner: bcyran
- Created: 2024-08-06T18:22:35.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2025-09-02T18:39:15.000Z (9 months ago)
- Last Synced: 2025-10-10T13:41:38.750Z (8 months ago)
- Language: Rust
- Homepage:
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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,
),
)
```