Skip to content

i3lock script that takes a screenshot of the desktop, blurs the background and adds a lock icon and battery percentage

License

Notifications You must be signed in to change notification settings

NULLx76/i3lock-fancy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

i3lock-fancy (with battery percentage)

This is an i3lock bash script that takes a screenshot of the desktop, blurs the background and adds a lock icon and text with the battery percentage

screen shot of lockscreen

Dependencies

Installation

Install by cloning the repo and running ./install.sh or manually copying lock, lock.png and lockdark.png to "/usr/local/bin"

Removal

Remove by running ./remove.sh or by deleting lock, lock.png and lockdark.png from "/usr/local/bin"

Usage

lock [options]

Options:
    -h, --help   This help menu.
    -g, --greyscale  Set background to greyscale instead of color.
    -p, --pixelate   Pixelate the background instead of blur, runs faster.
    -f <fontname>, --font <fontname>  Set a custom font. Type 'convert -list font' in a terminal to get a list.

example: lock -gpf Comic-Sans-MS

Extras

Use this with xautolock to automatically lock the screen after a set time.

Systemd Unit file (edit for your own use):

[Unit]
Description=Lock the screen automatically after a timeout

[Service]
Type=simple
User=meskarune
Environment=DISPLAY=:0
ExecStart=/usr/bin/xautolock -time 5 -locker /usr/local/bin/lock -detectsleep

[Install]
WantedBy=graphical.target

About

i3lock script that takes a screenshot of the desktop, blurs the background and adds a lock icon and battery percentage

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%