开源软件名称(OpenSource Name):betterlockscreen/betterlockscreen开源软件地址(OpenSource Url):https://github.com/betterlockscreen/betterlockscreen开源编程语言(OpenSource Language):Shell 99.0%开源软件介绍(OpenSource Introduction):Betterlockscreen
Table of Contents
AboutMost 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.
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 worksThe 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
InstallationPackage ManagerBetterlockscreen 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 If you are using NixOS, betterlockscreen is available in both the stable and unstable channels and can be installed using If you are using Void Linux, you can install betterlockscreen using Installation ScriptWe have created an automatic install-script for Betterlockscreen. The script is very simple and takes three parameters:
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/betterlockscreen@.service /usr/lib/systemd/system/
systemctl enable betterlockscreen@$USER ConfigurationYou can customize betterlockscreen for your needs, copy the config file from the examples-directory to 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 UsageRun 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
BackgroundAdd this line to # set desktop background with custom effect
betterlockscreen -w dim
# Alternative (set last used background)
source ~/.fehbg i3wmAdd this line to # set desktop background with custom effect
exec --no-startup-id betterlockscreen -w dim
# Alternative (set last used background)
exec --no-startup-id source ~/.fehbg KeybindingsTo lockscreen using keyboard shortcut i3wmAdd this line to your bindsym $mod+shift+x exec betterlockscreen -l dim bspwmAdd this line to your # 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 betterlockscreen@.service /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:
ContributingPlease see CONTRIBUTING.md. LicenseBetterlockscreen is under MIT license. Feel free to use and distribute
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论