Created
February 2, 2025 15:50
-
-
Save mertcancam/af4ee07240fd69e29dc9cab1fb558312 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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