From c9935112c8b66e23d2acd7584fecd8e99a281b14 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 25 Apr 2011 12:22:55 -0400 Subject: .compizsnap, .nanorc Track .compizsnap/* files (hurpdurp), only tracked the directory before. Use *.nanorc files from the nano 2.2.6 distribution. --- .compizsnap/max.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .compizsnap/max.sh (limited to '.compizsnap/max.sh') diff --git a/.compizsnap/max.sh b/.compizsnap/max.sh new file mode 100644 index 0000000..d1115ec --- /dev/null +++ b/.compizsnap/max.sh @@ -0,0 +1,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 + -- cgit v1.2.3-2-g168b