Pi66

Home | Repos | About | Blog | Gaza

walrs
pywal but if its Fast-Minimal-Simple
git clone https://git.pi66.xyz/walrs

About | Files | Commits | Refs | License


1.0.4

Author: pixel
Date: 2025-04-08 22:22
commit: a0bc2f1c

Stat

M Cargo.lock 2 +1 -1
M src/get_colors.rs 3 +2 -1
M src/main.rs 4 +2 -2

Diff

diff --git a/Cargo.lock b/Cargo.lock
index 75dfd39..daef4d4 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1061,7 +1061,7 @@ checksum = "852e951cb7832cb45cb1169900d19760cfa39b82bc0ea9c0e5a14ae88411c98b"

[[package]] name = "walrs" -version = "1.0.3" +version = "1.0.4" dependencies = [ "clap", "color-thief", diff --git a/src/get_colors.rs b/src/get_colors.rs index fbe229f..8d4c01d 100644 --- a/src/get_colors.rs +++ b/src/get_colors.rs @@ -101,7 +101,8 @@ pub fn get_colors(image_path: &str,send:bool,brightness: Option<i8>,saturation: }

...
Show all
diff --git a/Cargo.lock b/Cargo.lock
index 75dfd39..daef4d4 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1061,7 +1061,7 @@ checksum = "852e951cb7832cb45cb1169900d19760cfa39b82bc0ea9c0e5a14ae88411c98b"

[[package]] name = "walrs" -version = "1.0.3" +version = "1.0.4" dependencies = [ "clap", "color-thief", diff --git a/src/get_colors.rs b/src/get_colors.rs index fbe229f..8d4c01d 100644 --- a/src/get_colors.rs +++ b/src/get_colors.rs @@ -101,7 +101,8 @@ pub fn get_colors(image_path: &str,send:bool,brightness: Option<i8>,saturation: }

 let (mut r,mut g,mut b) =  collect&#95;rgb&#91;20&#93;;

- (r,g,b) = adjust_rgb(r,g,b,70,10); + (r,g,b) = adjust_rgb(r,g,b,40,10); + (r,g,b) = to_gray(r, g, b, Some(2)); done[7] = (r,g,b); done[15] = (r,g,b); diff --git a/src/main.rs b/src/main.rs index e1fa3d6..6811192 100644 --- a/src/main.rs +++ b/src/main.rs @@ -25,11 +25,11 @@ struct Arg { #[arg(short = 'g')] generate: Option<String>,

- /// reload Templates from cache file without set the wallpaper + /// reload Templates from cache file and set the wallpaper #[arg(short = 'r', action = ArgAction::SetTrue)] reload_nowal: bool,

- /// reload Templates from cache file and set the wallpaper + /// reload Templates from cache file without set the wallpaper #[arg(short = 'R', action = ArgAction::SetTrue)] reload: bool,

// Created by Pi66

// Copyright ©Pi66 2026