How do I run a program on startup/autostart?

Added by Jonathan Dahan about 6 years ago. Updated by Christoph Kappel almost 6 years ago.

Category: General Difficulty: Difficulty1
Assignee: - Due date:
Related issue: - Related Message: -
Related version: - Views: 5502
Valid: Valid


Let's say you want urxvt to start after subtle, and for some reason echo "urxvt" >> ~/.xinitrc is just not cutting it. Using the :start hook and subtlext we can simulate autostart like so:

Numbers: on /off1 on :start do
2   Subtlext::Subtle.spawn "urxvt" 
3 end

Also available in: PDF