You are not logged in.

#26 2015-10-29 10:43:50

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,407
Website

Re: Fancy i3 lock script

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

#27 2015-10-29 11:06:45

nabz0r
Member
From: Up north in the Viking Land
Registered: 2015-04-18
Posts: 18
Website

Re: Fancy i3 lock script

lol found around, I meant was looking around. wink
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

#28 2015-10-29 11:47:21

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,407
Website

Re: Fancy i3 lock script

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

#29 2015-11-18 09:53:03

beanaroo
Member
Registered: 2013-03-05
Posts: 39

Re: Fancy i3 lock script

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

#30 2015-11-21 03:03:46

Meskarune
Member
From: Helsinki, Finland
Registered: 2009-03-21
Posts: 361
Website

Re: Fancy i3 lock script

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

#31 2016-03-16 07:03:31

Swoorup
Member
Registered: 2014-01-05
Posts: 6

Re: Fancy i3 lock script

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.)

http://www.imagemagick.org/Usage/blur/

Offline

#32 2016-03-16 13:40:49

Meskarune
Member
From: Helsinki, Finland
Registered: 2009-03-21
Posts: 361
Website

Re: Fancy i3 lock script

Swoorup wrote:

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.)

http://www.imagemagick.org/Usage/blur/

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

#33 2016-04-08 14:45:32

Meskarune
Member
From: Helsinki, Finland
Registered: 2009-03-21
Posts: 361
Website

Re: Fancy i3 lock script

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

#34 2016-04-09 03:31:54

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Fancy i3 lock script

Moving thread to "Community Contributions" after consulting with the OP.

Offline

#35 2016-04-11 20:33:42

CLFAS
Member
Registered: 2014-04-13
Posts: 61

Re: Fancy i3 lock script

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

#36 2016-04-12 00:16:50

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 1,212

Re: Fancy i3 lock script

@meskarune, this is a really neat script.  I like how simple yet beautiful this is.  Thanks for sharing smile

Offline

#37 2016-04-12 10:22:43

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,407
Website

Re: Fancy i3 lock script

CLFAS wrote:

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

#38 2016-04-12 17:19:34

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 1,212

Re: Fancy i3 lock script

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

#39 2016-04-14 01:14:49

Meskarune
Member
From: Helsinki, Finland
Registered: 2009-03-21
Posts: 361
Website

Re: Fancy i3 lock script

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

Board footer

Powered by FluxBB