Advertisement
Guest User

genconfig

a guest
Jul 29th, 2014
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.40 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # global colors ("colors" file is in PATH)
  4. . colors
  5. # my monitors (as seen by xrandr)
  6. . screens
  7.  
  8.  
  9. ###################
  10. ### .Xresources ###
  11. ###################
  12.  
  13. cat > ~/.Xresources <<EOF
  14. Xft.antialias: 1
  15. Xft.autohint: 0
  16. Xft.hinting: 1
  17. Xft.hintstyle: hintfull
  18. XTerm*metaSendsEscape: true
  19. XTerm*allowBoldFonts: false
  20. XTerm*cutNewline: false
  21. XTerm*font: -*-fixed-medium-r-normal-*-13-*-*-*-*-80-iso10646-1
  22. XTerm*internalBorder: 5
  23. XTerm*saveLines: 1000
  24. XTerm*utf8: true
  25. XTerm*iconBorderWidth: 0
  26. XTerm*borderWidth: 0
  27. XTerm*foreground:   $XTERM7
  28. XTerm*background:   $XTERM0
  29. XTerm*cursorColor:  $XTERM1
  30. XTerm*pointerColor: $XTERM1
  31. !black
  32. XTerm*color0:     $XTERM0
  33. XTerm*color8:     $XTERM8
  34. !red
  35. XTerm*color1:     $XTERM1
  36. XTerm*color9:     $XTERM9
  37. !green
  38. XTerm*color2:     $XTERM2
  39. XTerm*color10:    $XTERM10
  40. !brown/yellow
  41. XTerm*color3:     $XTERM3
  42. XTerm*color11:    $XTERM11
  43. !blue
  44. XTerm*color4:     $XTERM4
  45. XTerm*color12:    $XTERM12
  46. !magenta
  47. XTerm*color5:     $XTERM5
  48. XTerm*color13:    $XTERM13
  49. !cyan
  50. XTerm*color6:     $XTERM6
  51. XTerm*color14:    $XTERM14
  52. !white
  53. XTerm*color7:     $XTERM7
  54. XTerm*color15:    $XTERM15
  55. EOF
  56.  
  57.  
  58. ################
  59. ### .inputrc ###
  60. ################
  61.  
  62. cat > ~/.inputrc <<EOF
  63. # command completion with colors
  64. set colored-stats on
  65. EOF
  66.  
  67.  
  68. #################
  69. ### .xprofile ###
  70. #################
  71.  
  72. cat > ~/.xprofile <<EOF
  73. source ~/.bash_profile
  74. setxkbmap es
  75. xrandr --dpi 96
  76. xrandr --output $PRIMARY --primary
  77. xrandr --output $HDMI --off
  78. EOF
  79.  
  80.  
  81. #####################
  82. ### .bash_profile ###
  83. #####################
  84.  
  85. cat > ~/.bash_profile <<EOF
  86. export PATH=\$PATH:/home/tigre/Scripts
  87. export EDITOR="nano"
  88. source ~/.bashrc
  89. EOF
  90.  
  91.  
  92. ###############
  93. ### .bashrc ###
  94. ###############
  95.  
  96. cat > ~/.bashrc <<EOF
  97. alias ls="/bin/ls --group-directories-first -v --color=auto"
  98. alias ll="/bin/ls --group-directories-first -lvh --color=auto"
  99. eval \$(dircolors -b ~/.dircolors)
  100. shopt -s checkwinsize
  101.  
  102. if [[ \$UID == "0" ]]
  103. then
  104.   PS1='\[\e[1;31m\]\u@\h \w \\$\[\e[0m\] '
  105. else
  106.   PS1='\[\e[1;32m\]\u@\h \w \\$\[\e[0m\] '
  107. fi
  108. EOF
  109.  
  110.  
  111. ########################
  112. ### .cmus/cmus.theme ###
  113. ########################
  114.  
  115. mkdir ~/.cmus
  116. cat > ~/.cmus/cmus.theme <<EOF
  117. set color_cmdline_bg=0
  118. set color_cmdline_fg=1
  119. set color_error=3
  120. set color_info=3
  121. set color_separator=15
  122. set color_statusline_bg=0
  123. set color_statusline_fg=5
  124. set color_titleline_bg=0
  125. set color_titleline_fg=5
  126. set color_win_bg=0
  127. set color_win_cur=1
  128. set color_win_cur_sel_bg=1
  129. set color_win_cur_sel_fg=0
  130. set color_win_dir=4
  131. set color_win_fg=15
  132. set color_win_inactive_cur_sel_bg=0
  133. set color_win_inactive_cur_sel_fg=6
  134. set color_win_inactive_sel_bg=0
  135. set color_win_inactive_sel_fg=6
  136. set color_win_sel_bg=0
  137. set color_win_sel_fg=6
  138. set color_win_title_bg=0
  139. set color_win_title_fg=0
  140. EOF
  141.  
  142.  
  143. ###############
  144. ### .nanorc ###
  145. ###############
  146.  
  147. cat > ~/.nanorc <<EOF
  148. set autoindent
  149. set const
  150. set nowrap
  151. set smarthome
  152. set smooth
  153. set softwrap
  154. set tabsize 2
  155. set tabstospaces
  156. include "/usr/share/nano/nanorc.nanorc"
  157. include "/usr/share/nano/c.nanorc"
  158. include "/usr/share/nano/makefile.nanorc"
  159. include "/usr/share/nano/css.nanorc"
  160. include "/usr/share/nano/html.nanorc"
  161. include "/usr/share/nano/perl.nanorc"
  162. include "/usr/share/nano/python.nanorc"
  163. include "/usr/share/nano/ruby.nanorc"
  164. include "/usr/share/nano/awk.nanorc"
  165. include "/usr/share/nano/sh.nanorc"
  166. include "/usr/share/nano/xml.nanorc"
  167. EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement