Skip to content

Instantly share code, notes, and snippets.

@romgrk
Created October 13, 2016 07:47
Show Gist options
  • Select an option

  • Save romgrk/fd8b0615affc517d242171683b6245e3 to your computer and use it in GitHub Desktop.

Select an option

Save romgrk/fd8b0615affc517d242171683b6245e3 to your computer and use it in GitHub Desktop.
Add an command to run when your desktop session starts
#!/usr/bin/env zsh
# Usage: autostart [title] [command]
#
echo "[Desktop Entry]
Name=$1
Terminal=false
Type=Application
Exec=$2" >> ~/.config/autostart/$1.desktop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment