| Crates.io | stslayer |
| lib.rs | stslayer |
| version | 0.1.0 |
| created_at | 2024-12-26 17:46:40.37303+00 |
| updated_at | 2024-12-26 17:46:40.37303+00 |
| description | Status Slayer is a configurable implementation of status command for Sway WM using Swaybar Protocol |
| homepage | |
| repository | https://codeberg.org/lig/status-slayer |
| max_upload_size | |
| id | 1495841 |
| size | 49,483 |
Status Slayer is a configurable implementation of the status command for Sway WM using the Swaybar Protocol. Written in Rust, it provides a fast and highly customizable way to display status information in your Swaybar.
hostname, date, memory, cpu, network) that eliminate the need for external commands.Install using Cargo:
cargo install --locked stlayer
Add the following to your Sway configuration file (~/.config/sway/config):
status_command stslayer --config <path to config>
Replace <path to config> with the path to your configuration file.
Status Slayer uses a TOML-based configuration file. Below is an example:
[[section]]
name = "kernel name"
command = "uname -s"
interval = "oneshot"
[[section]]
name = "date and time"
command = 'date "+%Y-%m-%d %H:%M:%S"'
name: A label for the section.command: The shell command to execute for the section.interval: The interval in seconds to execute the command (default: 1). Use "oneshot" for commands that run only once.Contributions are welcome! If you find a bug, have a feature request, or want to contribute code, feel free to:
This project is licensed under the MIT License. See the LICENSE file for details.