Skip to content

Commit

Permalink
fixed hyprland at 0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
FieldofClay committed Apr 4, 2023
1 parent 8fcc1bb commit 6c00c9b
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 17 deletions.
37 changes: 25 additions & 12 deletions Cargo.lock

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

5 changes: 2 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
[package]
name = "hyprland-workspaces"
version = "1.1.0"
version = "1.1.1"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
hyprland = { git = "https://github.com/hyprland-community/hyprland-rs.git" }
hyprland = "0.3.1"
serde_json = "1.0"
serde = "1.0"

5 changes: 3 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use hyprland::data::{Monitors, Workspaces};
use hyprland::event_listener::EventListenerMutable as EventListener;
use hyprland::shared::{HResult, HyprData};
use hyprland::shared::HyprData;
use hyprland::Result;
use std::env;
use serde::Serialize;
use serde_json::json;
Expand Down Expand Up @@ -67,7 +68,7 @@ fn output(monitor: &str) {
}


fn main() -> HResult<()> {
fn main() -> Result<()> {
let args: Vec<String> = env::args().collect();
//check args
if args.len() != 2 || args[1].eq("-h") || args[1].eq("--help") {
Expand Down

0 comments on commit 6c00c9b

Please sign in to comment.