more housekeeping
This commit is contained in:
parent
80d4d72417
commit
e5a7c4108d
6 changed files with 2 additions and 8 deletions
2
build.rs
2
build.rs
|
|
@ -1,7 +1,7 @@
|
|||
use clap::{CommandFactory, command};
|
||||
use clap_complete::{
|
||||
generate_to,
|
||||
shells::{Bash, Fish, Zsh, Elvish},
|
||||
shells::{Bash, Elvish, Fish, Zsh},
|
||||
};
|
||||
use std::env;
|
||||
use std::io::Error;
|
||||
|
|
|
|||
|
|
@ -51,6 +51,5 @@ pub async fn watch(
|
|||
let main = wx.main();
|
||||
wx.config.pathset([watch_path]);
|
||||
let _ = main.await.into_diagnostic();
|
||||
//todo: handle this return properly
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
|
|
@ -147,7 +147,6 @@ pub fn lock_screen(lock_config: LockConf, force_bg_render: bool) -> Result<(), S
|
|||
}
|
||||
|
||||
pub fn generate_image(orig_img_data: DynamicImage, gen_image_path: PathBuf, lock_conf: LockConf) {
|
||||
// Result<(), ImageError> {
|
||||
let w = orig_img_data.width() as f32 * lock_conf.scale;
|
||||
let h = orig_img_data.height() as f32 * lock_conf.scale;
|
||||
let blurred_img_data = orig_img_data
|
||||
|
|
|
|||
|
|
@ -139,7 +139,6 @@ fn initialize(
|
|||
uindex: usize,
|
||||
preserve_keyboard_order: bool,
|
||||
) -> Result<(), SDUError> {
|
||||
//payload: String) {
|
||||
for i in 0..10 {
|
||||
let workspace = (uindex * 10)
|
||||
+ match i.eq(&0) && !preserve_keyboard_order {
|
||||
|
|
|
|||
|
|
@ -33,7 +33,6 @@ pub fn get_window_info(window_icons: &[WindowIcon]) -> Value {
|
|||
debug!("{:#?}", window_count);
|
||||
let window_title = if window_count.gt(&0) {
|
||||
let window_node = nodes_tree.iter().find(|x| x.focused);
|
||||
//debug!("{:#?}",window_node);
|
||||
match window_node {
|
||||
Some(n) => {
|
||||
let mut window_name = n.name.clone().unwrap_or_default();
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#![warn(unused_crate_dependencies)]
|
||||
//#![allow(clippy::style)]
|
||||
#![allow(clippy::style)]
|
||||
|
||||
mod config;
|
||||
#[path = "lib/mod.rs"]
|
||||
|
|
@ -20,9 +20,7 @@ use {
|
|||
|
||||
fn main() -> Result<(), ()> {
|
||||
let _build_script = include_str!("../Cargo.toml");
|
||||
let _build_script = include_str!("../Cargo.lock");
|
||||
env_logger::init();
|
||||
//Cli::command();
|
||||
let cli = Cli::parse();
|
||||
let config = if confy::get_configuration_file_path("sway-de-utils", "config")
|
||||
.expect("Unable to determine config file location")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue