commit 2ff550a7396a3a7aba1efb5f886e4c25d48694ef Author: Yorick van Pelt Date: Wed Nov 14 16:37:34 2012 +0100 add some of my dotfiles here diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..6670a2c --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "x/pointless-xcompose"] + path = x/pointless-xcompose + url = https://github.com/leoboiko/pointless-xcompose diff --git a/git/gitconfig.symlink b/git/gitconfig.symlink new file mode 100644 index 0000000..e7647e5 --- /dev/null +++ b/git/gitconfig.symlink @@ -0,0 +1,9 @@ +# you probably need to change this, because you're not me. + +[user] + email = yorickvanpelt@gmail.com + name = Yorick van Pelt +[color] + diff = auto + status = auto + branch = auto diff --git a/gtk/gtkrc-1.2-gnome2.symlink b/gtk/gtkrc-1.2-gnome2.symlink new file mode 100644 index 0000000..063f4a5 --- /dev/null +++ b/gtk/gtkrc-1.2-gnome2.symlink @@ -0,0 +1 @@ +include '/home/yorick/dotfiles/gtk/gtkrc.mine' diff --git a/gtk/gtkrc-2.0.symlink b/gtk/gtkrc-2.0.symlink new file mode 100644 index 0000000..063f4a5 --- /dev/null +++ b/gtk/gtkrc-2.0.symlink @@ -0,0 +1 @@ +include '/home/yorick/dotfiles/gtk/gtkrc.mine' diff --git a/gtk/gtkrc.mine b/gtk/gtkrc.mine new file mode 100644 index 0000000..5e31a01 --- /dev/null +++ b/gtk/gtkrc.mine @@ -0,0 +1,3 @@ +gtk-theme-name = "Cole" +gtk-icon-theme-name = "clarity-canus" + diff --git a/rakefile b/rakefile new file mode 100644 index 0000000..4fa1196 --- /dev/null +++ b/rakefile @@ -0,0 +1,62 @@ +# MIT licensed. +# see https://github.com/holman/dotfiles/blob/master/License +# Copyright (c) Zach Holman, http://zachholman.com + + +require 'rake' + +desc "Hook our dotfiles into system-standard positions." +task :install do + linkables = Dir.glob('*/**{.symlink}') + + skip_all = false + overwrite_all = false + backup_all = false + + linkables.each do |linkable| + overwrite = false + backup = false + + file = linkable.split('/').last.split('.symlink').last + target = "#{ENV["HOME"]}/.#{file}" + + if File.exists?(target) || File.symlink?(target) + unless skip_all || overwrite_all || backup_all + puts "File already exists: #{target}, what do you want to do? [s]kip, [S]kip all, [o]verwrite, [O]verwrite all, [b]ackup, [B]ackup all" + case STDIN.gets.chomp + when 'o' then overwrite = true + when 'b' then backup = true + when 'O' then overwrite_all = true + when 'B' then backup_all = true + when 'S' then skip_all = true + when 's' then next + end + end + FileUtils.rm_rf(target) if overwrite || overwrite_all + `mv "$HOME/.#{file}" "$HOME/.#{file}.backup"` if backup || backup_all + end + `ln -s "$PWD/#{linkable}" "#{target}"` + end +end + +task :uninstall do + + Dir.glob('**/*.symlink').each do |linkable| + + file = linkable.split('/').last.split('.symlink').last + target = "#{ENV["HOME"]}/.#{file}" + + # Remove all symlinks created during installation + if File.symlink?(target) + FileUtils.rm(target) + end + + # Replace any backups made during installation + if File.exists?("#{ENV["HOME"]}/.#{file}.backup") + `mv "$HOME/.#{file}.backup" "$HOME/.#{file}"` + end + + end +end + +task :default => 'install' diff --git a/x/XCompose.symlink b/x/XCompose.symlink new file mode 100644 index 0000000..6cb6512 --- /dev/null +++ b/x/XCompose.symlink @@ -0,0 +1,22 @@ +include "/home/yorick/dotfiles/x/pointless-xcompose/abbrevs.xcompose" +include "/home/yorick/dotfiles/x/pointless-xcompose/arrows.xcompose" +include "/home/yorick/dotfiles/x/pointless-xcompose/bullets.xcompose" +include "/home/yorick/dotfiles/x/pointless-xcompose/dingbats.xcompose" +include "/home/yorick/dotfiles/x/pointless-xcompose/enclosed.xcompose" +include "/home/yorick/dotfiles/x/pointless-xcompose/fractions.xcompose" +include "/home/yorick/dotfiles/x/pointless-xcompose/historical.xcompose" +include "/home/yorick/dotfiles/x/pointless-xcompose/hyphen-macron.xcompose" +include "/home/yorick/dotfiles/x/pointless-xcompose/invisible.xcompose" +include "/home/yorick/dotfiles/x/pointless-xcompose/math.xcompose" +include "/home/yorick/dotfiles/x/pointless-xcompose/typographic.xcompose" +include "/home/yorick/dotfiles/x/pointless-xcompose/dashes-hyphens.xcompose" + + : "∑" U2211 # N-ARY SUMMATION + + : "≅" U2245 # APPROXIMATELY EQUAL TO + + : "∀" U2200 # FOR ALL + : "∃" U2201 # THERE EXISTS + + : "λ" # SMALL GREEK LETTER LAMBDA + : "Δ" # CAPITAL GREEK LETTER DELTA diff --git a/x/Xresources b/x/Xresources new file mode 100644 index 0000000..140b5f9 --- /dev/null +++ b/x/Xresources @@ -0,0 +1,120 @@ +! --- ~/.Xresources ------------------------------------------------------------ +! ------------------------------------------------------------------------------ +! --- generated with 4bit Terminal Color Scheme Designer ----------------------- +! ------------------------------------------------------------------------------ +! --- http://ciembor.github.com/4bit ------------------------------------------- +! ------------------------------------------------------------------------------ + +! --- special colors --- + +*background: #0d1926 +*foreground: #d9e6f2 + +! --- standard colors --- + +! black +*color0: #0a0b15 + +! bright_black +*color8: #2b2d36 + +! red +*color1: #ac7780 + +! bright_red +*color9: #cab2bb + +! green +*color2: #75ad80 + +! bright_green +*color10: #b0ccbb + +! yellow +*color3: #acad80 + +! bright_yellow +*color11: #caccbb + +! blue +*color4: #7577b7 + +! bright_blue +*color12: #b0b2d6 + +! magenta +*color5: #ac77b7 + +! bright_magenta +*color13: #cab2d6 + +! cyan +*color6: #75adb7 + +! bright_cyan +*color14: #b0ccd6 + +! white +*color7: #c9cad4 + +! bright_white +*color15: #eaecf5 + + +! ------------------------------------------------------------------------------ +! --- end of terminal colors section ------------------------------------------- +! ------------------------------------------------------------------------------ + + +! scrollbar style - xvt (default), plain (most compact), next, or xterm +URxvt.scrollstyle: plain +URxvt.scrollBar_right: true +URxvt.perl-ext-common: default,matcher +URxvt.urlLauncher: /usr/bin/firefox +URxvt.matcher.button: 1 +URxvt.urgentOnBell: True + +URxvt.font: xft:DroidSansMono:size=6 +URxvt.geometry: 100x30 +URxvt.scrollColor: #0a0b15 + +! xscreensaver settings +!font settings +xscreensaver.Dialog.bodyFont: -*-dina-medium-r-*-*-12-*-*-*-*-*-*-* +xscreensaver.Dialog.labelFont: -*-dina-medium-r-*-*-12-*-*-*-*-*-*-* +xscreensaver.Dialog.unameFont: -*-dina-medium-r-*-*-12-*-*-*-*-*-*-* +xscreensaver.Dialog.dateFont: -*-dina-medium-r-*-*-12-*-*-*-*-*-*-* +xscreensaver.Dialog.headingFont: -*-dina-bold-r-*-*-12-*-*-*-*-*-*-* +xscreensaver.Dialog.buttonFont: -*-dina-bold-r-*-*-12-*-*-*-*-*-*-* +xscreensaver.passwd.passwdFont: -*-dina-bold-r-*-*-12-*-*-*-*-*-*-* +!general dialog box (affects main hostname, username, password text) +xscreensaver.Dialog.foreground: #d9e6f2 +xscreensaver.Dialog.background: #0d1926 + +xscreensaver.Dialog.topShadowColor: #0a0b15 +xscreensaver.Dialog.bottomShadowColor: #0a0b15 + +xscreensaver.Dialog.Button.foreground: #eaecf5 +xscreensaver.Dialog.Button.background: #0a0b15 + +!username/password input box and date text colour + +xscreensaver.Dialog.text.foreground: #d9e6f2 +xscreensaver.Dialog.text.background: #0d1926 + +xscreensaver.Dialog.internalBorderWidth:15 +xscreensaver.Dialog.borderWidth: 1 +xscreensaver.Dialog.shadowThickness: 1 + +!timeout bar (background is actually determined by Dialog.text.background) +xscreensaver.passwd.thermometer.foreground: #0a0b15 +xscreensaver.passwd.thermometer.background: #0d1926 +xscreensaver.passwd.thermometer.width: 8 +!datestamp format--see the strftime(3) manual page for details +xscreensaver.dateFormat: %H:%M %d-%m-%Y + +! xclock settings + +xclock*analog: false +xclock*brief: true +xclock*foreground: #d9e6f2 diff --git a/x/pointless-xcompose b/x/pointless-xcompose new file mode 160000 index 0000000..c8c05ee --- /dev/null +++ b/x/pointless-xcompose @@ -0,0 +1 @@ +Subproject commit c8c05ee744fbce4b9dbfcc8bd99914f3206b87e0 diff --git a/x/xinitrc.symlink b/x/xinitrc.symlink new file mode 100644 index 0000000..ffbb352 --- /dev/null +++ b/x/xinitrc.symlink @@ -0,0 +1,5 @@ +upower -e +xrdb ~/dotfiles/x/Xresources +#.screenlayout/display_pluggedin.sh +/usr/bin/xscreensaver -no-splash & +exec awesome