Comments (7)
Text shadowing in cairo would be a bit tricky. I can think of a few ways to do it (every time draw_text gets invoked, there can be a check for a text.shadow option, then we can redraw the same text, shifted a bit, and all black or something), but none off the top of my head that I really like.
As for the latter, you can actually already do that - --blur and --image aren't mutually exclusive. Any image you specify will get layered over the blurred background, and you should be able to tile images with an alpha channel too. You could either just pre-gen an image that's the same dimensions as your screen geometry and is #00000033
, or you could probably just do that, but 1x1 and then tell i3lock to tile it.
from i3lock-color.
About 1. I see your point, maybe a text outline would be enough? (something like this).
Edit: at first I was thinking about:
But if I understand correctly, this is not directly available with cairo.
About 2. Thanks for the trick! I'll try that for now.
Now I wonder if it'll be possible one day to specify N colored rectangle(s), to do this effect on some parts of the screen (e.g: where our clock is, or the bottom of the screen, ...). Should I open a new issue for this/discuss this?
from i3lock-color.
A text outline might sorta work, but doesn't look the best, in my opinion. If I do text shadowing, I'll want to do it the "right" way (with some blurring to smooth it out).
The rectangles would sorta possible, but again, you can pretty much preprocess it and pass it in.
If I end up doing a big rewrite to handle config files to allow for different configs for multiple screens, it'd become pretty trivial to just allow arbitrary rectangles of different color. But until then, setting it up on the CLI would be a gigantic pain, so it wouldn't be done until then.
from i3lock-color.
The rectangles would sorta possible, but again, you can pretty much preprocess it and pass it in.
Not so easy to preprocess I think, as you loose the variables for the placement (relative to text/indic or to the screen).
If I end up doing a big rewrite to handle config files to allow for different configs for multiple screens, it'd become pretty trivial to just allow arbitrary rectangles of different color.
Sounds good, if you need help I might be interested and give it a try 😃
But until then, setting it up on the CLI would be a gigantic pain.
With the current CLI config, I agree. I've been thinking about another way to organize the CLI args, that would allow more advanced graphic stuff (like custom text widget or rectangles) later, I'll probably open another issue about that.
from i3lock-color.
Anything that'd require reworking the CLI stuff will probably be dropped/ignored, since I think the better solution is to support config files. That's just inherently more flexible.
(As in, purely extending the CLI parsing isn't really what I want to do/it'll probably limit config stuff going forwards. I don't want to break compatibility multiple times, so the next break I do will be pretty big)
from i3lock-color.
Been playing around with this some. I dunno if there's any easy way to implement this with Cairo in a way that doesn't suck, frankly.
from i3lock-color.
Yeah, I'm going to close this for now since I don't think it'll really be viable with how i3lock-color works right now.
from i3lock-color.
Related Issues (20)
- Media keys are not passed HOT 1
- man page description for --composite is unclear HOT 4
- Lag for Random Image Change, Occasional Freeze/Lag during Computer Lockscreen HOT 2
- [Suggestion] Lock/Duration/Unlock Session Log (Option) HOT 1
- Password check if 'backspace' is pressed when no character is buffered
- Build failure HOT 7
- [Suggestion] GNU Grub Bootloader Init Tune Parameter for Lockscreen Login Error (Option)
- Cursor not hidden when i3lock is run from a different TTY
- Wrong timezone used when TZ environment variable is set to anything
- When new release? Modifier keys updated on i3lock HOT 3
- `./configure` fails to find libev in `/usr/local/lib` HOT 5
- Notifications above lock screen (no compositor) HOT 4
- libxcb-xkb.so.1: cannot open shared object file: No such file or directory HOT 3
- Feature request: require password to unlock only after certain seconds HOT 2
- Font outlines are displayed on the wrong layer with Bahnschrift font HOT 4
- Command not found HOT 1
- Modkey stays on screen longer than expected HOT 1
- Dead link in README HOT 1
- Extreme Lag With xcompmgr HOT 1
- Memory leak when running slideshow
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from i3lock-color.