Autostarting
This article links to various methods to launch scripts or applications automatically when some particular event is taking place.
On bootup / shutdown
Use systemd services.
On user login / logout
Use systemd/User services.
On device plug in / unplug
Use udev rules.
On time events
Periodically at certain times, dates or intervals:
Once at a date and time:
On filesystem events
Use an inotify event watcher:
- inotify-tools, see inotifywait(1)
- incron
- fswatchAUR
- entr
- systemd can activate units on filesystem events using systemd.path(5) files
On shell login / logout
On Xorg startup
- xinitrc if you are starting Xorg manually with xinit.
- xprofile if you are using a display manager.
On desktop environment startup
Most desktop environments implement XDG Autostart.
If the desktop environments has an article, see its Autostart section.
On window manager startup
Many window managers implement XDG Autostart.
If the window manager has an article, see its Autostart section.
gollark: If they don't, they'll talk to facts' manager.
gollark: There was a discussion about languages of some kind.
gollark: Orbital bee strikes are not a hugely new concept.
gollark: ... why?
gollark: According to the political compass visualizer, which is completely accurateâ„¢, while you (komrad kit) and C4 are in the same quadrant and very close on the main two axes, you're opposite on the progressive/conservative ones.
This article is issued from Archlinux. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.