From 722c13a8fc093bc67b9be444547571d544cb79a0 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Wed, 30 Jun 2010 20:59:12 +0200 Subject: Switched over from dotemacs to doteverything --- install.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 install.sh (limited to 'install.sh') diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..030e7a0 --- /dev/null +++ b/install.sh @@ -0,0 +1,9 @@ +INSTALL_BASEFILE=`readlink -f $0` +INSTALL_BASEDIR=`dirname $INSTALL_BASEFILE` + +ln -sf $INSTALL_BASEDIR/.emacs $HOME/.emacs + +if [ -d $HOME/.emacs.d ]; then + rm -rf $HOME/.emacs.d +fi +ln -sf $INSTALL_BASEDIR/.emacs.d $HOME/ \ No newline at end of file -- cgit v1.2.3-54-g00ecf From 104692129fd34a52dd967095f57371d1781c9172 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Wed, 30 Jun 2010 21:21:34 +0200 Subject: made install.sh executable added .Xdefaults --- .Xdefaults | 44 ++++++++++++++++++++++++++++++++++++++++++++ install.sh | 7 +++++-- 2 files changed, 49 insertions(+), 2 deletions(-) create mode 100644 .Xdefaults mode change 100644 => 100755 install.sh (limited to 'install.sh') diff --git a/.Xdefaults b/.Xdefaults new file mode 100644 index 0000000..9bc9e1b --- /dev/null +++ b/.Xdefaults @@ -0,0 +1,44 @@ +! General +urxvt*loginShell: true +urxvt*scrollBar: false +urxvt*secondaryScroll: true +urxvt*saveLines: 65535 +urxvt*cursorBlink: false +urxvt*urgentOnBell: true + +! Extensions +urxvt*perl-lib: /usr/lib/urxvt/perl/ +urxvt*perl-ext-common: default,matcher,searchable-scrollback +urxvt*urlLauncher: chromium-browser +urxvt*matcher.button: 1 +! - catch ugly URLs +!urxvt.cutchars: `()'*<>[]{|}" + +! Appearance +! - use a bitmap font +urxvt*font: -xos4-terminus-medium-*-*-*-14-*-*-*-*-*-*-* +urxvt*boldFont: -xos4-terminux-bold-*-*-*-14-*-*-*-*-*-*-* +! - cursor +urxvt*cursorColor: #DCDCCC +! - pseudo transparency +urxvt*shading: 20 +urxvt*transparent: true +! - color scheme +urxvt.background: #000000 +urxvt.foreground: #EBEBFF +urxvt*color0: #000000 ! black +urxvt*color1: #E01010 ! red +urxvt*color2: #00AA00 ! green +urxvt*color3: #FFFF00 ! yellow +urxvt*color4: #112037 ! blue +urxvt*color5: #A020F0 ! purple +urxvt*color6: #5B5BC7 ! cyan +urxvt*color7: #FEFEFE ! white +urxvt*color8: #6A6A6A ! bright-black +urxvt*color9: #FF5555 ! bright-red +urxvt*color10: #90EE90 ! bright-green +urxvt*color11: #FFFF2F ! bright-yellow +urxvt*color12: #5B5BC7 ! bright-blue +urxvt*color13: #E628BA ! bright-purple +urxvt*color14: #7D7DFB ! bright-cyan +urxvt*color15: #FFFFFF ! bright-white \ No newline at end of file diff --git a/install.sh b/install.sh old mode 100644 new mode 100755 index 030e7a0..bcbbf7b --- a/install.sh +++ b/install.sh @@ -1,9 +1,12 @@ INSTALL_BASEFILE=`readlink -f $0` INSTALL_BASEDIR=`dirname $INSTALL_BASEFILE` +# EMACS ln -sf $INSTALL_BASEDIR/.emacs $HOME/.emacs - if [ -d $HOME/.emacs.d ]; then rm -rf $HOME/.emacs.d fi -ln -sf $INSTALL_BASEDIR/.emacs.d $HOME/ \ No newline at end of file +ln -sf $INSTALL_BASEDIR/.emacs.d $HOME/ + +# XDEFAULTS +ln -sf $INSTALL_BASEDIR/.Xdefaults $HOME/.Xdefaults \ No newline at end of file -- cgit v1.2.3-54-g00ecf From c38f147ead1d57f48a75df8653ed3ed1c12eebd3 Mon Sep 17 00:00:00 2001 From: ryuslash Date: Thu, 1 Jul 2010 22:28:59 +0200 Subject: Added xmodmap Added rainbow.el to emacs Showing some extra messages with install.bat and install.sh Added some elisp to check which distro I'm on at that moment, though I don't yet use it --- .Xdefaults | 18 +---- .Xmodmap | 1 + .emacs.d/include.el | 2 + .emacs.d/ports.el | 29 +++++++ .emacs.d/rainbow-mode.el | 207 +++++++++++++++++++++++++++++++++++++++++++++++ install.bat | 2 + install.sh | 16 +++- 7 files changed, 256 insertions(+), 19 deletions(-) create mode 100644 .Xmodmap create mode 100644 .emacs.d/ports.el create mode 100644 .emacs.d/rainbow-mode.el (limited to 'install.sh') diff --git a/.Xdefaults b/.Xdefaults index 9bc9e1b..e1c317c 100644 --- a/.Xdefaults +++ b/.Xdefaults @@ -25,20 +25,4 @@ urxvt*shading: 20 urxvt*transparent: true ! - color scheme urxvt.background: #000000 -urxvt.foreground: #EBEBFF -urxvt*color0: #000000 ! black -urxvt*color1: #E01010 ! red -urxvt*color2: #00AA00 ! green -urxvt*color3: #FFFF00 ! yellow -urxvt*color4: #112037 ! blue -urxvt*color5: #A020F0 ! purple -urxvt*color6: #5B5BC7 ! cyan -urxvt*color7: #FEFEFE ! white -urxvt*color8: #6A6A6A ! bright-black -urxvt*color9: #FF5555 ! bright-red -urxvt*color10: #90EE90 ! bright-green -urxvt*color11: #FFFF2F ! bright-yellow -urxvt*color12: #5B5BC7 ! bright-blue -urxvt*color13: #E628BA ! bright-purple -urxvt*color14: #7D7DFB ! bright-cyan -urxvt*color15: #FFFFFF ! bright-white \ No newline at end of file +urxvt.foreground: #EBEBFF \ No newline at end of file diff --git a/.Xmodmap b/.Xmodmap new file mode 100644 index 0000000..9109241 --- /dev/null +++ b/.Xmodmap @@ -0,0 +1 @@ +pointer = 3 2 1 \ No newline at end of file diff --git a/.emacs.d/include.el b/.emacs.d/include.el index 9000147..35c273a 100644 --- a/.emacs.d/include.el +++ b/.emacs.d/include.el @@ -11,6 +11,8 @@ "~/.emacs.d/sqlplus.el" "A Major mode for communicating with Oracle" t) (autoload 'batch-mode "~/.emacs.d/batch-mode.el" "A Major mode for editing Batch files" t) +(autoload 'rainbow-mode + "~/.emacs.d/rainbow-mode.el" "A Minor mode for showing colors inline" t) (load-file "~/.emacs.d/auto-complete-config.el") (require 'auto-complete-config) \ No newline at end of file diff --git a/.emacs.d/ports.el b/.emacs.d/ports.el new file mode 100644 index 0000000..eec3854 --- /dev/null +++ b/.emacs.d/ports.el @@ -0,0 +1,29 @@ +;; function copied from dim-ports.al by Dimitri Fontaine +;; http://git.naquadah.org/?p=~dim/emacs.d.git;a=summary +(defun lsb-release (&optional property) + "Parse lsb-release output and return an alist, or the value for the given property" + (when (file-executable-p "/usr/bin/lsb_release") + (let* ((lsbr (shell-command-to-string "/usr/bin/lsb_release -a 2>/dev/null")) + (props (split-string lsbr "[:\n]" t)) + (kv)) + (while (>= (length props) 2) + ;; Don't keep extra spaces. This way seems like the easy one in elisp. + (let ((key (mapconcat 'identity (split-string (car props)) " ")) + (val (mapconcat 'identity (split-string (cadr props)) " "))) + (setq kv (add-to-list 'kv (cons key val))) + (setq props (cddr props)))) + (if property + (cdr (assoc property (lsb-release))) + kv)))) + +;; function copied from dim-ports.al by Dimitri Fontaine +;; http://git.naquadah.org/?p=~dim/emacs.d.git;a=summary +(defmacro when-running-ubuntu (&rest body) + "eval body only when running under Ubuntu" + (when (equal (lsb-release "Distributor ID") "Ubuntu") ,@body)) + +;; function adapted from dim-ports.al by Dimitri Fontaine +;; http://git.naquadah.org/?p=~dim/emacs.d.git;a=summary +(defmacro when-running-fedora (&rest body) + "eval body only when running under Fedora" + (when (equal (lsb-release "Distributor ID") "Fedora") ,@body)) \ No newline at end of file diff --git a/.emacs.d/rainbow-mode.el b/.emacs.d/rainbow-mode.el new file mode 100644 index 0000000..8207abc --- /dev/null +++ b/.emacs.d/rainbow-mode.el @@ -0,0 +1,207 @@ +;;; rainbow-mode.el --- prints color strings with colored background + +;; Copyright (C) 2010 Julien Danjou + +;; Author: Julien Danjou +;; Keywords: strings, faces + +;; This file is NOT part of GNU Emacs. + +;; GNU Emacs is free software: you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. + +;; GNU Emacs is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with GNU Emacs. If not, see . + +;;; Commentary: +;; This minor mode will add background to strings that matches color names. +;; i.e. +;; #0000ff +;; Will be printed in white with a blue background. +;; + +;;; Code: + +(eval-when-compile + (require 'cl)) + +(require 'regexp-opt) +(require 'faces) + +(defgroup rainbow nil + "Show color strings with a background color." + :tag "Rainbow" + :group 'help) + +;; Hexadecimal colors +(defvar rainbow-hexadecimal-colors-font-lock-keywords + '("#[0-9a-fA-F]\\{3\\}[0-9a-fA-F]\\{3\\}?" + (0 (rainbow-colorize-itself))) + "Font-lock keywords to add for hexadecimal colors.") + +;; rgb() colors +(defvar rainbow-html-rgb-colors-font-lock-keywords + '(("rgb(\s*\\([0-9]\\{1,3\\}\\(?:\s*%\\)?\\)\s*,\s*\\([0-9]\\{1,3\\}\\(?:\s*%\\)?\\)\s*,\s*\\([0-9]\\{1,3\\}\\(?:\s*%\\)?\\)\s*)" + (0 (rainbow-colorize-rgb))) + ("rgba(\s*\\([0-9]\\{1,3\\}\\(?:\s*%\\)?\\)\s*,\s*\\([0-9]\\{1,3\\}\\(?:\s*%\\)?\\)\s*,\s*\\([0-9]\\{1,3\\}\\(?:\s*%\\)?\\)\s*,\s*[0-9]\\{1,3\\}\s*%?\s*)" + (0 (rainbow-colorize-rgb)))) + "Font-lock keywords to add for RGB colors.") + +;; HTML colors name +(defvar rainbow-html-colors-font-lock-keywords nil + "Font-lock keywords to add for HTML colors.") +(make-variable-buffer-local 'rainbow-html-colors-font-lock-keywords) + +(defcustom rainbow-html-colors-alist + '(("black" . "#000000") + ("silver" . "#C0C0C0") + ("gray" . "#808080") + ("white" . "#FFFFFF") + ("maroon" . "#800000") + ("red" . "#FF0000") + ("purple" . "#800080") + ("fuchsia" . "#FF00FF") + ("green" . "#008000") + ("lime" . "#00FF00") + ("olive" . "#808000") + ("yellow" . "#FFFF00") + ("navy" . "#000080") + ("blue" . "#0000FF") + ("teal" . "#008080") + ("aqua" . "#00FFFF")) + "Alist of HTML colors. +Each entry should have the form (COLOR-NAME . HEXADECIMAL-COLOR)." + :group 'rainbow) + +(defcustom rainbow-html-colors-major-mode-list + '(html-mode css-mode php-mode nxml-mode xml-mode) + "List of major mode where HTML colors are enabled when +`rainbow-html-colors' is set to auto." + :group 'rainbow) + +(defcustom rainbow-html-colors 'auto + "When to enable HTML colors. +If set to t, the HTML colors will be enabled. If set to nil, the +HTML colors will not be enabled. If set to auto, the HTML colors +will be enabled if a major mode has been detected from the +`rainbow-html-colors-major-mode-list'." + :group 'rainbow) + +;; X colors +(defvar rainbow-x-colors-font-lock-keywords + `(,(regexp-opt (x-defined-colors) 'words) + (0 (rainbow-colorize-itself))) + "Font-lock keywords to add for X colors.") + +(defcustom rainbow-x-colors-major-mode-list + '(emacs-lisp-mode lisp-interaction-mode c-mode c++-mode java-mode) + "List of major mode where X colors are enabled when +`rainbow-x-colors' is set to auto." + :group 'rainbow) + +(defcustom rainbow-x-colors 'auto + "When to enable X colors. +If set to t, the X colors will be enabled. If set to nil, the +X colors will not be enabled. If set to auto, the X colors +will be enabled if a major mode has been detected from the +`rainbow-x-colors-major-mode-list'." + :group 'rainbow) + +;; Functions +(defun rainbow-colorize-match (color) + "Return a matched string propertized with a face whose +background is COLOR. The foreground is computed using +`rainbow-color-luminance', and is either white or black." + (put-text-property + (match-beginning 0) (match-end 0) + 'face `((:foreground ,(if (> 128.0 (rainbow-x-color-luminance color)) + "white" "black")) + (:background ,color)))) + +(defun rainbow-colorize-itself () + "Colorize a match with itself." + (rainbow-colorize-match (match-string-no-properties 0))) + +(defun rainbow-colorize-by-assoc (assoc-list) + "Colorize a match with its association from ASSOC-LIST." + (rainbow-colorize-match (cdr (assoc (match-string-no-properties 0) assoc-list)))) + +(defun rainbow-rgb-relative-to-absolute (number) + "Convert a relative NUMBER to absolute. If NUMBER is absolute, return NUMBER. +This will convert \"80 %\" to 204, \"100 %\" to 255 but \"123\" to \"123\"" + (let ((string-length (- (length number) 1))) + ;; Is this a number with %? + (if (eq (elt number string-length) ?%) + (/ (* (string-to-number (substring number 0 string-length)) 255) 100) + (string-to-number number)))) + +(defun rainbow-colorize-rgb () + "Colorize a match with itself." + (let ((r (rainbow-rgb-relative-to-absolute (match-string-no-properties 1))) + (g (rainbow-rgb-relative-to-absolute (match-string-no-properties 2))) + (b (rainbow-rgb-relative-to-absolute (match-string-no-properties 3)))) + (rainbow-colorize-match (format "#%02X%02X%02X" r g b)))) + +(defun rainbow-color-luminance (red green blue) + "Calculate the luminance of color composed of RED, BLUE and GREEN." + (floor (+ (* .2126 red) (* .7152 green) (* .0722 blue)) 256)) + +(defun rainbow-x-color-luminance (color) + "Calculate the luminance of a color string (e.g. \"#ffaa00\", \"blue\")." + (let* ((values (x-color-values color)) + (r (car values)) + (g (cadr values)) + (b (caddr values))) + (rainbow-color-luminance r g b))) + +(defun rainbow-turn-on () + "Turn on raibow-mode." + (font-lock-add-keywords nil + (list rainbow-hexadecimal-colors-font-lock-keywords)) + ;; Activate X colors? + (when (or (eq rainbow-x-colors t) + (and (eq rainbow-x-colors 'auto) + (memq major-mode rainbow-x-colors-major-mode-list))) + (font-lock-add-keywords nil + (list rainbow-x-colors-font-lock-keywords))) + ;; Activate HTML colors? + (when (or (eq rainbow-html-colors t) + (and (eq rainbow-html-colors 'auto) + (memq major-mode rainbow-html-colors-major-mode-list))) + (setq rainbow-html-colors-font-lock-keywords + `(,(regexp-opt (mapcar 'car rainbow-html-colors-alist) 'words) + (0 (rainbow-colorize-by-assoc rainbow-html-colors-alist)))) + (font-lock-add-keywords nil + `(,rainbow-html-colors-font-lock-keywords + ,@rainbow-html-rgb-colors-font-lock-keywords)))) + +(defun rainbow-turn-off () + "Turn off rainbow-mode." + (font-lock-remove-keywords + nil + (list + rainbow-hexadecimal-colors-font-lock-keywords + rainbow-html-colors-font-lock-keywords + rainbow-x-colors-font-lock-keywords + rainbow-html-rgb-colors-font-lock-keywords))) + +;;;###autoload +(define-minor-mode rainbow-mode + "Colorize strings that represent colors. +This will fontify with colors the string like \"#aabbcc\" or \"blue\"" + :lighter " Rbow" + (progn + (if rainbow-mode + (rainbow-turn-on) + (rainbow-turn-off)) + ;; Turn on font lock + (font-lock-mode 1))) + +(provide 'rainbow-mode) diff --git a/install.bat b/install.bat index 3dfeb83..e3c524e 100644 --- a/install.bat +++ b/install.bat @@ -1,5 +1,7 @@ @echo off REM An install script for windows +echo "Copying .emacs to %APPDATA%\\" copy /Y .emacs %APPDATA%\ +echo "Copying .emacs.d to %APPDATA%\\" copy /Y .emacs.d %APPDATA%\ \ No newline at end of file diff --git a/install.sh b/install.sh index bcbbf7b..3e1a96a 100755 --- a/install.sh +++ b/install.sh @@ -2,11 +2,23 @@ INSTALL_BASEFILE=`readlink -f $0` INSTALL_BASEDIR=`dirname $INSTALL_BASEFILE` # EMACS +echo "Linking $INSTALL_BASEDIR/.emacs to $HOME/.emacs" ln -sf $INSTALL_BASEDIR/.emacs $HOME/.emacs if [ -d $HOME/.emacs.d ]; then - rm -rf $HOME/.emacs.d + if [ -d $HOME/.emacs.d_backup ]; then + echo "Removing old $HOME/.emacs.d_backup" + rm -rf $HOME/.emacs.d_backup + fi + echo "Moving old $HOME/.emacs.d" + mv $HOME/.emacs.d $HOME/.emacs.d_backup fi +echo "Linking $INSTALL_BASEDIR/.emacs to $HOME/.emacs" ln -sf $INSTALL_BASEDIR/.emacs.d $HOME/ # XDEFAULTS -ln -sf $INSTALL_BASEDIR/.Xdefaults $HOME/.Xdefaults \ No newline at end of file +echo "Linking $INSTALL_BASEDIR/.Xdefaults to $HOME/.Xdefaults" +ln -sf $INSTALL_BASEDIR/.Xdefaults $HOME/.Xdefaults + +# XMODMAP +echo "Linking $INSTALL_BASEDIR/.Xmodmap to $HOME/.Xmodmap" +ln -sf $INSTALL_BASEDIR/.Xmodmap $HOME/.Xmodmap \ No newline at end of file -- cgit v1.2.3-54-g00ecf From 637b8976657fbcee2fa8e3d46c71b909e6f7318a Mon Sep 17 00:00:00 2001 From: ryuslash Date: Tue, 6 Jul 2010 20:42:22 +0200 Subject: Added conkerorrc --- .conkerorrc | 3 +++ install.sh | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .conkerorrc (limited to 'install.sh') diff --git a/.conkerorrc b/.conkerorrc new file mode 100644 index 0000000..28262da --- /dev/null +++ b/.conkerorrc @@ -0,0 +1,3 @@ +// -*- mode: javascript -*- +require("new-tabs.js"); +require("clicks-in-new-buffer-button.js"); \ No newline at end of file diff --git a/install.sh b/install.sh index 3e1a96a..18a2ba4 100755 --- a/install.sh +++ b/install.sh @@ -21,4 +21,8 @@ ln -sf $INSTALL_BASEDIR/.Xdefaults $HOME/.Xdefaults # XMODMAP echo "Linking $INSTALL_BASEDIR/.Xmodmap to $HOME/.Xmodmap" -ln -sf $INSTALL_BASEDIR/.Xmodmap $HOME/.Xmodmap \ No newline at end of file +ln -sf $INSTALL_BASEDIR/.Xmodmap $HOME/.Xmodmap + +# conkeror +echo "Linking $INSTALL_BASEDIR/.conkerorrc to $HOME/.conkerorrc" +ln -sf $INSTALL_BASEDIR/.conkerorrc $HOME/.conkerorrc \ No newline at end of file -- cgit v1.2.3-54-g00ecf From 1cd072301b077e2b39175d778ee02bd9a8fc1a64 Mon Sep 17 00:00:00 2001 From: ryuslash Date: Thu, 15 Jul 2010 20:49:39 +0200 Subject: Finally added my awesome config --- awesome/rc.lua | 1 + awesome/themes/default/background.png | Bin 0 -> 43786 bytes awesome/themes/default/layouts/dwindle.png | Bin 0 -> 967 bytes awesome/themes/default/layouts/dwindlew.png | Bin 0 -> 997 bytes awesome/themes/default/layouts/fairh.png | Bin 0 -> 194 bytes awesome/themes/default/layouts/fairhw.png | Bin 0 -> 194 bytes awesome/themes/default/layouts/fairv.png | Bin 0 -> 201 bytes awesome/themes/default/layouts/fairvw.png | Bin 0 -> 201 bytes awesome/themes/default/layouts/floating.png | Bin 0 -> 395 bytes awesome/themes/default/layouts/floatingw.png | Bin 0 -> 388 bytes awesome/themes/default/layouts/fullscreen.png | Bin 0 -> 202 bytes awesome/themes/default/layouts/fullscreenw.png | Bin 0 -> 202 bytes awesome/themes/default/layouts/magnifier.png | Bin 0 -> 209 bytes awesome/themes/default/layouts/magnifierw.png | Bin 0 -> 209 bytes awesome/themes/default/layouts/max.png | Bin 0 -> 321 bytes awesome/themes/default/layouts/maxw.png | Bin 0 -> 321 bytes awesome/themes/default/layouts/spiral.png | Bin 0 -> 1506 bytes awesome/themes/default/layouts/spiralw.png | Bin 0 -> 1527 bytes awesome/themes/default/layouts/tile.png | Bin 0 -> 174 bytes awesome/themes/default/layouts/tilebottom.png | Bin 0 -> 195 bytes awesome/themes/default/layouts/tilebottomw.png | Bin 0 -> 216 bytes awesome/themes/default/layouts/tileleft.png | Bin 0 -> 172 bytes awesome/themes/default/layouts/tileleftw.png | Bin 0 -> 170 bytes awesome/themes/default/layouts/tiletop.png | Bin 0 -> 195 bytes awesome/themes/default/layouts/tiletopw.png | Bin 0 -> 215 bytes awesome/themes/default/layouts/tilew.png | Bin 0 -> 168 bytes awesome/themes/default/submenu.png | Bin 0 -> 440 bytes awesome/themes/default/taglist/squarefw.png | Bin 0 -> 187 bytes awesome/themes/default/taglist/squarew.png | Bin 0 -> 193 bytes awesome/themes/default/tasklist/floating.png | Bin 0 -> 345 bytes awesome/themes/default/tasklist/floatingw.png | Bin 0 -> 334 bytes awesome/themes/default/theme.lua | 96 +++++++++++++++++++++ awesome/themes/default/titlebar/close_focus.png | Bin 0 -> 666 bytes awesome/themes/default/titlebar/close_normal.png | Bin 0 -> 893 bytes .../default/titlebar/floating_focus_active.png | Bin 0 -> 598 bytes .../default/titlebar/floating_focus_inactive.png | Bin 0 -> 571 bytes .../default/titlebar/floating_normal_active.png | Bin 0 -> 799 bytes .../default/titlebar/floating_normal_inactive.png | Bin 0 -> 562 bytes .../default/titlebar/maximized_focus_active.png | Bin 0 -> 1013 bytes .../default/titlebar/maximized_focus_inactive.png | Bin 0 -> 793 bytes .../default/titlebar/maximized_normal_active.png | Bin 0 -> 1208 bytes .../default/titlebar/maximized_normal_inactive.png | Bin 0 -> 780 bytes .../themes/default/titlebar/ontop_focus_active.png | Bin 0 -> 774 bytes .../default/titlebar/ontop_focus_inactive.png | Bin 0 -> 722 bytes .../default/titlebar/ontop_normal_active.png | Bin 0 -> 965 bytes .../default/titlebar/ontop_normal_inactive.png | Bin 0 -> 720 bytes .../default/titlebar/sticky_focus_active.png | Bin 0 -> 833 bytes .../default/titlebar/sticky_focus_inactive.png | Bin 0 -> 611 bytes .../default/titlebar/sticky_normal_active.png | Bin 0 -> 967 bytes .../default/titlebar/sticky_normal_inactive.png | Bin 0 -> 625 bytes install.sh | 16 +++- 51 files changed, 111 insertions(+), 2 deletions(-) create mode 120000 awesome/rc.lua create mode 100644 awesome/themes/default/background.png create mode 100644 awesome/themes/default/layouts/dwindle.png create mode 100644 awesome/themes/default/layouts/dwindlew.png create mode 100644 awesome/themes/default/layouts/fairh.png create mode 100644 awesome/themes/default/layouts/fairhw.png create mode 100644 awesome/themes/default/layouts/fairv.png create mode 100644 awesome/themes/default/layouts/fairvw.png create mode 100644 awesome/themes/default/layouts/floating.png create mode 100644 awesome/themes/default/layouts/floatingw.png create mode 100644 awesome/themes/default/layouts/fullscreen.png create mode 100644 awesome/themes/default/layouts/fullscreenw.png create mode 100644 awesome/themes/default/layouts/magnifier.png create mode 100644 awesome/themes/default/layouts/magnifierw.png create mode 100644 awesome/themes/default/layouts/max.png create mode 100644 awesome/themes/default/layouts/maxw.png create mode 100644 awesome/themes/default/layouts/spiral.png create mode 100644 awesome/themes/default/layouts/spiralw.png create mode 100644 awesome/themes/default/layouts/tile.png create mode 100644 awesome/themes/default/layouts/tilebottom.png create mode 100644 awesome/themes/default/layouts/tilebottomw.png create mode 100644 awesome/themes/default/layouts/tileleft.png create mode 100644 awesome/themes/default/layouts/tileleftw.png create mode 100644 awesome/themes/default/layouts/tiletop.png create mode 100644 awesome/themes/default/layouts/tiletopw.png create mode 100644 awesome/themes/default/layouts/tilew.png create mode 100644 awesome/themes/default/submenu.png create mode 100644 awesome/themes/default/taglist/squarefw.png create mode 100644 awesome/themes/default/taglist/squarew.png create mode 100644 awesome/themes/default/tasklist/floating.png create mode 100644 awesome/themes/default/tasklist/floatingw.png create mode 100644 awesome/themes/default/theme.lua create mode 100644 awesome/themes/default/titlebar/close_focus.png create mode 100644 awesome/themes/default/titlebar/close_normal.png create mode 100644 awesome/themes/default/titlebar/floating_focus_active.png create mode 100644 awesome/themes/default/titlebar/floating_focus_inactive.png create mode 100644 awesome/themes/default/titlebar/floating_normal_active.png create mode 100644 awesome/themes/default/titlebar/floating_normal_inactive.png create mode 100644 awesome/themes/default/titlebar/maximized_focus_active.png create mode 100644 awesome/themes/default/titlebar/maximized_focus_inactive.png create mode 100644 awesome/themes/default/titlebar/maximized_normal_active.png create mode 100644 awesome/themes/default/titlebar/maximized_normal_inactive.png create mode 100644 awesome/themes/default/titlebar/ontop_focus_active.png create mode 100644 awesome/themes/default/titlebar/ontop_focus_inactive.png create mode 100644 awesome/themes/default/titlebar/ontop_normal_active.png create mode 100644 awesome/themes/default/titlebar/ontop_normal_inactive.png create mode 100644 awesome/themes/default/titlebar/sticky_focus_active.png create mode 100644 awesome/themes/default/titlebar/sticky_focus_inactive.png create mode 100644 awesome/themes/default/titlebar/sticky_normal_active.png create mode 100644 awesome/themes/default/titlebar/sticky_normal_inactive.png (limited to 'install.sh') diff --git a/awesome/rc.lua b/awesome/rc.lua new file mode 120000 index 0000000..40c842a --- /dev/null +++ b/awesome/rc.lua @@ -0,0 +1 @@ +/home/slash/prj/awesomerc/rc.lua \ No newline at end of file diff --git a/awesome/themes/default/background.png b/awesome/themes/default/background.png new file mode 100644 index 0000000..0d882b7 Binary files /dev/null and b/awesome/themes/default/background.png differ diff --git a/awesome/themes/default/layouts/dwindle.png b/awesome/themes/default/layouts/dwindle.png new file mode 100644 index 0000000..943ece5 Binary files /dev/null and b/awesome/themes/default/layouts/dwindle.png differ diff --git a/awesome/themes/default/layouts/dwindlew.png b/awesome/themes/default/layouts/dwindlew.png new file mode 100644 index 0000000..36de1ba Binary files /dev/null and b/awesome/themes/default/layouts/dwindlew.png differ diff --git a/awesome/themes/default/layouts/fairh.png b/awesome/themes/default/layouts/fairh.png new file mode 100644 index 0000000..b4e289d Binary files /dev/null and b/awesome/themes/default/layouts/fairh.png differ diff --git a/awesome/themes/default/layouts/fairhw.png b/awesome/themes/default/layouts/fairhw.png new file mode 100644 index 0000000..514d66d Binary files /dev/null and b/awesome/themes/default/layouts/fairhw.png differ diff --git a/awesome/themes/default/layouts/fairv.png b/awesome/themes/default/layouts/fairv.png new file mode 100644 index 0000000..e5aad70 Binary files /dev/null and b/awesome/themes/default/layouts/fairv.png differ diff --git a/awesome/themes/default/layouts/fairvw.png b/awesome/themes/default/layouts/fairvw.png new file mode 100644 index 0000000..f97ce56 Binary files /dev/null and b/awesome/themes/default/layouts/fairvw.png differ diff --git a/awesome/themes/default/layouts/floating.png b/awesome/themes/default/layouts/floating.png new file mode 100644 index 0000000..cbc7804 Binary files /dev/null and b/awesome/themes/default/layouts/floating.png differ diff --git a/awesome/themes/default/layouts/floatingw.png b/awesome/themes/default/layouts/floatingw.png new file mode 100644 index 0000000..7ddf7ae Binary files /dev/null and b/awesome/themes/default/layouts/floatingw.png differ diff --git a/awesome/themes/default/layouts/fullscreen.png b/awesome/themes/default/layouts/fullscreen.png new file mode 100644 index 0000000..46716f5 Binary files /dev/null and b/awesome/themes/default/layouts/fullscreen.png differ diff --git a/awesome/themes/default/layouts/fullscreenw.png b/awesome/themes/default/layouts/fullscreenw.png new file mode 100644 index 0000000..2c3cfad Binary files /dev/null and b/awesome/themes/default/layouts/fullscreenw.png differ diff --git a/awesome/themes/default/layouts/magnifier.png b/awesome/themes/default/layouts/magnifier.png new file mode 100644 index 0000000..1476555 Binary files /dev/null and b/awesome/themes/default/layouts/magnifier.png differ diff --git a/awesome/themes/default/layouts/magnifierw.png b/awesome/themes/default/layouts/magnifierw.png new file mode 100644 index 0000000..97c1d11 Binary files /dev/null and b/awesome/themes/default/layouts/magnifierw.png differ diff --git a/awesome/themes/default/layouts/max.png b/awesome/themes/default/layouts/max.png new file mode 100644 index 0000000..fe70bef Binary files /dev/null and b/awesome/themes/default/layouts/max.png differ diff --git a/awesome/themes/default/layouts/maxw.png b/awesome/themes/default/layouts/maxw.png new file mode 100644 index 0000000..d8debb8 Binary files /dev/null and b/awesome/themes/default/layouts/maxw.png differ diff --git a/awesome/themes/default/layouts/spiral.png b/awesome/themes/default/layouts/spiral.png new file mode 100644 index 0000000..a24faf5 Binary files /dev/null and b/awesome/themes/default/layouts/spiral.png differ diff --git a/awesome/themes/default/layouts/spiralw.png b/awesome/themes/default/layouts/spiralw.png new file mode 100644 index 0000000..f34ceb0 Binary files /dev/null and b/awesome/themes/default/layouts/spiralw.png differ diff --git a/awesome/themes/default/layouts/tile.png b/awesome/themes/default/layouts/tile.png new file mode 100644 index 0000000..071a385 Binary files /dev/null and b/awesome/themes/default/layouts/tile.png differ diff --git a/awesome/themes/default/layouts/tilebottom.png b/awesome/themes/default/layouts/tilebottom.png new file mode 100644 index 0000000..aeedbe2 Binary files /dev/null and b/awesome/themes/default/layouts/tilebottom.png differ diff --git a/awesome/themes/default/layouts/tilebottomw.png b/awesome/themes/default/layouts/tilebottomw.png new file mode 100644 index 0000000..f42da9d Binary files /dev/null and b/awesome/themes/default/layouts/tilebottomw.png differ diff --git a/awesome/themes/default/layouts/tileleft.png b/awesome/themes/default/layouts/tileleft.png new file mode 100644 index 0000000..ab55e08 Binary files /dev/null and b/awesome/themes/default/layouts/tileleft.png differ diff --git a/awesome/themes/default/layouts/tileleftw.png b/awesome/themes/default/layouts/tileleftw.png new file mode 100644 index 0000000..c18e7b4 Binary files /dev/null and b/awesome/themes/default/layouts/tileleftw.png differ diff --git a/awesome/themes/default/layouts/tiletop.png b/awesome/themes/default/layouts/tiletop.png new file mode 100644 index 0000000..3febc35 Binary files /dev/null and b/awesome/themes/default/layouts/tiletop.png differ diff --git a/awesome/themes/default/layouts/tiletopw.png b/awesome/themes/default/layouts/tiletopw.png new file mode 100644 index 0000000..daf965f Binary files /dev/null and b/awesome/themes/default/layouts/tiletopw.png differ diff --git a/awesome/themes/default/layouts/tilew.png b/awesome/themes/default/layouts/tilew.png new file mode 100644 index 0000000..c722a35 Binary files /dev/null and b/awesome/themes/default/layouts/tilew.png differ diff --git a/awesome/themes/default/submenu.png b/awesome/themes/default/submenu.png new file mode 100644 index 0000000..b2778e2 Binary files /dev/null and b/awesome/themes/default/submenu.png differ diff --git a/awesome/themes/default/taglist/squarefw.png b/awesome/themes/default/taglist/squarefw.png new file mode 100644 index 0000000..2a86430 Binary files /dev/null and b/awesome/themes/default/taglist/squarefw.png differ diff --git a/awesome/themes/default/taglist/squarew.png b/awesome/themes/default/taglist/squarew.png new file mode 100644 index 0000000..913f2ca Binary files /dev/null and b/awesome/themes/default/taglist/squarew.png differ diff --git a/awesome/themes/default/tasklist/floating.png b/awesome/themes/default/tasklist/floating.png new file mode 100644 index 0000000..f29e7f5 Binary files /dev/null and b/awesome/themes/default/tasklist/floating.png differ diff --git a/awesome/themes/default/tasklist/floatingw.png b/awesome/themes/default/tasklist/floatingw.png new file mode 100644 index 0000000..eb802ae Binary files /dev/null and b/awesome/themes/default/tasklist/floatingw.png differ diff --git a/awesome/themes/default/theme.lua b/awesome/themes/default/theme.lua new file mode 100644 index 0000000..69760f6 --- /dev/null +++ b/awesome/themes/default/theme.lua @@ -0,0 +1,96 @@ +--------------------------- +-- Default awesome theme -- +--------------------------- + +theme = {} + +theme.font = "sans 8" + +theme.bg_normal = "#222222" +theme.bg_focus = "#535d6c" +theme.bg_urgent = "#ff0000" +theme.bg_minimize = "#444444" + +theme.fg_normal = "#aaaaaa" +theme.fg_focus = "#ffffff" +theme.fg_urgent = "#ffffff" +theme.fg_minimize = "#ffffff" + +theme.border_width = "1" +theme.border_normal = "#000000" +theme.border_focus = "#535d6c" +theme.border_marked = "#91231c" + +-- There are other variable sets +-- overriding the default one when +-- defined, the sets are: +-- [taglist|tasklist]_[bg|fg]_[focus|urgent] +-- titlebar_[bg|fg]_[normal|focus] +-- tooltip_[font|opacity|fg_color|bg_color|border_width|border_color] +-- mouse_finder_[color|timeout|animate_timeout|radius|factor] +-- Example: +--theme.taglist_bg_focus = "#ff0000" + +-- Display the taglist squares +theme.taglist_squares_sel = "/usr/share/awesome/themes/default/taglist/squarefw.png" +theme.taglist_squares_unsel = "/usr/share/awesome/themes/default/taglist/squarew.png" + +theme.tasklist_floating_icon = "/usr/share/awesome/themes/default/tasklist/floatingw.png" + +-- Variables set for theming the menu: +-- menu_[bg|fg]_[normal|focus] +-- menu_[border_color|border_width] +theme.menu_submenu_icon = "/usr/share/awesome/themes/default/submenu.png" +theme.menu_height = "15" +theme.menu_width = "100" + +-- You can add as many variables as +-- you wish and access them by using +-- beautiful.variable in your rc.lua +--theme.bg_widget = "#cc0000" + +-- Define the image to load +theme.titlebar_close_button_normal = "/usr/share/awesome/themes/default/titlebar/close_normal.png" +theme.titlebar_close_button_focus = "/usr/share/awesome/themes/default/titlebar/close_focus.png" + +theme.titlebar_ontop_button_normal_inactive = "/usr/share/awesome/themes/default/titlebar/ontop_normal_inactive.png" +theme.titlebar_ontop_button_focus_inactive = "/usr/share/awesome/themes/default/titlebar/ontop_focus_inactive.png" +theme.titlebar_ontop_button_normal_active = "/usr/share/awesome/themes/default/titlebar/ontop_normal_active.png" +theme.titlebar_ontop_button_focus_active = "/usr/share/awesome/themes/default/titlebar/ontop_focus_active.png" + +theme.titlebar_sticky_button_normal_inactive = "/usr/share/awesome/themes/default/titlebar/sticky_normal_inactive.png" +theme.titlebar_sticky_button_focus_inactive = "/usr/share/awesome/themes/default/titlebar/sticky_focus_inactive.png" +theme.titlebar_sticky_button_normal_active = "/usr/share/awesome/themes/default/titlebar/sticky_normal_active.png" +theme.titlebar_sticky_button_focus_active = "/usr/share/awesome/themes/default/titlebar/sticky_focus_active.png" + +theme.titlebar_floating_button_normal_inactive = "/usr/share/awesome/themes/default/titlebar/floating_normal_inactive.png" +theme.titlebar_floating_button_focus_inactive = "/usr/share/awesome/themes/default/titlebar/floating_focus_inactive.png" +theme.titlebar_floating_button_normal_active = "/usr/share/awesome/themes/default/titlebar/floating_normal_active.png" +theme.titlebar_floating_button_focus_active = "/usr/share/awesome/themes/default/titlebar/floating_focus_active.png" + +theme.titlebar_maximized_button_normal_inactive = "/usr/share/awesome/themes/default/titlebar/maximized_normal_inactive.png" +theme.titlebar_maximized_button_focus_inactive = "/usr/share/awesome/themes/default/titlebar/maximized_focus_inactive.png" +theme.titlebar_maximized_button_normal_active = "/usr/share/awesome/themes/default/titlebar/maximized_normal_active.png" +theme.titlebar_maximized_button_focus_active = "/usr/share/awesome/themes/default/titlebar/maximized_focus_active.png" + +-- You can use your own command to set your wallpaper +theme.wallpaper_cmd = { "wallman-awesome" } --{ "awsetbg /usr/share/awesome/themes/default/background.png" } + +-- You can use your own layout icons like this: +theme.layout_fairh = "/usr/share/awesome/themes/default/layouts/fairhw.png" +theme.layout_fairv = "/usr/share/awesome/themes/default/layouts/fairvw.png" +theme.layout_floating = "/usr/share/awesome/themes/default/layouts/floatingw.png" +theme.layout_magnifier = "/usr/share/awesome/themes/default/layouts/magnifierw.png" +theme.layout_max = "/usr/share/awesome/themes/default/layouts/maxw.png" +theme.layout_fullscreen = "/usr/share/awesome/themes/default/layouts/fullscreenw.png" +theme.layout_tilebottom = "/usr/share/awesome/themes/default/layouts/tilebottomw.png" +theme.layout_tileleft = "/usr/share/awesome/themes/default/layouts/tileleftw.png" +theme.layout_tile = "/usr/share/awesome/themes/default/layouts/tilew.png" +theme.layout_tiletop = "/usr/share/awesome/themes/default/layouts/tiletopw.png" +theme.layout_spiral = "/usr/share/awesome/themes/default/layouts/spiralw.png" +theme.layout_dwindle = "/usr/share/awesome/themes/default/layouts/dwindlew.png" + +theme.awesome_icon = "/usr/share/awesome/icons/awesome16.png" + +return theme +-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80 diff --git a/awesome/themes/default/titlebar/close_focus.png b/awesome/themes/default/titlebar/close_focus.png new file mode 100644 index 0000000..a5b7958 Binary files /dev/null and b/awesome/themes/default/titlebar/close_focus.png differ diff --git a/awesome/themes/default/titlebar/close_normal.png b/awesome/themes/default/titlebar/close_normal.png new file mode 100644 index 0000000..ca3f380 Binary files /dev/null and b/awesome/themes/default/titlebar/close_normal.png differ diff --git a/awesome/themes/default/titlebar/floating_focus_active.png b/awesome/themes/default/titlebar/floating_focus_active.png new file mode 100644 index 0000000..3447bb2 Binary files /dev/null and b/awesome/themes/default/titlebar/floating_focus_active.png differ diff --git a/awesome/themes/default/titlebar/floating_focus_inactive.png b/awesome/themes/default/titlebar/floating_focus_inactive.png new file mode 100644 index 0000000..f69af15 Binary files /dev/null and b/awesome/themes/default/titlebar/floating_focus_inactive.png differ diff --git a/awesome/themes/default/titlebar/floating_normal_active.png b/awesome/themes/default/titlebar/floating_normal_active.png new file mode 100644 index 0000000..e285b84 Binary files /dev/null and b/awesome/themes/default/titlebar/floating_normal_active.png differ diff --git a/awesome/themes/default/titlebar/floating_normal_inactive.png b/awesome/themes/default/titlebar/floating_normal_inactive.png new file mode 100644 index 0000000..958efdf Binary files /dev/null and b/awesome/themes/default/titlebar/floating_normal_inactive.png differ diff --git a/awesome/themes/default/titlebar/maximized_focus_active.png b/awesome/themes/default/titlebar/maximized_focus_active.png new file mode 100644 index 0000000..78a2914 Binary files /dev/null and b/awesome/themes/default/titlebar/maximized_focus_active.png differ diff --git a/awesome/themes/default/titlebar/maximized_focus_inactive.png b/awesome/themes/default/titlebar/maximized_focus_inactive.png new file mode 100644 index 0000000..62f8196 Binary files /dev/null and b/awesome/themes/default/titlebar/maximized_focus_inactive.png differ diff --git a/awesome/themes/default/titlebar/maximized_normal_active.png b/awesome/themes/default/titlebar/maximized_normal_active.png new file mode 100644 index 0000000..05c4e37 Binary files /dev/null and b/awesome/themes/default/titlebar/maximized_normal_active.png differ diff --git a/awesome/themes/default/titlebar/maximized_normal_inactive.png b/awesome/themes/default/titlebar/maximized_normal_inactive.png new file mode 100644 index 0000000..7fbc96a Binary files /dev/null and b/awesome/themes/default/titlebar/maximized_normal_inactive.png differ diff --git a/awesome/themes/default/titlebar/ontop_focus_active.png b/awesome/themes/default/titlebar/ontop_focus_active.png new file mode 100644 index 0000000..f954bed Binary files /dev/null and b/awesome/themes/default/titlebar/ontop_focus_active.png differ diff --git a/awesome/themes/default/titlebar/ontop_focus_inactive.png b/awesome/themes/default/titlebar/ontop_focus_inactive.png new file mode 100644 index 0000000..3f06b51 Binary files /dev/null and b/awesome/themes/default/titlebar/ontop_focus_inactive.png differ diff --git a/awesome/themes/default/titlebar/ontop_normal_active.png b/awesome/themes/default/titlebar/ontop_normal_active.png new file mode 100644 index 0000000..9d59779 Binary files /dev/null and b/awesome/themes/default/titlebar/ontop_normal_active.png differ diff --git a/awesome/themes/default/titlebar/ontop_normal_inactive.png b/awesome/themes/default/titlebar/ontop_normal_inactive.png new file mode 100644 index 0000000..d122d11 Binary files /dev/null and b/awesome/themes/default/titlebar/ontop_normal_inactive.png differ diff --git a/awesome/themes/default/titlebar/sticky_focus_active.png b/awesome/themes/default/titlebar/sticky_focus_active.png new file mode 100644 index 0000000..1106399 Binary files /dev/null and b/awesome/themes/default/titlebar/sticky_focus_active.png differ diff --git a/awesome/themes/default/titlebar/sticky_focus_inactive.png b/awesome/themes/default/titlebar/sticky_focus_inactive.png new file mode 100644 index 0000000..83a030a Binary files /dev/null and b/awesome/themes/default/titlebar/sticky_focus_inactive.png differ diff --git a/awesome/themes/default/titlebar/sticky_normal_active.png b/awesome/themes/default/titlebar/sticky_normal_active.png new file mode 100644 index 0000000..00a7fa8 Binary files /dev/null and b/awesome/themes/default/titlebar/sticky_normal_active.png differ diff --git a/awesome/themes/default/titlebar/sticky_normal_inactive.png b/awesome/themes/default/titlebar/sticky_normal_inactive.png new file mode 100644 index 0000000..5cacb5a Binary files /dev/null and b/awesome/themes/default/titlebar/sticky_normal_inactive.png differ diff --git a/install.sh b/install.sh index 18a2ba4..b7da86b 100755 --- a/install.sh +++ b/install.sh @@ -13,7 +13,7 @@ if [ -d $HOME/.emacs.d ]; then mv $HOME/.emacs.d $HOME/.emacs.d_backup fi echo "Linking $INSTALL_BASEDIR/.emacs to $HOME/.emacs" -ln -sf $INSTALL_BASEDIR/.emacs.d $HOME/ +ln -sf $INSTALL_BASEDIR/.emacs.d $HOME/.emacs.d # XDEFAULTS echo "Linking $INSTALL_BASEDIR/.Xdefaults to $HOME/.Xdefaults" @@ -25,4 +25,16 @@ ln -sf $INSTALL_BASEDIR/.Xmodmap $HOME/.Xmodmap # conkeror echo "Linking $INSTALL_BASEDIR/.conkerorrc to $HOME/.conkerorrc" -ln -sf $INSTALL_BASEDIR/.conkerorrc $HOME/.conkerorrc \ No newline at end of file +ln -sf $INSTALL_BASEDIR/.conkerorrc $HOME/.conkerorrc + +echo "Linking #INSTALL_BASEDIR/awesome to $HOME/.config/awesome" +if [ -d $HOME/.config/awesome ]; then + if [ -d $HOME/.config/awesome_backup ]; then + echo "Removing old $HOME/.config/awesome_backup" + rm -rf $HOME/.config/awesome_backup + fi + echo "Moving old $HOME/.config/awesome" + mv $HOME/.config/awesome $HOME/.config/awesome_backup +fi +echo "Linking $INSTALL_BASEDIR/awesome to $HOME/.config/awesome" +ln -sf $INSTALL_BASEDIR/awesome $HOME/.config/awesome \ No newline at end of file -- cgit v1.2.3-54-g00ecf