Skip to content

Lock Screen

The lock screen uses the shared config file at ~/.config/glimpse/config.toml. It can reuse your wallpaper, use a separate lock image, show a clock, and show status buttons.

Enable Locking

Enable the user service:

sh
systemctl --user enable --now glimpse-lock.service

Then test it:

sh
loginctl lock-session

Use loginctl lock-session from compositor keybindings and idle rules. Keep the service running so locking happens immediately.

Use Your Wallpaper

Leave [lock.background].path unset to use the same image as [wallpaper]:

toml
[wallpaper]
path = "/home/alex/Pictures/wallpapers/coast.jpg"
color = "#101010"
fit = "cover"

[lock]
css_path = "themes/lock.css"

[lock.background]
blur_radius = 0
dim = 0.35

This is the best starting point when you want the lock screen to match the desktop.

Use A Separate Lock Image

Set [lock.background].path when the lock screen needs its own image:

toml
[lock.background]
path = "/home/alex/Pictures/wallpapers/lock.jpg"
fit = "cover"
blur_radius = 12
dim = 0.35

blur_radius softens the background. dim darkens it; 0.0 means no dimming and 1.0 means fully dimmed.

If fit is left out, a lock-specific image uses cover. When the lock screen inherits the wallpaper image, it also inherits the wallpaper fit mode.

Background Fallback

Config paths win over theme-pack images.

Source orderUsed when
[lock.background].pathYou set a lock-specific image.
[wallpaper].pathNo lock-specific image is set.
Theme pack lock-light / lock-dark imageConfig has no lock or wallpaper image.
Theme pack wallpaper-light / wallpaper-dark imageThe theme has no lock-specific image.
[wallpaper].colorNo image is available.

The current theme_mode decides whether light or dark theme-pack images are used.

Clock

toml
[lock.clock]
enabled = true
time_format = "%H:%M"
date_format = "%A, %B %-d"

Set enabled = false if you want the lock screen to be image-first with no large clock.

Status Buttons

toml
[lock.controls]
buttons = ["wifi", "input", "weather", "battery", "power"]
ButtonWhat it shows
wifiNetwork status.
inputCurrent keyboard layout.
weatherWeather icon and temperature.
batteryBattery status. Percent is shown when running on battery.
powerSuspend, restart, and shutdown menu.

Remove entries you do not want:

toml
[lock.controls]
buttons = ["wifi", "battery", "power"]

CSS

The default lock CSS override path is:

txt
~/.config/glimpse/themes/lock.css

Keep small lock-screen visual tweaks there. See Theming for lock CSS variables.

Practical Tips

GoalTip
Match desktop and lock screenLeave [lock.background].path unset.
Make text easier to readIncrease dim or add a small blur_radius.
Use a busy wallpaperUse a separate, calmer [lock.background].path.
Avoid accidental shutdownKeep the power button only if you want power actions on the lock screen.

See Also

DocumentPurpose
WallpaperDesktop wallpaper, backdrop, and fit modes.
ThemingLock CSS variables and override file.