Skip to content

Conversation

@trigg
Copy link
Collaborator

@trigg trigg commented Jan 18, 2026

GTK4 Lockscreen using session ext1.

Has a plugin-styled structure (but all plugins are compiled with it currently, and no external loading is done)

Plugins are individually togglable.

Plugins that can unlock the screen are:

  • Password (Takes a string from user, runs it through PAM, unlocks if positive)
  • Pin (has a pin pad GUI, takes a number of digits, hashes them, compares to users stored hash)
  • Fingerprint (Interfaces with fprintd, on verification of previously enrolled fingerprint will unlock)
  • Instant - disabled by default (A button, if pressed, unlocks)

Costmetic and functional plugins:

  • Clock : show a date/time
  • Battery: show battery, ups,charging status
  • Volume Mute Toggle & Mic Mute Toggle
  • MPRIS media control
  • Username & Avatar image
  • Weather (thanks @soreau)
  • Network status icon

TODO Plugins:

  • Yubikey/ U2F unlock
  • Howdy (face recognition)

Other notes:

Enabling PIN unlock requires creating a hash file:
Use the GTK app wf-locker-pin to set or change PIN, or manually on terminal with echo -n "1234" | sha512sum | head -c 128 > ~/.config/wf-locker.hash
Obviously replacing the numbers quoted in the echo. Any above-zero number of digits is accepted. Writing non-digits into this will make it impossible to auth with PIN.

Fingerprint reader must have an enrolled finger to enable. It will also only accept the first one in the list of presented options.

Password has no 'submit' button as it is assumed the user has an enter/return at that point.

It is possible for user to choose which part of the lockscreen a plugin displays in, but not the order of items. If you put all plugins into center-center of lockscreen then the plugins are shown top-to-bottom in alphabetical order. One option would be to sort the keys before we iterate on them in on_monitor_present.

Weather has a bundled helper script and instructions to set up. Without these it will hide itself from view.

@trigg trigg changed the title (Draft) Lockscreen for wayfire (Draft) Lockscreen for Wayfire Jan 18, 2026
@AKArien
Copy link
Contributor

AKArien commented Jan 18, 2026

Haven't looked at the implementation yet, but from the description, if #121 were to be figured out and panel widgets were implemented as plugins, we would have access to quite a lot of functionality, and, in turn, all (bar the authentication) that is written for the lockscreen first could serve for the panel, no ?

- Delay and Retry claiming finger print reader on failure
-  Remove saving and using of name of fingerprint to request as we weren't using it anyway
- Added volume mute & mic mute plugin
@trigg
Copy link
Collaborator Author

trigg commented Jan 19, 2026

I'm leaning heavily on existing panel widget code, but the factoring isn't similar enough to be able to use them 1:1.

soreau and others added 29 commits January 25, 2026 22:16
Depends on weather-fetch.py running periodically. The script is
included as wf-shell/data/weather-fetch.py. Usage instructions
are at the top of the script.
- Added '--now' and '-n' to lock instantly without fade-in
weather: Use wf-json instead of yyjson
weather: Update weather-fetch.py script
- Allow some widgets to remain through inactivity
- MPRIS widget re-appears on track change
-  Allow each app to add extra Gtk application flags.
weather: Fix icon broken by refactor
- Implemented fingerprint images and styling
- Implemented auth fail lockout
- Removed PIN submit button
- Fixed fade-in, again
- Simplified flow of fingerprint reader
- Reduced timeouts in fingerprint reader
- MPRIS updates play/pause icons depending on state
- MPRIS hides self again on stop
- wf-background writes to user temporary cache when background image changes
- locker picks up background image changes and matches
- recrustify
- wf-background inhibit output is now a user option
- add VPN to panel network
@trigg trigg changed the title (Draft) Lockscreen for Wayfire locker: new lockscreen Jan 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants