Browse Source

flesh out install.sh (in the lamest possible way)

Also removes xmodmap from xmonad.start.
Brennen Bearnes 7 months ago
parent
commit
d3cb53634b
2 changed files with 94 additions and 4 deletions
  1. 4
    1
      home/bin/xmonad.start
  2. 90
    3
      install.sh

+ 4
- 1
home/bin/xmonad.start View File

@@ -10,7 +10,10 @@
10 10
 
11 11
 # Load resources
12 12
 xrdb -merge .Xresources
13
-xmodmap ~/.xmodmap
13
+
14
+# This may now be handled by /etc/defaults/keyboard:
15
+# xmodmap ~/.xmodmap
16
+
14 17
 xsettingsd &
15 18
 
16 19
 # Start dunst for notifications:

+ 90
- 3
install.sh View File

@@ -1,4 +1,91 @@
1
-#!/usr/bin/env bash
1
+#!/bin/sh
2 2
 
3
-mkdir -p ~/.vim
4
-git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/Vundle.vim
3
+KIT_ROOT=$(pwd)
4
+
5
+echo "installing kit from $KIT_ROOT"
6
+
7
+echo "installing package prereqs"
8
+sudo apt-get install build-essential xterm tmux vim perl ack-grep \
9
+  git git-gui htop zsh suckless-tools figlet xmonad trayer xmobar \
10
+  volumeicon-alsa curl jq byzanz festival clipit redshift-gtk ranger \
11
+  rofi xsettingsd wmctrl lynx perl-doc dict moreutils myrepos etckeeper \
12
+  bzr cvs darcs mercurial subversion subversion-tools dunst i3lock
13
+
14
+echo "installing perl dependencies"
15
+sudo cpan -i Module::Build
16
+
17
+echo "vim setup"
18
+  mkdir -p ~/.vim/bundle
19
+  if [ ! -f ~/.vimrc ]; then
20
+    ln -s "$KIT_ROOT/home/.vimrc" "$HOME/.vimrc"
21
+  fi
22
+  if [ ! -f ~/.gvimrc ]; then
23
+    ln -s "$KIT_ROOT/home/.gvimrc" "$HOME/.gvimrc"
24
+  fi
25
+  if [ ! -d ~/.vim/bundle/Vundle.vim ]; then
26
+    git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/Vundle.vim
27
+  fi
28
+
29
+echo "xmonad setup"
30
+echo "(don't forget to point /usr/share/xsessions/xmonad.desktop at xmonad.start)"
31
+  if [ ! -d ~/.xmonad ]; then
32
+    ln -s "$KIT_ROOT/home/.xmonad" "$HOME/.xmonad"
33
+  fi
34
+  if [ ! -f ~/.xmobarrc ]; then
35
+    ln -s "$KIT_ROOT/home/.xmobarrc" "$HOME/.xmobarrc"
36
+  fi
37
+  if [ ! -f ~/.xsettingsd ]; then
38
+    ln -s "$KIT_ROOT/home/.xsettingsd" "$HOME/.xsettingsd"
39
+  fi
40
+
41
+echo "~/bin"
42
+  if [ ! -d ~/bin ]; then
43
+    ln -s "$KIT_ROOT/home/bin" "$HOME/bin"
44
+  fi
45
+
46
+echo "~/fragments"
47
+  if [ ! -d ~/fragments ]; then
48
+    ln -s "$KIT_ROOT/home/fragments" "$HOME/fragments"
49
+  fi
50
+
51
+echo "~/cheatsheets"
52
+  if [ ! -d ~/fragments ]; then
53
+    ln -s "$KIT_ROOT/home/cheatsheets" "$HOME/cheatsheets"
54
+  fi
55
+
56
+echo "shell setup"
57
+  if [ ! -f ~/.zshrc ]; then
58
+    ln -s "$KIT_ROOT/home/.zshrc" "$HOME/.zshrc"
59
+  fi
60
+  if [ ! -f ~/.bashrc ]; then
61
+    ln -s "$KIT_ROOT/home/.bashrc" "$HOME/.bashrc"
62
+  fi
63
+  if [ ! -f ~/.sh_common ]; then
64
+    ln -s "$KIT_ROOT/home/.sh_common" "$HOME/.sh_common"
65
+  fi
66
+
67
+echo "tmux / screen setup"
68
+  if [ ! -f ~/.tmux.conf ]; then
69
+    ln -s "$KIT_ROOT/home/.tmux.conf" "$HOME/.tmux.conf"
70
+  fi
71
+  if [ ! -f ~/.screenrc ]; then
72
+    ln -s "$KIT_ROOT/home/.screenrc" "$HOME/.screenrc"
73
+  fi
74
+
75
+echo "git setup"
76
+  if [ ! -f ~/.gitconfig ]; then
77
+    ln -s "$KIT_ROOT/home/.gitconfig" "$HOME/.gitconfig"
78
+  fi
79
+
80
+echo "git setup"
81
+  if [ ! -f ~/.gitconfig ]; then
82
+    ln -s "$KIT_ROOT/home/.gitconfig" "$HOME/.gitconfig"
83
+  fi
84
+
85
+echo "lynx setup"
86
+  if [ ! -f ~/.lynxrc ]; then
87
+    ln -s "$KIT_ROOT/home/.lynxrc" "$HOME/.lynxrc"
88
+  fi
89
+
90
+echo "keyboard setup (Ctrl and CapsLock swap)"
91
+  sudo cp etc/default/keyboard /etc/default/keyboard

Loading…
Cancel
Save