All Projects β†’ betterlockscreen β†’ betterlockscreen

betterlockscreen / betterlockscreen

Licence: MIT License
πŸ€ sweet looking lockscreen for linux system

Programming Languages

shell
77523 projects
Nix
1067 projects

Projects that are alternatives of or similar to betterlockscreen

Betterlockscreen
Most of i3lock wrapper-scripts out there take an image, add some effect(s) then lock with the modified image as locker-background. Overall experience doesn't feel natural given delay of 2-3 seconds.
Stars: ✭ 1,757 (-5.64%)
Mutual labels:  lockscreen, i3lock, i3wm, feh, i3lock-color, lockscreen-background, betterlockscreen
i3lock-color
The world's most popular non-default computer lockscreen.
Stars: ✭ 904 (-51.45%)
Mutual labels:  lockscreen, i3lock, i3lock-color
i3lock-next
Create a fancy image to use with i3lock.
Stars: ✭ 64 (-96.56%)
Mutual labels:  i3lock, i3wm
i3configger
i3 config manipulation tool
Stars: ✭ 23 (-98.76%)
Mutual labels:  i3wm
i3status
Simple status bar for i3 / i3-gaps / sway written in bash and python
Stars: ✭ 69 (-96.29%)
Mutual labels:  i3wm
polybar-now-playing
Script for polybar to display and control media(not only Spotify) using DBus.
Stars: ✭ 34 (-98.17%)
Mutual labels:  i3wm
dotfiles
My (bsp/i3)wm dotfiles.
Stars: ✭ 20 (-98.93%)
Mutual labels:  i3wm
nextshot
A simple tool for taking screenshots on Linux and sharing via Nextcloud
Stars: ✭ 37 (-98.01%)
Mutual labels:  i3wm
dotfiles
My dotfiles.
Stars: ✭ 113 (-93.93%)
Mutual labels:  i3wm
i3nator
i3nator is Tmuxinator for the i3 window manager
Stars: ✭ 57 (-96.94%)
Mutual labels:  i3wm
swayinfo
Some goodies for use in Sway and i3 wm
Stars: ✭ 30 (-98.39%)
Mutual labels:  i3wm
archlinuxcn-dotfiles-collection
ζ₯θ‡ͺη€ΎεŒΊε°δΌ™δΌ΄δ»¬ηš„ dotfiles 集锦
Stars: ✭ 73 (-96.08%)
Mutual labels:  i3wm
i3blocks-modules
Custom modules for i3blocks status bar
Stars: ✭ 36 (-98.07%)
Mutual labels:  i3wm
Loki.Rat
Loki.Rat is a fork of the Ares RAT, it integrates new modules, like recording , lockscreen , and locate options. Loki.Rat is a Python Remote Access Tool.
Stars: ✭ 63 (-96.62%)
Mutual labels:  lockscreen
dotfiles
collection (and a backup) of my config files
Stars: ✭ 49 (-97.37%)
Mutual labels:  i3wm
dotfiles
My dotfiles
Stars: ✭ 23 (-98.76%)
Mutual labels:  i3wm
todofi.sh
Handle your todo-txt tasks directly from Rofi
Stars: ✭ 46 (-97.53%)
Mutual labels:  i3wm
dotfiles
dotfiles for the command line home
Stars: ✭ 21 (-98.87%)
Mutual labels:  i3wm
axyl-iso
Axyl is a Linux distro centered on tiling window managers. Choose from i3, bspwm, dwm and more.
Stars: ✭ 348 (-81.31%)
Mutual labels:  i3wm
ansible-debian
Buildfiles: Ansible automated leight-weight and sensible Debian provisioning
Stars: ✭ 83 (-95.54%)
Mutual labels:  i3wm

Betterlockscreen

fast and sweet looking lockscreen for linux systems with effects!

GitHub release (latest by date including pre-releases) GitHub release (latest by date) GitHub Workflow Status (main) GitHub Workflow Status (next) GitHub milestone GitHub commits since latest release (by date) for a branch

You want to support us?

GitHub Repo stars GitHub forks


scrot2

Table of Contents

About

Most of i3lock wrapper-scripts out there take an image, add some effect(s) then lock with the modified image as locker-background. Overall experience doesn't feel natural given delay of 2-3 seconds.

Who would like a delay of 2-3 seconds while locking screen?

So Betterlockscreen was my attempt to solve this problem, as we dont need to change lockscreen background frequently this script caches images with effect so overall experience is simple and as fast as native i3lock.

How it works

The script takes a directory or image, adds various effects and caches the images in special directory. Those cached images will be used as locker-background depending on configuration provided by user.

System Requirements

Note: Make sure your system has all dependencies satisfied

Installation

Package Manager

Packaging status

Betterlockscreen is available via package manager on some linux-distributions, if you miss your favorite one you can follow along with our installation-script or manual-installation.

If you are using Arch Linux, you can install the AUR package betterlockscreen to get the latest version, or betterlockscreen-git for the most up-to-date (unstable) changes.

If you are using Gentoo Linux, you can install betterlockscreen from Gentoo's GURU overlay using emerge x11-misc/betterlockscreen.

If you are using NixOS, betterlockscreen is available in both the stable and unstable channels and can be installed using nix-env -iA nixos.betterlockscreen.

If you are using Void Linux, you can install betterlockscreen using xbps-install -S betterlockscreen.

Installation Script

We have created an automatic install-script for Betterlockscreen. The script is very simple and takes three parameters:

  • <install-mode>: (string) 'user' installs to '~/.local/bin/', 'system' installs to '/usr/local/bin'
  • [<version>]: (string) defaults to 'latest' which will determinate the latest tag from git or specified branch/tag
  • [<systemd-service>]: (boolean) defaults to 'false' - Whether to copy and enable system-service.

For system-installation:

wget https://git.io/JZyxV -O - -q | bash -- system

For user-installation:

wget https://git.io/JZyxV -O - -q | bash -- user

Please note: The git.io-URL is just a short-url for the main/install.sh.

Manual Installation

α»²ou can download the latest release here, please ensure to fullfill the system-requirements!

You will need to copy "betterlockscreen" to you desired binary-directory, if you want to use the systemd-service you will need to copy the service-file from "system/" to the desired location on your system.

Example (Ubuntu):

wget https://github.com/pavanjadhaw/betterlockscreen/archive/refs/heads/main.zip
unzip main.zip

cd betterlockscreen-main/
chmod u+x betterlockscreen
cp betterlockscreen /usr/local/bin/

cp system/[email protected] /usr/lib/systemd/system/
systemctl enable betterlockscreen@$USER

Configuration

You can customize betterlockscreen for your needs, copy the config file from the examples-directory to ~/.config/betterlockscreenrc and edit it accordingly.

If no configuration-file is found, then the default configurations (which is equal to the example but currently hardcoded) will be used.

If you have installed betterlockscreen from AUR package, then you can copy default config from docs

cp /usr/share/doc/betterlockscreen/examples/betterlockscreenrc ~/.config

Usage

Run betterlockscreen and point it to either a directory (betterlockscreen -u "path/to/dir") or an image (betterlockscreen -u "/path/to/img.jpg") and that's all. betterlockscreen will change update its cache with image you provided.

Usage: betterlockscreen [-u <PATH>] [-l <EFFECT>] [-w <EFFECT>]

  -u --update <PATH>
      Update lock screen image

  -l --lock <EFFECT>
      Lock screen with cached image

  -w --wall <EFFECT>
      Set wallpaper with cached image

Additional arguments:

  --display <N>
      Set display to draw loginbox

  --span
      Scale image to span multiple displays

  --off <N>
      Turn display off after N seconds

  --fx <EFFECT,EFFECT,EFFECT>
      List of effects to apply

  -- <ARGS>
      Pass following arguments to i3lock

Effects arguments:

  --dim <N>
      Dim image N percent (0-100)

  --blur <N>
      Blur image N amount (0.0-1.0)

  --pixel <N,N>
      Pixelate image with N shrink and N grow (unsupported)

  --color <HEX>
      Solid color background with HEX

Examples

  1. Update image cache with random image betterlockscreen -u ~/Wallpapers

  2. Update image cache with only dim and pixel effects betterlockscreen -u ~/Wallpapers/image.png --fx dim,pixel

  3. Update image cache with random image, multiple monitors, login on 1, spanning betterlockscreen -u ~/Wallpapers/Dual/ --display 1 --span

  4. Update image cache with solid background only (ignore errors) betterlockscreen -u . --fx color --color 5833ff

  5. Update image cache with different background images betterlockscreen -u ~/Wallpapers/image1.png -u ~/Wallpapers/image2.png

  6. Lock screen with blur effect betterlockscreen --lock blur

  7. Lock screen with multiple monitors, spanning betterlockscreen -l dimblur --display 1 --span

Background

Add this line to .xinitrc.

# set desktop background with custom effect
betterlockscreen -w dim

# Alternative (set last used background)
source ~/.fehbg

i3wm

Add this line to ~/.config/i3/config

# set desktop background with custom effect
exec --no-startup-id betterlockscreen -w dim

# Alternative (set last used background)
exec --no-startup-id source ~/.fehbg

Keybindings

To lockscreen using keyboard shortcut

i3wm

Add this line to your ~/.config/i3/config

bindsym $mod+shift+x exec betterlockscreen -l dim

bspwm

Add this line to your ~/.config/sxhkd/sxhkdrc

# lockscreen
alt + shift + x
    betterlockscreen -l dim

Systemd-Service: Lockscreen after sleep/suspend

# move service file to proper dir (the aur package does this for you)
cp [email protected] /usr/lib/systemd/system/

# enable systemd service
systemctl enable betterlockscreen@$USER

# disable systemd service
systemctl disable betterlockscreen@$USER

# Note: Now you can call systemctl suspend to suspend your system
# and betterlockscreen service will be activated
# so when your system wakes your screen will be locked.

Hint: The systemd-unit expects betterlockscreen to be installed in "/usr/local/bin", so maybe you want to check or change this!

Resources and more informations:


Contributing

Please see CONTRIBUTING.md.

License

Betterlockscreen is under MIT license.

Feel free to use and distribute

  • Hat tip to anyone who's code was used
  • Thanks to those who contributed to make it better
  • Inspiration - r/unixporn
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].