Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom blur level #93

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Add custom blur level #93

wants to merge 3 commits into from

Conversation

albalitz
Copy link

First of all thanks for this project. It looks awesome.

This adds an argument that allows setting a custom level of bluriness.
Here's a screenshot how i3lock-fancy -b 5.0 looks like:
i3lock-fancy-5 0

And one using 1.5 (the previous value and current default) for comparison:
i3lock-fancy-1 5

lock Outdated
@@ -44,7 +47,7 @@ options="Options:
# move pipefail down as for some reason "convert -list font" returns 1
set -o pipefail
trap 'rm -f "$image"' EXIT
temp="$(getopt -o :hdnpglt:f: -l desktop,help,listfonts,nofork,pixelate,greyscale,text:,font: --name "$0" -- "$@")"
temp="$(getopt -o :hdnpglt:fb: -l desktop,help,listfonts,nofork,pixelate,greyscale,text:,font,blur: --name "$0" -- "$@")"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one actually needs font: because font has a required parameter.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, fixed it. Thanks for the notice.

@meskarune
Copy link
Owner

The script originally had the option for a custom blur level, but if certain blur levels are used it becomes incredibly slow so after a lot of testing one was chosen that was blurred but still fast. If you could update this to the latest master I could pull the option in. Maybe a warning in the help can be added. People with very large monitors could see significant delays in image processing times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants