(You may need to install wmctrl via package manager)
List the windows:
wmctrl -l
Resize to, for example, 1280x720 and move to upper-left corner:
wmctrl -r '(first few chars of name)' -e 1,0,0,1280,720
| // Q sample by Jeff Cogswell | |
| /*=========== | |
| We want to call these three functions in sequence, one after the other: | |
| First we want to call one, which initiates an ajax call. Once that | |
| ajax call is complete, we want to call two. Once two's ajax call is | |
| complete, we want to call three. | |
| BUT, we don't want to just call our three functions in sequence, as this quick |
| /* | |
| nano doesn't yet have support for Cloudant's new index feature, | |
| but you can still do it using nano's request function. | |
| This code creates an index. | |
| To try this, first replicate the database as per | |
| instructions here: | |
| http://docs.cloudant.com/guides/cloudant-query.html |
| /* | |
| nano doesn't yet have support for Cloudant's new index feature, | |
| but you can still do it using nano's request function. | |
| This code queries an index. | |
| To try this, first replicate the database as per | |
| instructions here and make sure you created an index. | |
| (Also check out my node.js code to create the index | |
| here:https://gist.github.com/jeffcogswell/1c2f06f5dcd152c055b6) |
| var path = require('path'); | |
| function getfileline(stacklevel) { | |
| var index = stacklevel || 2; | |
| var stacklist = (new Error().stack).split('\n')[index]; | |
| // regexps borrowed from "tracer" in npm | |
| var stackReg = /at\s+(.*)\s+\((.*):(\d*):(\d*)\)/gi; | |
| var stackReg2 = /at\s+()(.*):(\d*):(\d*)/gi; | |
| var sp = stackReg.exec(stacklist) || stackReg2.exec(stacklist); | |
| var result = { | |
| func: sp[1], |
| <!-- Try taking out the overflow:hidden to see more visually how the whole things works --> | |
| <style> | |
| .onramp { | |
| width:500px; | |
| height:500px; | |
| overflow: hidden; | |
| border: 5px solid black; | |
| } |
(You may need to install wmctrl via package manager)
List the windows:
wmctrl -l
Resize to, for example, 1280x720 and move to upper-left corner:
wmctrl -r '(first few chars of name)' -e 1,0,0,1280,720
| { | |
| "color_scheme": "Packages/Colorsublime - Themes/GitHubCleanWhite.tmTheme", | |
| "font_face": "Droid Sans Mono", | |
| "font_size": 9, | |
| "ignored_packages": | |
| [ | |
| "Vintage" | |
| ], | |
| "line_padding_bottom": -1, | |
| "line_padding_top": -1 |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <!-- Generated by: TmTheme-Editor --> | |
| <!-- ============================================ --> | |
| <!-- app: http://tmtheme-editor.herokuapp.com --> | |
| <!-- code: https://github.com/aziz/tmTheme-Editor --> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>name</key> | |
| <string>Jeff1</string> |
| [Desktop Entry] | |
| # This file goes in /usr/share/xsessions | |
| # -rw-r--r-- 1 root root 1507 Feb 27 09:07 LXDE.desktop | |
| # The names/descriptions should really be better | |
| Name=LXDE | |
| Comment=LXDE - Lightweight X11 desktop environment | |
| Comment[ar]=ÙÙØ³Ø¯Ù - Ø¨ÙØ¦Ø© Ø³Ø·Ø Ù ÙØªØ¨ X11 Ø®ÙÙÙØ© | |
| Comment[cs]=LXDE - lehké X11 pracovnà prostÅedà | |
| Comment[de]=LXDE - Leichtgewichtige X11 Desktop-Umgebung | |
| Comment[es]=LXDE - Entorno de Escritorio X11 Liviano |
There are a lot of Q&As out there on how to do this... Some good info here: http://askubuntu.com/questions/159575/how-do-i-make-java-default-to-a-manually-installed-jre-jdk
I usually install my JDK under /usr/lib/jvm alongside the others:
cd /usr/lib/jvm
sudo tar xf ~/Downloads/jdk-8u91-linux-x64.tar.gz
sudo chown -R root:root jdk1.8.0_91
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.8.0_91/bin/java 1