Created
June 7, 2025 20:12
-
-
Save alirezaarzehgar/6ee1ddecadceb1fe06f5c2ecb207d8f3 to your computer and use it in GitHub Desktop.
i3 startup config
This file contains hidden or 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
| #!/usr/bin/env bash | |
| STARTUP_SH=~/.config/i3/startup.sh | |
| I3_CONF=~/.config/i3/config | |
| if [ -f ${STARTUP_SH} ]; then | |
| echo You have already startup.sh installed. | |
| echo No need to config more. | |
| exit | |
| fi | |
| cat << _EOF_ > ${STARTUP_SH} | |
| #!/usr/bin/env bash | |
| i3 'workspace 9; exec rootrunner launcher' | |
| sleep 3 | |
| i3 'workspace 2; exec xfce4-terminal' | |
| sleep 3 | |
| i3 'workspace 10; exec telegram-desktop' | |
| sleep 3 | |
| i3 'workspace 1; exec firefox' | |
| _EOF_ | |
| chmod +x ${STARTUP_SH} | |
| echo "exec --no-startup-id ~/.config/i3/startup.sh" >> ${I3_CONF} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment