From 7b335d9442411d226993af47e05084c6742ca0ad Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 28 May 2011 16:21:33 -0400 Subject: Make things more robust, I'm no longer on just Ubuntu. --- .compizsnap/left.sh | 23 ----------------------- .compizsnap/max.sh | 19 ------------------- .compizsnap/mouse.sh | 10 ---------- .compizsnap/right.sh | 23 ----------------------- 4 files changed, 75 deletions(-) delete mode 100644 .compizsnap/left.sh delete mode 100644 .compizsnap/max.sh delete mode 100644 .compizsnap/mouse.sh delete mode 100644 .compizsnap/right.sh (limited to '.compizsnap') 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 - diff --git a/.compizsnap/max.sh b/.compizsnap/max.sh deleted file mode 100644 index d1115ec..0000000 --- a/.compizsnap/max.sh +++ /dev/null @@ -1,19 +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 - -if (xinput --query-state $MOUSE | grep down) -then - echo ".compizsnap/max.sh: maximizing because the mouse is pressed" - wmctrl -r :ACTIVE: -b remove,maximized_vert,maximized_horz - wmctrl -r :ACTIVE: -b add,maximized_vert,maximized_horz -else - echo ".compizsnap/max.sh: exiting because the mouse isn't pressed" -fi - diff --git a/.compizsnap/mouse.sh b/.compizsnap/mouse.sh deleted file mode 100644 index 76d632c..0000000 --- a/.compizsnap/mouse.sh +++ /dev/null @@ -1,10 +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: run "xinput list" to find your mouse's ID# and then edit the MOUSE variable below: -# - -export MOUSE=12 - 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 - -- cgit v1.2.3-2-g168b