Skip to content

Commit

Permalink
Merge branch 'release/1.6.1'
Browse files Browse the repository at this point in the history
Conflicts:
	README.md
  • Loading branch information
fikovnik committed Apr 9, 2015
2 parents d3257d0 + e740b2d commit e133f36
Show file tree
Hide file tree
Showing 62 changed files with 2,419 additions and 13,335 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
release-notes-*
ShiftIt-*.zip
misc
fabfile.pyc
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: objective-c
xcode_project: ShiftIt/ShiftIt.xcodeproj
xcode_scheme: ShiftIt
xcode_sdk: macosx10.9
before_install:
- brew install wget
- wget http://xquartz.macosforge.org/downloads/SL/XQuartz-2.7.6.dmg
- hdiutil attach XQuartz-2.7.6.dmg
- sudo installer -pkg /Volumes/XQuartz-2.7.6/XQuartz.pkg -target /
136 changes: 85 additions & 51 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,73 +1,107 @@
<h1><img src="https://github.com/fikovnik/ShiftIt/raw/master/artwork/ShiftIt.png" width="72" height="72" valign="middle"/>ShiftIt </h1>
<h1><img src="https://raw.github.com/fikovnik/ShiftIt/develop/artwork/ShiftIt.png" width="72" height="72" valign="middle"/>ShiftIt <a href="https://travis-ci.org/fikovnik/ShiftIt"><img src="https://travis-ci.org/fikovnik/ShiftIt.png?branch=develop" valign="middle" alt="Build Status (develop branch)"/></a></h1>

*Managing window size and position in OSX*

**Before the next release is available, please have a look at the `develop` branch.**
# About

About
--------
ShiftIt is an application for OSX that allows you to quickly manipulate window position and size using keyboard shortcuts.
It intends to become a full featured window organizer for OSX.
It is a complete rewrite of the original [ShiftIt](http://code.google.com/p/shiftit/) by Aravindkumar Rajendiran which is not longer under development.
For discussing any sort of stuff about this app, please create a [new issue](https://github.com/fikovnik/ShiftIt/issues).

ShiftIt is an application for OSX that allows you to quickly manipulate window position and size using keyboard shortcuts. It intends to become a full featured window organizer for OSX.
It is a fork from the original [ShiftIt][1] by [Aravindkumar Rajendiran][2] which is not longer under development. For discussing any sort of stuff about this app, please create a new issue [right here][3] in github. There is also quite a quiet [google group][4], but it's better to post stuff directly here.
License: [GNU General Public License v3](http://www.gnu.org/licenses/gpl.html)

License: [GNU General Public License v3][5]
Change logs: change logs are versioned in the [repository](https://github.com/fikovnik/ShiftIt/tree/develop/release) as well.

Requirements
------------
## Download

The primary development is done on OSX 10.6 Snow Leopard, but it should be running under OSX 10.5 Leopard as well.
A binary build for OSX 10.7+ is available in [releases](https://github.com/fikovnik/ShiftIt/releases).

Compiling
---------
## User guide

After cloning or download a snapshot of the repository (*master branch
is recommended*):
ShiftIt installs itself in the menu bar (optionally it can be completely hidden).
It provides a set of actions that manipulates windows positions and sizes.
Following is an example of list of actions available:

* on OSX 10.6 Snow Leopard
1. Compile in XCode by clicking build, or use the
`scripts/release.sh` (*With the script option, please ignore any errors related to the signing the release. Just check if you see the `** BUILD SUCCEEDED **` message in the output and grab the app from `ShiftIt/build/Release/ShiftIt.app` directory.*)
1. That's it
* on OSX 10.5 Leopard
1. Go to `Project` menu and click `Edit Project Settings` item
1. Select `Build` tab
1. Set `Architectures` to be `32-bit Universal`
1. Select `C/C++ Compiler Version` to be `GCC 4.2`
1. Check `Build Active Architecture Only`

The reason for this is that the Interface Builder frameworks on OS X Leopard 10.5 do not have 64-Bit capabilities.
![Screenshot Menu](https://raw.github.com/fikovnik/ShiftIt/develop/docs/schreenshot-menu.png)

Note: If you have a problem with the build - xcode complaining about the ShortcutRecorder IB plugin then download (from [here][7]) and build it yourself. Once done load it into the Interface Builder (double click on the just built ShortcutRecorder.ibplugin).
Normally, all Cocoa windows and X11 windows are supported.
Some applications might not work correctly or not at all.
There is a [list of known problems](https://github.com/fikovnik/ShiftIt/wiki/Application-Compatibility-Issues).
If you find any problem not mentioned there, please submit an issue.

FAQ
---
## Requirements

**I disabled the `Show Icon in Menu Bar` in the preferences, how can I get it back?how can I get it back?**
* OSX 10.7+, 64-bit

The primary development is done on OSX 10.10, but it should be running under OSX 10.7 as well.

## FAQ

##### I disabled the _Show Icon in Menu Bar_ in the preferences, how can I get it back?

Launch the application again. It will open the preference dialog.

3rd Party Frameworks
--------------------
##### I pressed a shortcut, but nothing has happened, why?

While most of application windows should work well with ShiftIt, there are some exceptions (like the GTK+ OSX applications). There is a [list of known problems](https://github.com/fikovnik/ShiftIt/wiki/Application-Compatibility-Issues). If you find any problem not mentioned in the list, please raise an issue.

##### I pressed a shortcut, something happened, but not what I expected, why?

ShiftIt is based on a Cocoa Accessibility API and sometimes this API can be a bit [fragile](http://lists.apple.com/archives/accessibility-dev/2011/Aug/msg00031.html) and not do exactly what it should. In order to help to improve ShiftIt, please submit an issue every time you find some weird behavior. Before you do please consult the [list of known problems](https://github.com/fikovnik/ShiftIt/wiki/Application-Compatibility-Issues). Thanks!

##### ShiftIt wants accessibility access on my Mac but my system preferences don't match the instruction, why?

For instructions on accessibility in Mac OS X 10.9.x, see [this comment](https://github.com/fikovnik/ShiftIt/issues/110#issuecomment-20834932).

##### How to repairing Accessibility API permissions?

This can be done either using GUI in _System Preferences_ -> _Security & Privacy_ -> _Privacy_ -> _Accessibility_ where it is necessary to check and uncheck the checkbox which is next to ShiftIt in the _Allow the apps below to control your computer_.

![ShiftIt permissions](https://raw.githubusercontent.com/fikovnik/ShiftIt/develop/ShiftIt/AccessibilitySettings-Maverick.png)

Alternatively, this can be also done in a command line, however, this is rather a hack with all potential issues hacks come with.

```sh
$ sudo sqlite3 '/Library/Application Support/com.apple.TCC/TCC.db' 'update access set allowed=1 where client like "%org.shiftitapp.ShiftIt%"'
```

## Development

The repository is based on the git flow model. The development therefore happens in the `develop` branch. Any contribution is welcomed!

### Local build

To build ShiftIt locally just clone the repository or get the latest snapshot and execute following command in the `ShiftIt` directory:

```sh
$ xcodebuild -target ShiftIt -configuration Release
```

To make a build without X11 support execute following:

```sh
$ xcodebuild -target "ShiftIt NoX11" -configuration Release
```

### Making a release

Releases are handled using [fabric](http://docs.fabfile.org/en/1.5/). There are some dependencies that can be easily obtained using `pip`:

* [fabric](http://docs.fabfile.org/en/1.5/) - the build system itself
* [github3](https://github.com/sigmavirus24/github3.py) - library for GitHub 3 API
* [pystache](https://github.com/defunkt/pystache) - templates

* [ShortcutRecorder][7] framework (*New BSD license*) for capturing key bindings during hotkey reconfiguration. (*from version 1.4*)
* [FMT][8] framework (*MIT license*) for some utility functions like handling login items, hot keys, etc. (*from version 1.5*)
The releases are fully automatic which hopefully will help to release more often.

Change Log:
---------------------------
**Available commands**

- [1.5][9]
- [1.4.1][10]
- [1.4][11]
- [1.3][12]
* `archive` - Archives build
* `build` - Makes a build by executing xcodebuild
* `info` - Output all the build properties
* `release` - Prepare the release: sign the build, generate appcast, generate release notes
* `release_notes` - Generate release notes

After `fab release` instructions about how to create the actual release at github are printed.

[1]: http://code.google.com/p/shiftit/
[2]: http://ca.linkedin.com/in/aravind88
[3]: https://github.com/fikovnik/ShiftIt/issues
[4]: http://groups.google.com/group/shiftitapp
[5]: http://www.gnu.org/licenses/gpl.html
[7]: http://code.google.com/p/shortcutrecorder/
[8]: https://github.com/fikovnik/FMT
[9]: http://nkuyu.net/apps/shiftit/release-notes-1.5.html
[10]: http://nkuyu.net/apps/shiftit/release-notes-1.4.1.html
[11]: http://nkuyu.net/apps/shiftit/release-notes-1.4.html
[12]: http://nkuyu.net/apps/shiftit/release-notes-1.3.html
Thanks [JetBrains](http://www.jetbrains.com/) for kindly supporting this open source project by providing [AppCode](http://www.jetbrains.com/objc/) IDE.
Binary file added ShiftIt/AccessibilitySettingsLion.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ShiftIt/AccessibilitySettingsMaverick.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
36 changes: 36 additions & 0 deletions ShiftIt/Base.lproj/Localizable.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*
Localizable.strings
ShiftIt

Created by Hiroyuki Kurosawa on 2013/11/16.

*/

"Left" = "Left";
"Right" = "Right";
"Top" = "Top";
"Bottom" = "Bottom";
"Top Left" = "Top Left";
"Top Right" = "Top Right";
"Bottom Left" = "Bottom Left";
"Bottom Right" = "Bottom Right";
"Center" = "Center";
"Toggle Zoom" = "Toggle Zoom";
"Maximize" = "Maximize";
"Toggle Full Screen" = "Toggle Full Screen";
"Increase" = "Increase";
"Reduce" = "Reduce";
"Next Screen" = "Next Screen";
"Previous Screen" = "Previous Screen";

"Authorization Required" = "Authorization Required";
"Recheck" = "Recheck";
"Open System Preferences" = "Open System Preferences";
"Quit" = "Quit";
"AUTHORIZATION_INFORMATIVE_TEXT_10_9" = "ShiftIt needs to be authorized to use an Accessibility Services in order to be able to move and resize application windows.\n\nYou can do this in System Preferences > Security & Privacy > Privacy > Accessibility. You might need to drag-and-drop ShiftIt into the list of allowed apps and make sure the checkbox is on.";
"AUTHORIZATION_INFORMATIVE_TEXT_10_8" = "ShiftIt needs to be authorized to use an Accessibility Services in order to be able to move and resize application windows.\n\nPlease \"Enable access for assistive devices\" in the System Preferences > Universal Access and then restart ShiftIt.";

"Start ShiftIt automatically?" = "Start ShiftIt automatically?";
"Would you like to have ShiftIt automatically started at a login time?" = "Would you like to have ShiftIt automatically started at a login time?";
"Yes" = "Yes";
"No" = "No";
99 changes: 99 additions & 0 deletions ShiftIt/Base.lproj/MainMenu.xib
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="5056" systemVersion="13D65" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
<dependencies>
<deployment defaultVersion="1070" identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="5056"/>
</dependencies>
<objects>
<customObject id="-2" userLabel="File's Owner" customClass="NSApplication">
<connections>
<outlet property="delegate" destination="494" id="495"/>
</connections>
</customObject>
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
<customObject id="-3" userLabel="Application"/>
<customObject id="494" customClass="ShiftItAppDelegate">
<connections>
<outlet property="statusMenu_" destination="535" id="789"/>
</connections>
</customObject>
<menu title="Status Menu" id="535">
<items>
<menuItem title="Left" tag="2001" keyEquivalent="" id="547">
<modifierMask key="keyEquivalentModifierMask" control="YES" option="YES" command="YES"/>
</menuItem>
<menuItem title="Right" tag="2002" keyEquivalent="" id="548">
<modifierMask key="keyEquivalentModifierMask" control="YES" option="YES" command="YES"/>
</menuItem>
<menuItem title="Top" tag="2003" keyEquivalent="" id="549">
<modifierMask key="keyEquivalentModifierMask" control="YES" option="YES" command="YES"/>
</menuItem>
<menuItem title="Bottom" tag="2004" keyEquivalent="" id="550">
<modifierMask key="keyEquivalentModifierMask" control="YES" option="YES" command="YES"/>
</menuItem>
<menuItem isSeparatorItem="YES" id="781"/>
<menuItem title="Top Left" tag="2005" keyEquivalent="1" id="767">
<modifierMask key="keyEquivalentModifierMask" control="YES" option="YES" command="YES"/>
</menuItem>
<menuItem title="Top Right" tag="2006" keyEquivalent="2" id="768">
<modifierMask key="keyEquivalentModifierMask" control="YES" option="YES" command="YES"/>
</menuItem>
<menuItem title="Bottom Left" tag="2007" keyEquivalent="3" id="769">
<modifierMask key="keyEquivalentModifierMask" control="YES" option="YES" command="YES"/>
</menuItem>
<menuItem title="Bottom Right" tag="2008" keyEquivalent="4" id="770">
<modifierMask key="keyEquivalentModifierMask" control="YES" option="YES" command="YES"/>
</menuItem>
<menuItem isSeparatorItem="YES" id="780"/>
<menuItem title="Center" tag="2009" keyEquivalent="c" id="537">
<modifierMask key="keyEquivalentModifierMask" control="YES" option="YES" command="YES"/>
</menuItem>
<menuItem title="Toggle Zoom" tag="2010" keyEquivalent="z" id="791">
<modifierMask key="keyEquivalentModifierMask" control="YES" option="YES" command="YES"/>
</menuItem>
<menuItem title="Maximize" tag="2011" keyEquivalent="m" id="792">
<modifierMask key="keyEquivalentModifierMask" control="YES" option="YES" command="YES"/>
</menuItem>
<menuItem title="Toggle Full Screen" tag="2012" keyEquivalent="f" id="545">
<modifierMask key="keyEquivalentModifierMask" control="YES" option="YES" command="YES"/>
</menuItem>
<menuItem isSeparatorItem="YES" id="538"/>
<menuItem title="Increase" tag="2013" keyEquivalent="=" id="786">
<modifierMask key="keyEquivalentModifierMask" control="YES" option="YES" command="YES"/>
</menuItem>
<menuItem title="Reduce" tag="2014" keyEquivalent="-" id="787">
<modifierMask key="keyEquivalentModifierMask" control="YES" option="YES" command="YES"/>
</menuItem>
<menuItem isSeparatorItem="YES" id="788"/>
<menuItem title="Next Screen" tag="2015" keyEquivalent="n" id="794">
<modifierMask key="keyEquivalentModifierMask" control="YES" option="YES" command="YES"/>
</menuItem>
<menuItem title="Previous Screen" tag="2016" id="URi-Kh-uDb">
<modifierMask key="keyEquivalentModifierMask"/>
</menuItem>
<menuItem isSeparatorItem="YES" id="793"/>
<menuItem title="Preferences" keyEquivalent="," id="558">
<connections>
<action selector="showPreferences:" target="494" id="760"/>
</connections>
</menuItem>
<menuItem title="Check for Updates" id="761">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="checkForUpdates:" target="670" id="763"/>
</connections>
</menuItem>
<menuItem title="Quit ShiftIt" keyEquivalent="q" id="546">
<connections>
<action selector="terminate:" target="-3" id="628"/>
</connections>
</menuItem>
</items>
</menu>
<customObject id="670" customClass="SUUpdater">
<connections>
<outlet property="delegate" destination="494" id="795"/>
</connections>
</customObject>
</objects>
</document>
Loading

0 comments on commit e133f36

Please sign in to comment.