Skip to content

Commit

Permalink
revert name change for last release under old name
Browse files Browse the repository at this point in the history
  • Loading branch information
H3rmt committed Feb 3, 2024
1 parent 07b6892 commit 80d197b
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 36 deletions.
32 changes: 16 additions & 16 deletions Cargo.lock

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

10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
[package]
name = "hyprswitch"
description = "A CLI that allows switching between windows in Hyprland"
name = "window_switcher"
description = "A CLI that allows switching between windows in Hyprland \n(renamed to hyprswitch [https://crates.io/crates/hyprswitch])"
version = "0.3.0"
edition = "2021"
license = "MIT"
readme = "README.md"
documentation = "https://docs.rs/crate/hyprswitch"
documentation = "https://docs.rs/crate/window_switcher"
repository = "https://github.com/h3rmt/hyprswitch/"
keywords = ["hyprland", "hyprland"]
keywords = ["hyprland"]
categories = ["command-line-utilities"]

[dependencies]
clap = { version = "^4.4.11", features = ["derive"] }
clap = { version = "^4.4.18", features = ["derive"] }
hyprland = "0.3.12"

[dev-dependencies]
Expand Down
6 changes: 3 additions & 3 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 hyprswitch::{MonitorData, MonitorId, WorkspaceData};
use hyprswitch::sort::{sort_clients, SortableClient, update_clients};
use window_switcher::{MonitorData, MonitorId, WorkspaceData};
use window_switcher::sort::{sort_clients, SortableClient, update_clients};

#[derive(Parser, Debug)]
#[command(author, version, about, long_about = None)]
Expand Down Expand Up @@ -182,7 +182,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
let binding = Client::get_active()?;
let active = binding
.as_ref()
.unwrap_or(clients.get(0).expect("no active window and no windows"));
.unwrap_or(clients.first().expect("no active window and no windows"));
let active_address = active.address.to_string();
let active_class = active.class.clone();
let active_workspace_id = active.workspace.id;
Expand Down
4 changes: 2 additions & 2 deletions src/sort.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ use crate::{MonitorData, MonitorId, WorkspaceData};
/// Sorts clients with complex sorting
///
/// * 'clients' - Vector of clients to sort
/// * 'ignore_workspaces' - Dont split clients into workspaces (treat all clients on monitor as one workspace)
/// * 'ignore_monitors' - Dont split clients into monitors (treat all clients as one monitor)
/// * 'ignore_workspaces' - Don't split clients into workspaces (treat all clients on monitor as one workspace)
/// * 'ignore_monitors' - Don't split clients into monitors (treat all clients as one monitor)
pub fn sort_clients<SC>(
clients: Vec<SC>,
ignore_workspaces: bool,
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 hyprswitch::{MonitorData, WorkspaceData};
use hyprswitch::sort::{sort_clients, update_clients};
use window_switcher::{MonitorData, WorkspaceData};
use window_switcher::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 hyprswitch::sort::{SortableClient, MONITOR_WORKSPACE_INDEX_OFFSET};
use hyprswitch::MonitorData;
use window_switcher::sort::{SortableClient, MONITOR_WORKSPACE_INDEX_OFFSET};
use window_switcher::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 hyprswitch::sort::{sort_clients, update_clients};
use hyprswitch::{MonitorData, WorkspaceData};
use window_switcher::sort::{sort_clients, update_clients};
use window_switcher::{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 hyprswitch::sort::{sort_clients, update_clients};
use hyprswitch::{MonitorData, WorkspaceData};
use window_switcher::sort::{sort_clients, update_clients};
use window_switcher::{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 hyprswitch::sort::{sort_clients, update_clients};
use hyprswitch::{MonitorData, WorkspaceData};
use window_switcher::sort::{sort_clients, update_clients};
use window_switcher::{MonitorData, WorkspaceData};

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

Expand Down

0 comments on commit 80d197b

Please sign in to comment.