Compare commits
No commits in common. "b500fa26a1cfd34a9fc5cf4c79950024a2811214" and "bdd0854f2b2e7bf9218953316d9c14ad0a288270" have entirely different histories.
b500fa26a1
...
bdd0854f2b
3 changed files with 4 additions and 13 deletions
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "ewwbar"
|
name = "ewwbar"
|
||||||
version = "0.1.2"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
pkgs.rustPlatform.buildRustPackage {
|
pkgs.rustPlatform.buildRustPackage {
|
||||||
pname = "ewwbar";
|
pname = "ewwbar";
|
||||||
version = "0.1.2";
|
version = "1.0.0";
|
||||||
|
|
||||||
src = builtins.path { path = ./.; name = "ewwbar"; };
|
src = builtins.path { path = ./.; name = "ewwbar"; };
|
||||||
|
|
||||||
|
@ -30,6 +30,6 @@ pkgs.rustPlatform.buildRustPackage {
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
mainProgram = "ewwbar";
|
mainProgram = "ewwbar";
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
11
src/main.rs
11
src/main.rs
|
@ -19,15 +19,6 @@ fn main() -> Result<(), Box<dyn Error>> {
|
||||||
// Set `RUST_LOG=debug` to see extra debug information.
|
// Set `RUST_LOG=debug` to see extra debug information.
|
||||||
env_logger::init();
|
env_logger::init();
|
||||||
|
|
||||||
let exe_path = std::env::current_exe()?
|
|
||||||
.parent()
|
|
||||||
.unwrap()
|
|
||||||
.to_str()
|
|
||||||
.unwrap()
|
|
||||||
.to_owned();
|
|
||||||
let config_path = exe_path + "/eww";
|
|
||||||
println!("Path: {}", config_path);
|
|
||||||
|
|
||||||
// Try to connect to the Wayland server.
|
// Try to connect to the Wayland server.
|
||||||
let conn = Connection::connect_to_env()?;
|
let conn = Connection::connect_to_env()?;
|
||||||
|
|
||||||
|
@ -81,7 +72,7 @@ fn main() -> Result<(), Box<dyn Error>> {
|
||||||
"--arg",
|
"--arg",
|
||||||
"height=30",
|
"height=30",
|
||||||
"--config",
|
"--config",
|
||||||
&config_path,
|
CONFIG_DIR,
|
||||||
])
|
])
|
||||||
.spawn()
|
.spawn()
|
||||||
.expect("failed to execute process");
|
.expect("failed to execute process");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue