Skip to content

Instantly share code, notes, and snippets.

@alirezaarzehgar
Created June 7, 2025 20:12
Show Gist options
  • Select an option

  • Save alirezaarzehgar/6ee1ddecadceb1fe06f5c2ecb207d8f3 to your computer and use it in GitHub Desktop.

Select an option

Save alirezaarzehgar/6ee1ddecadceb1fe06f5c2ecb207d8f3 to your computer and use it in GitHub Desktop.
i3 startup config
#!/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