Better lock screen linux

Arch Linux User Repository

Search Criteria

Package Details: betterlockscreen 4.0.3-2

Package Actions

Git Clone URL: https://aur.archlinux.org/betterlockscreen.git (read-only, click to copy)
Package Base: betterlockscreen
Description: A simple, minimal lockscreen
Upstream URL: https://github.com/pavanjadhaw/betterlockscreen
Keywords: betterlockscreen i3 i3lock i3lock-color lock lockscreen
Licenses: MIT
Conflicts: betterlockscreen-git
Submitter: AUTplayed
Maintainer: dctxmei (lilac)
Last Packager: lilac
Votes: 44
Popularity: 0.96
First Submitted: 2018-01-04 12:39
Last Updated: 2021-08-24 23:21

Dependencies (6)

Required by (14)

  • arcolinux-betterlockscreen
  • betterautolock
  • rofi-theme-android-1080p(optional)
  • rofi-theme-android-720p(optional)
  • rofi-theme-applet-1080p(optional)
  • rofi-theme-applet-720p(optional)
  • rofi-theme-fonts(optional)
  • rofi-theme-launcher-1080p(optional)
  • rofi-theme-launcher-720p(optional)
  • rofi-theme-menu-1080p(optional)
  • rofi-theme-menu-720p(optional)
  • rofi-theme-powermenu-1080p(optional)
  • rofi-theme-powermenu-720p(optional)
  • rofi-theme-used(optional)

Sources (2)

Latest Comments

Naide commented on 2021-08-23 11:58

betterlockscreen@.service must be updated or preferably betterlockscreen@.service from betterlockscreen-4.0.3.tar.gz must be used in the PKGBUILD. See issue #227 https://github.com/betterlockscreen/betterlockscreen/issues/277. The type «forking» was changed to «simple».

korikori commented on 2021-06-05 07:25

I’m not sure if this is a problem specific to arch, but the systemd service has the following ExecStart line:

This is even outlined as a «hint» in the project page on GitHub. However, the PKGBUILD file installs the script to /usr/bin. I believe that at least one of these files should be edited to address this?

dctxmei commented on 2021-06-04 09:23

I am very sorry, gentlemen. I have been busy with work lately and just saw this information.

Lilac Bot will update the package to the latest version soon.

hicklemon commented on 2021-06-04 03:15

if you want to fix it locally.

giannie commented on 2021-06-03 20:52

Is this package now orphaned. There have been several releases since February, but no updates. I am happy to take over maintaining the package if you no longer are able to.

danielgolf commented on 2021-05-29 18:32

I updated the PKGBUILD to version 3.1.1 and wrote a patch to get it running with recent changes of i3lock-color 2.13.c.3-1.

FFY00 commented on 2019-10-18 18:18

Hey, I want to move this to the official repos, are you cool with that?

andreip commented on 2019-04-07 12:15

This depends on xcb-util-xrm . Could you add this dependency?

patrick96 commented on 2019-02-10 14:36

Since the service files were installed in /lib/systemd/system, the installation files because of an ownership conflict of the /lib directory:

Читайте также:  Установить скрипт для linux

Installing to /usr/lib/systemd/system works for me

twouters commented on 2019-02-06 15:09

Can you move the service file to /lib/systemd/system/ ?

/etc/systemd/system/ is used for local system configurations, while packages should install their service files in /lib/systemd/system/ .

This allows users to override the provided service file if needed.

Copyright © 2004-2021 aurweb Development Team.

AUR packages are user produced content. Any use of the provided files is at your own risk.

Источник

Session lock

There are numerous utilities to lock the screen of a session. But it is important to note that the utility to use is highly dependent on the environment you are in, either the virtual console, or a specific display server (Xorg or Wayland).

Contents

By environment

This article or section is a candidate for merging with List of applications#Screen lockers.

Virtual console

You can use vlock or physlock to lock a virtual console.

There are many ways to lock the session under Xorg, so this section is likely to be incomplete. Some methods however include:

Most desktop environments come with some way to lock the session.

Wayland

You can lock the session with swaylock or waylock .

Triggering the lock

You can lock a session using different methods:

  • from a terminal
  • using a GUI:
    • from a desktop icon
    • using hot corners
    • from a menu (mouse or keyboard driven)
  • from a shortcut
  • from an event:
    • inactivity (using systemd, xss-lock or xautolock)
    • systemd events (suspend, hibernate, etc.)

The last point (triggering a lock from an event) is the trickiest, because you can do it in one of two ways:

  • get the action trigger to execute your lock, then to execute the initial action.
  • from the event trigger, add the lock to the event chain. So far this can only be done using systemd.

Shell triggers

To execute a command after terminal inactivity, you can use the TMOUT environment variable.

You can combine it with a trap on the ALARM signal to execute the lock. Without a trap, it will just terminate the shell.

You might want to detect if you are in a graphical environment, otherwise your GUI terminals might start disappearing without you understanding why.

Xorg triggers

xss-lock

xss-lock is triggered by one of two things:

The advantage of this is that you can control a lock issued manually, by inactivity, and by a suspend command at the same place.

To execute an action on one of those events:

systemd events

By default, xss-lock subscribes to suspend , hibernate , lock-session , and unlock-session with appropriate actions (run locker and wait for user to unlock or kill locker).

You can prevent xss-lock from being triggered by suspend and hibernate using —ignore-sleep .

You can trigger a manual lock using loginctl lock-session.

To configure DPMS signaling timeout:

DPMS signaling can also be configured in /etc/X11/xorg.conf.d/ in the Monitor section.

Using DPMS signaling, you can set a second timer, for example to notify the user or to dim the screen. For example (from xss-lock(1) ):

Читайте также:  Сколько весит windows ultimate

xautolock

Wayland triggers

swayidle

swayidle listens for idle activity from the Wayland compositor, as well as systemd events, and executes commands accordingly. See Sway#Idle.

D-Bus notification

Using loginctl lock-session , or the lock action in logind.conf(5) , you can notify the system through DBUS that you want to lock. This notification can then be processed, for example by xss-lock.

Inactivity

In logind.conf(5) , you can configure the IdleAction to lock . This will trigger a DBUS notification, that will have to be processed (for example by xsslock) to lock the session.

Note that this is for a global system (so this is not ideal for a multi user environment).

Note also that «this requires that user sessions correctly report the idle status to the system».

Units

Before suspend or hibernate

To enable it for a certain user, use systemctl enable sleep@USERNAME .

Lid closing

You can use the lock action using the related ACPI Event.

Источник

The Best Linux Lockscreen

To be honest, the default lock screens, also known as greeters or display managers (when the lockscreen also manages the boot login), can leave looks to be desired on pretty much every Linux distribution. To fix that, we have several options — theme the lock screen you already have, change the lock screen, or login automatically and use another option such as i3lock.

This guide shows you how to change the login screen background, edit the login screen font, use a login screen gtk theme, and change your user manager. This guide has sections for most major display managers, but the GDM guide has the most detail.

Theming your lockscreen

Typically the easiest option. The options below are for a few of the most popular display managers.

GDM Display Manager

First back up the current theme:

Note: Ubuntu 17+ uses a GDM config that is different than the default setup. If the following setup does not work for you please comment and I will try to help. All of the scripts I link below work for me on a fresh Fedora 27 system.

Now you have a few options. If you simply want to change the font on your login manager or change the background, you can use my script:

Editing the current theme

Download the scripts on the DevPy GitHub: devpytech/scripts/gresource-extract. Then run ./extract.sh to extract your current theme to the «theme» folder in the same folder as the extract script.

Editing the font

Edit gnome-shell.css . Change the font to your custom font. E.g:

Editing the background

Copy a background to the theme folder. Then edit gnome-shell.css and change the #lockDialogGroup section to the filename of your image. E.g:

Building & enabling

Run the ./build.sh file from DevPy’s GitHub. This will create a .gresource file in the theme folder.

Finally, override the current gresource (make sure you have backed up the current file):

Using your GTK Theme

My favourite method is to match the GTK theme by building a gresource file.

Here are a few results for themes I have tested:

Читайте также:  Как установить windows 10 с флешки 4gb

Vertex

You can build your own using my script here: devpytech/gtk-gresource.

I’ve included prebuilt gresource files for the following themes:

After a reboot the theme should show on login and lock.

LightDM Display Manager

LightDM is probably the second most popular display manager, after GDM. To install a theme, install both lightdm and lightdm-webkit2-greeter through your package manager. Then, navigate to /usr/share/lightdm-webkit/themes/ through the terminal or a root file manager and copy the theme files there. Once finished, enable the theme in your /etc/lightdm/lightdm-webkit2-greeter.conf by setting webkit-theme .

Material

Aether

Litarvan

SDDM Display Manager

SDDM is a display manager written from scratch. It’s best known for being the default with KDE Plasma 5. To install an SDDM theme, simply move it to /usr/share/sddm/themes/ , making sure that the folder name is the same as the theme name. You can enable a theme by editing /etc/sddm.conf under the [Theme] section and changing Current to the theme name.

Aerial

Aerial uses gifs on the lockscreen in the style of Apple TV screensavers.

Deepin

Changing your Display Manager

This option will change the way you login . forever. Or at least until you change back. Once you have installed a display manager, the way you change to it depends on your linux distribution. On Ubuntu, run » sudo dpkg-reconfigure gdm3 » replacing gdm3 with the current display manager.

You can install GDM with the following:

Ubuntu

Fedora

On other distributions, try searching gdm in the package manager.

LightDM

You can install GDM with the following:

Ubuntu

Fedora

On other distributions, try searching lightdm in the package manager.

You can install SDDM with the following:

Ubuntu

Fedora

On other distributions, try searching sddm in the package manager.

Not Using a Display Manager At All

If you like to login with the console, you can simply disable the Display Manager services:

If you use this option, I suggest that you install a screenlocker / screensaver to help avoid screwing up your monitor (keeping the same image on the monitor for a long time can freeze some pixels).

XScreenSaver

XScreenSaver ships with most distributions, but if you don’t have it, instructions can be found here. Theming is rather rudimentary but you can change the colours by editing

i3lock

Probably my favourite screen locker, i3lock is simple and has many derivations to choose from. My favourite derivation is i3lock-colors to customize the look and image.

Default

My custom wallpaper conserving script

And that’s it! If you want to go back to the defaults, simply re-enable GDM or LightDM.

Thanks for reading. Feel free to share your custom login setup in the comments below.

While Linux gaming has steadily evolved over the years, the number of titles on Windows far outnumbers the amount on [. ]

Distro agnostic installation of packages is a long time coming. There are literally thousands of different distros, and a fair [. ]

DevPy Newletter

We don’t spam, and we only send emails once or twice a week month.

Источник

Оцените статью