summaryrefslogtreecommitdiff
path: root/.compizsnap/left.sh
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-07-02 16:04:11 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-07-02 16:04:11 -0400
commitf8d7528a5a6ee83536ad397bbad8c46f5984d61f (patch)
tree2af66ef2f73442300066ec3b3a708740857afa8c /.compizsnap/left.sh
parent8d5dd1b09ca02e869c89ac87f89bc790bc7c29ee (diff)
parentd383205ac60fdcf39bf2b0f813d63f91cf6e9dd5 (diff)
Merge branch 'master' of gitorious.org:lukeshu-dotfiles/lukeshu-dotfiles
Conflicts: .emacs
Diffstat (limited to '.compizsnap/left.sh')
-rw-r--r--.compizsnap/left.sh23
1 files changed, 0 insertions, 23 deletions
diff --git a/.compizsnap/left.sh b/.compizsnap/left.sh
deleted file mode 100644
index 8fb479f..0000000
--- a/.compizsnap/left.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/left.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,0,0,$HALF,-1
-else
- echo ".compizsnap/left.sh: exiting because the mouse isn't pressed"
-fi
-