summaryrefslogtreecommitdiff
path: root/.compizsnap/max.sh
blob: d1115ec61fb0dab9f5d296a9816951d6922c70cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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