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/left.sh | 23 ++++ .compizsnap/max.sh | 19 +++ .compizsnap/mouse.sh | 10 ++ .compizsnap/right.sh | 23 ++++ .nano/c.nanorc | 30 ----- .nano/diff.nanorc | 8 -- .nano/nanorc.nanorc | 40 ------ .nanorc | 315 ++++++++++++++++++++++++++++++++++++++++++++- share/nano/asm.nanorc | 17 +++ share/nano/awk.nanorc | 38 ++++++ share/nano/c.nanorc | 30 +++++ share/nano/cmake.nanorc | 19 +++ share/nano/css.nanorc | 9 ++ share/nano/debian.nanorc | 20 +++ share/nano/fortran.nanorc | 41 ++++++ share/nano/gentoo.nanorc | 55 ++++++++ share/nano/groff.nanorc | 24 ++++ share/nano/html.nanorc | 5 + share/nano/java.nanorc | 12 ++ share/nano/makefile.nanorc | 8 ++ share/nano/man.nanorc | 9 ++ share/nano/mgp.nanorc | 8 ++ share/nano/mutt.nanorc | 4 + share/nano/nanorc.nanorc | 16 +++ share/nano/objc.nanorc | 41 ++++++ share/nano/ocaml.nanorc | 27 ++++ share/nano/patch.nanorc | 10 ++ share/nano/perl.nanorc | 12 ++ share/nano/php.nanorc | 30 +++++ share/nano/pov.nanorc | 15 +++ share/nano/python.nanorc | 10 ++ share/nano/ruby.nanorc | 31 +++++ share/nano/sh.nanorc | 14 ++ share/nano/tcl.nanorc | 16 +++ share/nano/tex.nanorc | 6 + share/nano/xml.nanorc | 9 ++ 36 files changed, 922 insertions(+), 82 deletions(-) create mode 100644 .compizsnap/left.sh create mode 100644 .compizsnap/max.sh create mode 100644 .compizsnap/mouse.sh create mode 100644 .compizsnap/right.sh delete mode 100644 .nano/c.nanorc delete mode 100644 .nano/diff.nanorc delete mode 100644 .nano/nanorc.nanorc create mode 100644 share/nano/asm.nanorc create mode 100644 share/nano/awk.nanorc create mode 100644 share/nano/c.nanorc create mode 100644 share/nano/cmake.nanorc create mode 100644 share/nano/css.nanorc create mode 100644 share/nano/debian.nanorc create mode 100644 share/nano/fortran.nanorc create mode 100644 share/nano/gentoo.nanorc create mode 100644 share/nano/groff.nanorc create mode 100644 share/nano/html.nanorc create mode 100644 share/nano/java.nanorc create mode 100644 share/nano/makefile.nanorc create mode 100644 share/nano/man.nanorc create mode 100644 share/nano/mgp.nanorc create mode 100644 share/nano/mutt.nanorc create mode 100644 share/nano/nanorc.nanorc create mode 100644 share/nano/objc.nanorc create mode 100644 share/nano/ocaml.nanorc create mode 100644 share/nano/patch.nanorc create mode 100644 share/nano/perl.nanorc create mode 100644 share/nano/php.nanorc create mode 100644 share/nano/pov.nanorc create mode 100644 share/nano/python.nanorc create mode 100644 share/nano/ruby.nanorc create mode 100644 share/nano/sh.nanorc create mode 100644 share/nano/tcl.nanorc create mode 100644 share/nano/tex.nanorc create mode 100644 share/nano/xml.nanorc diff --git a/.compizsnap/left.sh b/.compizsnap/left.sh new file mode 100644 index 0000000..8fb479f --- /dev/null +++ b/.compizsnap/left.sh @@ -0,0 +1,23 @@ +#!/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 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 + diff --git a/.compizsnap/mouse.sh b/.compizsnap/mouse.sh new file mode 100644 index 0000000..76d632c --- /dev/null +++ b/.compizsnap/mouse.sh @@ -0,0 +1,10 @@ +#!/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 new file mode 100644 index 0000000..c79151f --- /dev/null +++ b/.compizsnap/right.sh @@ -0,0 +1,23 @@ +#!/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 + diff --git a/.nano/c.nanorc b/.nano/c.nanorc deleted file mode 100644 index abe2e58..0000000 --- a/.nano/c.nanorc +++ /dev/null @@ -1,30 +0,0 @@ -syntax "c" "\.(c|C|cc|cpp|cxx|h|H|hh|hpp|hxx)$" -## Preprocessor directives (Anything that begins with #) -color brightblack "#+(.*)" -## -## General syntax -color brightred "\<[A-Z_][0-9A-Z_]+\>" -color green "\<(float|double|bool|char|int|short|long|sizeof|enum|void|static|const|struct|union|typedef|extern|signed|unsigned|inline)\>" -color green "\<(u_?)?int(8|16|32|64|ptr)_t\>" -color green "\<(class|namespace|template|public|protected|private|typename|this|friend|virtual|using|mutable|volatile|register|explicit)\>" -color brightyellow "\<(for|if|while|do|else|case|default|switch)\>" -color brightyellow "\<(try|throw|catch|operator|new|delete)\>" -color magenta "\<(goto|continue|break|return|throw)\>" -color brightcyan "^space:*#space:*(define|undef|include|ifn?def|endif|elif|else|if|warning|error)" -color brightmagenta "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\\x[0-9A-Fa-f]{1,2}'" -## -## GCC builtins -color cyan "__attribute__space:*\(\([^)]*\)\)" "__(aligned|asm|builtin|hidden|inline|packed|restrict|section|typeof|weak)__" -## -## String highlighting. You will in general want your comments and -## strings to come last, because syntax highlighting rules will be -## applied in the order they are read in. -color brightyellow "<[^= ]*>" ""(\\.|[^"])*"" -## -## This string is VERY resource intensive! -color brightyellow start=""(\\.|[^"])*\\space:*$" end="^(\\.|[^"])*"" -## -## Comment highlighting -color brightblue "//.*" -color brightblue start="/\*" end="\*/" - diff --git a/.nano/diff.nanorc b/.nano/diff.nanorc deleted file mode 100644 index 1e14b25..0000000 --- a/.nano/diff.nanorc +++ /dev/null @@ -1,8 +0,0 @@ -syntax "patch" "\.(patch|diff)$" -color brightgreen "^\+.*" -color green "^\+\+\+.*" -color brightblue "^ .*" -color brightred "^-.*" -color red "^---.*" -color brightyellow "^@@.*" -color magenta "^diff.*" diff --git a/.nano/nanorc.nanorc b/.nano/nanorc.nanorc deleted file mode 100644 index 6177a4b..0000000 --- a/.nano/nanorc.nanorc +++ /dev/null @@ -1,40 +0,0 @@ -syntax "nanorc" "\.nanorc$" - -# set/unset -color red "^(set|unset) (autoindent|backup|const|cut|historylog|keypad|multibuffer|noconvert|nofollow|nohelp|nowrap|preserve|regexp|smooth|suspend|tempfile|view)" -color cyan "^set (fill|operatingdir|quotestr|speller|tabsize) \w*" -color red "^set (fill|operatingdir|quotestr|speller|tabsize) " - -# syntax -color cyan "^syntax .*" - -# colors: "(bright)?(white|black|red|blue|green|yellow|magenta|cyan)" -color white,blue "white" -color black,white "black" -color red,white "red" -color blue,white "blue" -color green,white "green" -color yellow,white "yellow" -color magenta,white "magenta" -color cyan,white "cyan" - -color brightwhite,blue "brightwhite" -color brightblack,white "brightblack" -color brightred,white "brightred" -color brightblue,white "brightblue" -color brightgreen,white "brightgreen" -color brightyellow,white "brightyellow" -color brightmagenta,white "brightmagenta" -color brightcyan,white "brightcyan" - -# color -color cyan "start=\w*" -color cyan "end=\w*" - -# commands -color blue "^(set|unset|syntax|color|icolor|include) " -# comments -color green "#.*$" - -#quotes -#color yellow start="\"." end="[^((\\)*\)]\"" diff --git a/.nanorc b/.nanorc index 93340a0..f150d54 100644 --- a/.nanorc +++ b/.nanorc @@ -1,5 +1,312 @@ -include ~/.nano/nanorc.nanorc +## Sample initialization file for GNU nano. +## +## Please note that you must have configured nano with --enable-nanorc +## for this file to be read! Also note that this file should not be in +## DOS or Mac format, and that characters specially interpreted by the +## shell should not be escaped here. +## +## To make sure a value is disabled, use "unset