You are not logged in.
It's a 16 line script. Instead of "finding around", just look at what it does.
Last edited by Alad (2015-10-29 10:44:02)
Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby
Offline
lol found around, I meant was looking around.
If I knew how scripting, etc works I wouldn't ask here, now would I? I am completely new to Linux and script world.
Cisco Network Consultant
Offline
Well, in the good tradition of teaching how to fish:
http://www.funtoo.org/Linux_Fundamentals,_Part_1
`apt-file` to relate commands to *buntu packages [/off topic]
Last edited by Alad (2015-10-29 11:51:02)
Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby
Offline
This is a really cool idea and a nice way of using `convert` functions I didn't know of. Too bad it doesn't work well with multiple monitor layouts, especially if the monitor layout changes often.
Last edited by beanaroo (2015-11-18 09:54:34)
Offline
I thought I should give an update, the script now has dark text/image for light backgrounds and light text/image for dark backgrounds and a better/faster blur by using resize.
Homepage | Arch Linux Women | Arch Linux Classroom
Acer Aspire E5-575G-53VG:
Intel Dual-Core i5-6200U 2.3 GHz; Skylake rev3 | 8GB DDR4 ram | Intel HD Graphics 520 + NVIDIA GeForce 940MX
Qualcomm Atheros QCA9377 802.11ac | Realtek RTL8111/8168/8411 Gigabit Ethernet Controller
Offline
You should also change the blurring algorithm to just -blur which is much faster.
From the wiki of ImageMagick:
Their are two general image blurring operators in ImageMagick. The "-gaussian-blur" spread and "-blur". The results of the two as very close, but as "-blur" is a faster algorithm, it is generally preferred to the former even though the former is more mathematically correct. (See Blur vs the Gaussian Blur Operator.)
Offline
You should also change the blurring algorithm to just -blur which is much faster.
From the wiki of ImageMagick:
Their are two general image blurring operators in ImageMagick. The "-gaussian-blur" spread and "-blur". The results of the two as very close, but as "-blur" is a faster algorithm, it is generally preferred to the former even though the former is more mathematically correct. (See Blur vs the Gaussian Blur Operator.)
I'm actually using a filter to create the blur effect which has a much faster speed than either -gaussian-blur or -blur.
http://www.imagemagick.org/Usage/filter/
The script runs in less than a second on my netbook with a small screen. I have a few other things I am testing to get the run time down even more, but honestly image processing is a rather costly operation no matter what you do.
If you haven't tried out the latest code, please test it and let me know what you think.
Homepage | Arch Linux Women | Arch Linux Classroom
Acer Aspire E5-575G-53VG:
Intel Dual-Core i5-6200U 2.3 GHz; Skylake rev3 | 8GB DDR4 ram | Intel HD Graphics 520 + NVIDIA GeForce 940MX
Qualcomm Atheros QCA9377 802.11ac | Realtek RTL8111/8168/8411 Gigabit Ethernet Controller
Offline
I have a few more updates. The script now has some cli options. You can set the font, change from blur to pixelation, or change to grey scale. There are also some alternative icons available in a directory and there is an AUR package up.
I made a dualmonitor branch with support for multiple monitors. I'm not totally sure I will pull the dualmonitor code into the main script as there are still some issues I need to figure out, like light/dark background support and better handling for centering text. It is stable and very usable now though.
Homepage | Arch Linux Women | Arch Linux Classroom
Acer Aspire E5-575G-53VG:
Intel Dual-Core i5-6200U 2.3 GHz; Skylake rev3 | 8GB DDR4 ram | Intel HD Graphics 520 + NVIDIA GeForce 940MX
Qualcomm Atheros QCA9377 802.11ac | Realtek RTL8111/8168/8411 Gigabit Ethernet Controller
Offline
Moving thread to "Community Contributions" after consulting with the OP.
Offline
So has anyone got this working on multiple monitors? I've got the issue with the text being spread half-way across each screen.
Apples?
Offline
@meskarune, this is a really neat script. I like how simple yet beautiful this is. Thanks for sharing
Offline
So has anyone got this working on multiple monitors? I've got the issue with the text being spread half-way across each screen.
Use the dualmonitor branch. As was mentioned two posts above yours.
Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby
Offline
That is strange. I just connected dual monitors via a dock (Dell WD15) and was able to have the main branch script work without flaw.
Offline
I unfortunately don't have dual monitors with which to test, so I have had to guess with handling them.
I guess I should mention there is an AUR package available now here: https://aur.archlinux.org/packages/i3lock-fancy-git/
Homepage | Arch Linux Women | Arch Linux Classroom
Acer Aspire E5-575G-53VG:
Intel Dual-Core i5-6200U 2.3 GHz; Skylake rev3 | 8GB DDR4 ram | Intel HD Graphics 520 + NVIDIA GeForce 940MX
Qualcomm Atheros QCA9377 802.11ac | Realtek RTL8111/8168/8411 Gigabit Ethernet Controller
Offline