Skip to content

Instantly share code, notes, and snippets.

@githubutilities
Created April 18, 2016 04:16
Show Gist options
  • Save githubutilities/6c6124788cc73de40b2a07062b6f7be3 to your computer and use it in GitHub Desktop.
Save githubutilities/6c6124788cc73de40b2a07062b6f7be3 to your computer and use it in GitHub Desktop.
ubuntu gui-tweek
#!/bin/bash
# sudo apt-get install xdotool
xdotool search --class "$@" windowactivate %@
# if [ $# -ne 1 ];then
# echo -e "Usage: `basename $0` PROGRAM_NAME\n
# For example:\n\t
# '`basename $0` gnome-terminal' for Terminal\n\t
# '`basename $0` firefox' for Firefox\n\t
# '`basename $0` chromium-browser' for Chromium\n\t..."
# exit 1
# fi
# pids=" $(pidof $@) "
# if [ "$pids" = " " ]; then # the string " " contain two spaces
# echo "There is no program named '$@' opened at the moment."
# exit 1
# fi
# wmctrl -lp | while read identity desktop_number PID window_title; do
# if [ "${pids/ $PID }" != "$pids" ]; then
# wmctrl -ia $identity
# fi
# done
# http://askubuntu.com/questions/346169/shortcut-to-bring-all-open-terminals-to-the-front
# Setting workspace number
#gsettings set org.compiz.core:/org/compiz/profiles/unity/plugins/core/ vsize 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment