Skip to content

Script run on login success/failure

I have a couple scripts that I'd like to run on two different events. One to run when I login successfully, and another to run when a login attempt is made unsuccessfully. Login will be coming from either lightdm or xscreensaver, but I'm not sure where to look to 'hook' into the event.

3 points3 comments
Open on Reddit
About this post
Posted
Archived
Score
3 · 100% up
Kind
Text
ID
2oxius

Author

46
posts
64
comments
11
media
View profile

3 comments

You want .xinitrc for successful login script. No idea how you would do failed login attempts. Something to do with logind or PAM?

Edit: Why the downvotes? Am I incorrect?

-3 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.