Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.