Skip to content

Commit

Permalink
renamed
Browse files Browse the repository at this point in the history
Signed-off-by: Enrico Stemmer <stemmer.enrico@gmail.com>
  • Loading branch information
H3rmt committed Feb 3, 2024
1 parent 1ef5b47 commit 11e2073
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 36 deletions.
24 changes: 12 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "window_switcher"
name = "hyprswitch"
description = "A CLI that allows switching between windows in Hyprland"
version = "0.2.1"
edition = "2021"
license = "MIT"
readme = "README.md"
documentation = "https://docs.rs/crate/window_switcher"
repository = "https://github.com/H3rmt/WindowSwitcher/"
documentation = "https://docs.rs/crate/hyprswitch"
repository = "https://github.com/h3rmt/hyprswitch/"
keywords = ["hyprland", "hyprland"]
categories = ["command-line-utilities"]

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# hyprswitch

[![crates.io](https://img.shields.io/crates/v/window_switcher.svg)](https://crates.io/crates/window_switcher)
[![Docs](https://docs.rs/built/badge.svg)](https://docs.rs/window_switcher)
[![Tests](https://github.com/H3rmt/WindowSwitcher/actions/workflows/rust.yml/badge.svg)](https://github.com/H3rmt/WindowSwitcher/actions/workflows/rust.yml)
[![crates.io](https://img.shields.io/crates/v/hyprswitch.svg)](https://crates.io/crates/hyprswitch)
[![Docs](https://docs.rs/built/badge.svg)](https://docs.rs/hyprswitch)
[![Tests](https://github.com/h3rmt/hyprswitch/actions/workflows/rust.yml/badge.svg)](https://github.com/h3rmt/hyprswitch/actions/workflows/rust.yml)

A small rust CLI tool to switch between windows in hyperland.

Expand Down
16 changes: 8 additions & 8 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ use hyprland::dispatch::DispatchType::FocusWindow;
use hyprland::prelude::*;
use hyprland::shared::WorkspaceId;

use window_switcher::{MonitorData, MonitorId, WorkspaceData};
use window_switcher::sort::{sort_clients, SortableClient, update_clients};
use hyprswitch::{MonitorData, MonitorId, WorkspaceData};
use hyprswitch::sort::{sort_clients, SortableClient, update_clients};

#[derive(Parser, Debug)]
#[command(author, version, about, long_about = None)]
Expand Down Expand Up @@ -51,22 +51,22 @@ struct Args {
/// # Usage
///
/// * Switch between windows of same class
/// * `window_switcher --same-class`
/// * `hyprswitch --same-class`
/// * Switch backwards
/// * `window_switcher --reverse`
/// * `hyprswitch --reverse`
///
/// ## Special
///
/// * Cycles through window on current workspace
/// * `window_switcher --stay-workspace`
/// * `hyprswitch --stay-workspace`
///
/// * Ignore workspaces and sort like one big workspace
/// * `window_switcher --ignore-workspaces`
/// * `hyprswitch --ignore-workspaces`
/// * Ignore monitors and sort like one big monitor
/// * `window_switcher --ignore-monitors`
/// * `hyprswitch --ignore-monitors`
///
/// * Display workspaces vertically on monitors
/// * `window_switcher --vertical-workspaces`
/// * `hyprswitch --vertical-workspaces`
///
fn main() -> Result<(), Box<dyn std::error::Error>> {
let cli = Args::parse();
Expand Down
4 changes: 2 additions & 2 deletions tests/many_windows/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ use std::time::Instant;

use hyprland::shared::WorkspaceId;

use window_switcher::{MonitorData, WorkspaceData};
use window_switcher::sort::{sort_clients, update_clients};
use hyprswitch::{MonitorData, WorkspaceData};
use hyprswitch::sort::{sort_clients, update_clients};

use crate::common::{create_svg_from_client_tests, function, is_sorted, MockClient};

Expand Down
4 changes: 2 additions & 2 deletions tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ pub mod common {

use hyprland::shared::WorkspaceId;

use window_switcher::sort::{SortableClient, MONITOR_WORKSPACE_INDEX_OFFSET};
use window_switcher::MonitorData;
use hyprswitch::sort::{SortableClient, MONITOR_WORKSPACE_INDEX_OFFSET};
use hyprswitch::MonitorData;

use crate::svg::create_svg;

Expand Down
4 changes: 2 additions & 2 deletions tests/multi_workspace_multi_monitor_horizontal/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ use std::time::Instant;

use hyprland::shared::WorkspaceId;

use window_switcher::sort::{sort_clients, update_clients};
use window_switcher::{MonitorData, WorkspaceData};
use hyprswitch::sort::{sort_clients, update_clients};
use hyprswitch::{MonitorData, WorkspaceData};

use crate::common::{create_svg_from_client_tests, function, is_sorted, MockClient};

Expand Down
4 changes: 2 additions & 2 deletions tests/multi_workspaces/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ use std::time::Instant;

use hyprland::shared::WorkspaceId;

use window_switcher::sort::{sort_clients, update_clients};
use window_switcher::{MonitorData, WorkspaceData};
use hyprswitch::sort::{sort_clients, update_clients};
use hyprswitch::{MonitorData, WorkspaceData};

use crate::common::{create_svg_from_client_tests, function, is_sorted, MockClient};

Expand Down
4 changes: 2 additions & 2 deletions tests/simple/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ use std::time::Instant;

use hyprland::shared::WorkspaceId;

use window_switcher::sort::{sort_clients, update_clients};
use window_switcher::{MonitorData, WorkspaceData};
use hyprswitch::sort::{sort_clients, update_clients};
use hyprswitch::{MonitorData, WorkspaceData};

use crate::common::{create_svg_from_client_tests, function, is_sorted, MockClient};

Expand Down

0 comments on commit 11e2073

Please sign in to comment.