Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/pavel-n/rpower

Power menu written in Rust
https://github.com/pavel-n/rpower

iced linux power powermenu rust

Last synced: 10 days ago
JSON representation

Power menu written in Rust

Awesome Lists containing this project

README

        



rpower


Power menu written in Rust, because I've grown bored of rofi and needed something simple, customizable and (kinda) light.

## Prequesities
- [Cargo](https://github.com/rust-lang/cargo)

## Instalation
To build as release and initialize config directory:
```shell
$ make
```

## Configuration
All configuration is located in $HOME/.config/rpower

### [config.toml](./config/config.toml)
#### Window
- `width` => Window width
- `height` => Window height
- `background` => Color of background behind buttons (format: `[r, g, b]`)

#### Buttons
- `commands` => List of commands coresponding to each button
- `icon_names` => List of icon filenames (without extension) in the icons folder
- `icon_colors` => List of icons colors
- `normal_colors` => List of button background colors when not hovered
- `hover_colors` => List of button background colors when hovered

### [Button Icons](./config/icons)
- You can change any button to any svg inside the icon folder using `icon_names`
- Included icons come source:
- [Poweroff](https://www.svgrepo.com/svg/332492/poweroff)
- [Reboot](https://www.svgrepo.com/svg/487723/reload-ui-2?edit=true)
- [Suspend](https://www.svgrepo.com/svg/353055/controller-paus)
- [Lock](https://www.svgrepo.com/svg/505417/lock-on)

## Known bugs
- [This Iced error](https://github.com/iced-rs/iced/issues/2047) message can sometimes appear, however it should not cause major problems