diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2011-05-28 16:21:33 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2011-05-28 16:21:33 -0400 |
commit | 7b335d9442411d226993af47e05084c6742ca0ad (patch) | |
tree | 9fc80b844cddb20b493bd4e0abbb004c9e7418a0 /.compizsnap/right.sh | |
parent | 55a6a9f585f1c60980d0e970cadc2cc8cc40c327 (diff) |
Make things more robust, I'm no longer on just Ubuntu.
Diffstat (limited to '.compizsnap/right.sh')
-rw-r--r-- | .compizsnap/right.sh | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/.compizsnap/right.sh b/.compizsnap/right.sh deleted file mode 100644 index c79151f..0000000 --- a/.compizsnap/right.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -# -# CompizSnap is a collaborative project from ubuntuforums.org and is free software. -# This script adds window snapping functionality to compiz using the commands plugin. -# -# Directions: edit the mouse.sh script -# - -. $HOME/.compizsnap/mouse.sh - -WIDTH=`xdpyinfo | grep 'dimensions:' | sed -r 's/.*\s([0-9]+)x([0-9]+)\s.*/\1/'` -HALF=$(($WIDTH/2)) - -if (xinput --query-state $MOUSE | grep down) -then - echo ".compizsnap/right.sh: snapping because the mouse is pressed" - wmctrl -r :ACTIVE: -b remove,maximized_vert,maximized_horz - wmctrl -r :ACTIVE: -b add,maximized_vert - wmctrl -r :ACTIVE: -e 0,$HALF,0,$HALF,-1 -else - echo ".compizsnap/right.sh: exiting because the mouse isn't pressed" -fi - |