hypr-cycle 0.5.1

A fast and monitor-aware workspace cycler for Hyprland, written in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use anyhow::Context;
use hypr_cycle::HyprCycle;

fn main() -> anyhow::Result<()> {
    let args = HyprCycle::parse_args();
    let svc = HyprCycle::real().context("Are you sure you're running Hyprland?")?;

    let direction = args.direction;
    let target = svc.get_target_workspace(direction)?;

    svc.switch_to_workspace(&target)
}