Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/pavel-n/rpower
- Owner: Pavel-N
- License: gpl-3.0
- Created: 2023-03-12T21:28:26.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-18T09:05:44.000Z (11 months ago)
- Last Synced: 2024-10-25T10:39:00.943Z (about 2 months ago)
- Topics: iced, linux, power, powermenu, rust
- Language: Rust
- Homepage:
- Size: 33.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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