#!/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