Skip to content

Instantly share code, notes, and snippets.

@mertcancam
Created February 2, 2025 15:50
Show Gist options
  • Save mertcancam/af4ee07240fd69e29dc9cab1fb558312 to your computer and use it in GitHub Desktop.
Save mertcancam/af4ee07240fd69e29dc9cab1fb558312 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Define autostart directory and file
AUTOSTART_DIR="$HOME/.config/autostart"
AUTOSTART_FILE="$AUTOSTART_DIR/guake.desktop"
# Ensure the directory exists
mkdir -p "$AUTOSTART_DIR"
# Create the autostart file
cat <<EOF > "$AUTOSTART_FILE"
[Desktop Entry]
Type=Application
Exec=guake
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name=Guake Terminal
Comment=Start Guake on login
EOF
# Make sure it's executable
chmod +x "$AUTOSTART_FILE"
echo "Guake will now start automatically on login."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment