Skip to content

Instantly share code, notes, and snippets.

@DustinAlandzes
Created April 12, 2017 19:45
Show Gist options
  • Save DustinAlandzes/5ff1610caad1e6ed6c6f93d48e4ff910 to your computer and use it in GitHub Desktop.
Save DustinAlandzes/5ff1610caad1e6ed6c6f93d48e4ff910 to your computer and use it in GitHub Desktop.
#/bin/sh
DISPLAY=:0
#minimzie everything
wmctrl -k on
#ncompass window id
winid=`wmctrl -l | grep nCompass | cut -d " " -f1`
#teamviewer window id
teamviewer=`wmctrl -l | grep TeamViewer | cut -d " " -f1`
#unminimize ncompass window
wmctrl -ia $winid
#maximize ncompass window
wmctrl -ir $winid -b add,maximized_vert,maximized_horz
#print out window ids
echo $winid
echo $teamviewer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment