Skip to content

Instantly share code, notes, and snippets.

@colthreepv
Last active July 2, 2019 08:31
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save colthreepv/6158281 to your computer and use it in GitHub Desktop.
Save colthreepv/6158281 to your computer and use it in GitHub Desktop.
guake script to startup with tabs.
#!/bin/bash
# guake-start.sh
guake --rename-tab="home" &
sleep 3
guake --new-tab=2 --rename-tab="projects" --execute-command="cd ~/projects" &
sleep 1
guake --new-tab=3 --rename-tab="develop" --execute-command="cd ~/projects" &
sleep 1
guake --new-tab=4 --rename-tab="git" --execute-command="cd ~/projects" &
sleep 1
guake --new-tab=5 --rename-tab="sudo" &
sleep 1
guake --new-tab=6 --rename-tab="optional" &
@ferdinandyb
Copy link

why do you need the sleeps?

@scope2229
Copy link

scope2229 commented Aug 6, 2018

You normally need to let guake start a D-bus event before you can do anything.
When you first open guake it already has a tab open hes just renaming it. then he waits for the D-Bus connection creates a tab names it then executes the sleep after i believe is for the execute command to execute before doing anything else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment