Skip to content

Instantly share code, notes, and snippets.

@fbiville
Created October 22, 2011 22:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fbiville/1306553 to your computer and use it in GitHub Desktop.
Save fbiville/1306553 to your computer and use it in GitHub Desktop.
wmctrl makes your mornings easier
#!/bin/bash
# force 8 workspaces
wmctrl -n 8
# launch
eclipse &
firefox -P default &
thunderbird &
amsn &
gnome-terminal --maximize &
chromium-browser %U http://www.last.fm/listen/user/%USERNAME%/mix &
# wait
sleep 60
# move
wmctrl -r firefox -t 0
wmctrl -r eclipse -t 1
wmctrl -r terminal -t 2
wmctrl -r chromium -t 5
wmctrl -r amsn -t 6
wmctrl -r thunderbird -t 7
# focus
wmctrl -a terminal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment