Autostarting - ArchWiki

# Autostarting

From ArchWiki

Related articles

- Daemons

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:

- systemd/Timers
- Cron

Once at a date and time:

- systemd/Timers
- at

## On filesystem events

Use an inotify event watcher:

- inotify-tools, see inotifywait(1)
- Incron
- fswatchAUR

## On shell login / logout

See Command-line shell#Configuration files.

## 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 environment implement XDG Autostart.

If the desktop environments has an article, see its Autostart section.

- GNOME#Autostart
- KDE#Autostart
- Xfce#Autostart
- LXDE#Autostart
- LXQt#Autostart

## On window manager startup

If the window manager has an article, see its Autostart section.

- Fluxbox#Autostart
- Openbox#Autostart
- Awesome#Autostart

Category:

- System administration