Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
update @ Mon 4 Oct 22:28:50 EEST 2021
Browse files Browse the repository at this point in the history
  • Loading branch information
Ari Archer committed Oct 4, 2021
1 parent feee2e6 commit a801db8
Show file tree
Hide file tree
Showing 11 changed files with 261 additions and 91 deletions.
174 changes: 172 additions & 2 deletions doc/INSTALLATION.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Installation of my dotfiles in gentoo, #WIP
# Installation of my dotfiles in gentoo (WORK IN PROGRESS)

**Before doing any of this - back everything up, this is not a 100% fool-proof method, this works on my machine, you might need to tweak some things like instead of username "ari" you might use "joe"**


## Clone the repository

Expand Down Expand Up @@ -67,7 +70,7 @@ $ sudo rm -r /etc/portage

3. Get the new one
```bash
$ sudo mv portage /etc/portage
$ sudo mv portage/portage /etc/portage
```

4. Sync portage
Expand All @@ -85,3 +88,170 @@ $ cd ../list
$ sudo emerge app-editors/vim
```

7. Optionally edit the `package.list`
```bash
$ vim package.list
```

8. Install the packages
```bash
$ sudo emerge $(cat package.list)
```

9. Exit the directory
```bash
$ cd ..
```



# Enable some services
1. Enable `alsasound`
```bash
$ sudo rc-update add alsasound default
```



# Install tools
1. Make the `tools.sh` executable
```bash
$ chmod a+rx scripts/tools.sh
```

2. Run the provided script
```bash
$ ./scripts/tools.sh
```



# Dotfiles
1. Enter the dotfiles directory
```bash
$ cd dotfiles
```

2. Make the `/usr/local/src` directory
```bash
$ sudo mkdir /usr/local/src
```

3. Move some source files into it
```bash
$ sudo mv bin/* /usr/local/src
```

4. Go to the `/usr/local/src` directory
```bash
$ cd /usr/local/src
```

5. Install yafetch
```bash
$ cd yafetch
$ sudo make
$ sudo ln -s /usr/local/src/yafetch/yafetch /usr/local/bin/yafetch
```

6. Go back to dotfiles
```bash
$ cd ~/dotfiles-cleaned/dotfiles
```

7. Remove the old `~/.config`
```bash
$ rm -rf ~/.config
```

8. Get my config files
```basg
$ mv config ~/.config
```

9. Enter the `core` directory
```bash
$ cd core
```

10. Install safe core files
```bash
$ mv .xinitrc ~
$ mv .xprofile ~
$ sudo mv bash_git /etc
```

11. Install other core dotfiles
```
I will leave this step up to you, get whatever you want, but at this point you will probably need to edit everything.
If you don't know what goes where - see ../list/location.list
```

12. Get my scripts
```bash
$ mv custom/.scripts ~
```

13. Get my vim config
```bash
$ mv editors/vim/.vim ~
$ mv editors/vim/.vimrc ~
```

14. Make the `~/.pictures` directory
```bash
$ mkdir ~/Picrures
```

15. Get my wallpaper
```bash
$ mv etc/wallpaper.png ~/Pictures
```

16. Get my gtkrc
```bash
$ mv etc/.gtkrc-2.0 ~
```

17. Get the icons I use
```bash
$ rm -rf ~/.icons
$ mv icons ~/.icons
```

18. Get my linux config
```
My kernel config is very specific to my hardware (HP 250 G7 Notebook PC) - you might need to tweak the config.
```

19. Move the kernel config to the linux dir
```bash
$ mv linux/.config /usr/src/linux
```

20. Compile the kernel
```bash
$ cd /usr/src/linux
$ sudo make oldconfig
$ sudo make
$ sudo make modules_install
$ sudo make install
$ sudo dracut --force
$ sudo grub-mkconfig -o /boot/grub/grub.cfg
```

21. Get my suckless software builds
```bash
$ mv suckless/.dwm ~
$ mv suckless/Suckless ~
$ cd suckless/Suckless
$ chmod a+rx ./compile
$ ./compile
```

22. Done
```
The installation is done, now you can add the extra stuff that is left in the
directory if you feel like it and you could reboot.
```

4 changes: 2 additions & 2 deletions dotfiles/config/QtProject.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[FileDialog]
history=file:///home/ari/.config/firefox_extensions, file:///usr/src/linux-5.14.8-gentoo, file:///home/ari/Ari/coding/archive_/Applications_, file:///bin, file:///home/ari, file:///home/ari/Ari/coding/eso_/jsfuck/hello
lastVisited=file:///home/ari/Ari/coding/eso_/jsfuck/hello
history=file:///bin, file:///home/ari, file:///home/ari/Ari/coding/eso_/jsfuck/hello, file:///home/ari/Ari/passwd, file:///home/ari/Videos, file:///home/ari/Pictures
lastVisited=file:///home/ari/Pictures
qtVersion=5.15.2
shortcuts=file:, file:///home/ari
sidebarWidth=82
Expand Down
17 changes: 10 additions & 7 deletions dotfiles/core/hosts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# /etc/hosts: Local Host Database
#
# This file describes a number of aliases-to-address mappings for the for
# This file describes a number of aliases-to-address mappings for the for
# local hosts that share this file.
#
# The format of lines in this file is:
Expand All @@ -9,7 +9,7 @@
#
#The fields can be separated by any number of spaces or tabs.
#
# In the presence of the domain name service or NIS, this file may not be
# In the presence of the domain name service or NIS, this file may not be
# consulted at all; see /etc/host.conf for the resolution order.
#

Expand All @@ -23,16 +23,19 @@
#10.0.0.2 myname
#10.0.0.3 myfriend
#
# According to RFC 1918, you can use the following IP networks for private
# According to RFC 1918, you can use the following IP networks for private
# nets which will never be connected to the Internet:
#
# 10.0.0.0 - 10.255.255.255
# 172.16.0.0 - 172.31.255.255
# 192.168.0.0 - 192.168.255.255
#
# In case you want to be able to connect directly to the Internet (i.e. not
# behind a NAT, ADSL router, etc...), you need real official assigned
# numbers. Do not try to invent your own network numbers but instead get one
# from your network provider (if any) or from your regional registry (ARIN,
# In case you want to be able to connect directly to the Internet (i.e. not
# behind a NAT, ADSL router, etc...), you need real official assigned
# numbers. Do not try to invent your own network numbers but instead get one
# from your network provider (if any) or from your regional registry (ARIN,
# APNIC, LACNIC, RIPE NCC, or AfriNIC.)
#

0.0.0.0 ads.google.com

Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
" Trim trailing white-space in files
fun! TrimWhitespace()
let l:save = winsaveview()
keeppatterns %s/\s\+$//e
call winrestview(l:save)
endfun

augroup whitespace_trim
autocmd!
autocmd BufWritePre * :call TrimWhitespace()
augroup END


" Show diff in a better way
function! s:DiffWithSaved()
let filetype=&ft
diffthis
vnew | r # | normal! 1Gdd
diffthis
exe "setlocal bt=nofile bh=wipe nobl noswf ro ft=" . filetype
endfunction
com! Diff call s:DiffWithSaved()
cabbrev diff Diff

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
" Hide the background
hi Normal guibg=NONE ctermbg=NONE
hi LineNr guibg=NONE ctermbg=NONE
hi SignColumn guibg=NONE ctermbg=NONE
hi EndOfBuffer guibg=NONE ctermbg=NONE

" Hide cursorline background
hi CursorLine cterm=NONE term=underline ctermbg=NONE guibg=NONE

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
" Remap ; -> :
map ; :
" Remap lj -> escape
map lj <Esc>
inoremap lj <Esc>
" h, l <=> b, w
nnoremap h b
nnoremap l w
nnoremap b h
nnoremap w l
" Disable arrows keys because I keep using them :(
for key in ['<Up>', '<Down>', '<Left>', '<Right>']
exec 'map' key '<Nop>'
exec 'inoremap' key '<Nop>'
endfor

let mapleader = "," " , = leader

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
" laTeX config
let g:tex_flavor='latex'

" Bar's configuration
let g:lightline = {}
let g:lightline.colorscheme = 'apprentice' " Set the bar's theme

" Remove bar's background
let s:palette = g:lightline#colorscheme#{g:lightline.colorscheme}#palette
let s:palette.normal.middle = [ [ 'NONE', 'NONE', 'NONE', 'NONE' ] ]
let s:palette.inactive.middle = s:palette.normal.middle
let s:palette.tabline.middle = s:palette.normal.middle

set noshowmode " Don't show what mode vim is in

73 changes: 0 additions & 73 deletions dotfiles/editors/vim/.vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -55,76 +55,3 @@ call plug#end()

colorscheme alduin " Set the theme

" Hide the background
hi Normal guibg=NONE ctermbg=NONE
hi LineNr guibg=NONE ctermbg=NONE
hi SignColumn guibg=NONE ctermbg=NONE
hi EndOfBuffer guibg=NONE ctermbg=NONE

" Hide cursorline background
hi CursorLine cterm=NONE term=underline ctermbg=NONE guibg=NONE


" Remap ; -> :
map ; :
" Remap lj -> escape
map lj <Esc>
inoremap lj <Esc>
" h, l <=> b, w
nnoremap h b
nnoremap l w
nnoremap b h
nnoremap w l
" Disable arrows keys because I keep using them :(
for key in ['<Up>', '<Down>', '<Left>', '<Right>']
exec 'map' key '<Nop>'
exec 'inoremap' key '<Nop>'
endfor


let mapleader = "," " , = leader


" Trim trailing white-space in files
fun! TrimWhitespace()
let l:save = winsaveview()
keeppatterns %s/\s\+$//e
call winrestview(l:save)
endfun

augroup whitespace_trim
autocmd!
autocmd BufWritePre * :call TrimWhitespace()
augroup END


" laTeX config
let g:tex_flavor='latex'

" Bar's configuration
let g:lightline = {}
let g:lightline.colorscheme = 'apprentice' " Set the bar's theme

" Remove bar's background
let s:palette = g:lightline#colorscheme#{g:lightline.colorscheme}#palette
let s:palette.normal.middle = [ [ 'NONE', 'NONE', 'NONE', 'NONE' ] ]
let s:palette.inactive.middle = s:palette.normal.middle
let s:palette.tabline.middle = s:palette.normal.middle

set noshowmode " Don't show what mode vim is in


" Show diff in a better way
function! s:DiffWithSaved()
let filetype=&ft
diffthis
vnew | r # | normal! 1Gdd
diffthis
exe "setlocal bt=nofile bh=wipe nobl noswf ro ft=" . filetype
endfunction
com! Diff call s:DiffWithSaved()
cabbrev diff Diff

Loading

0 comments on commit a801db8

Please sign in to comment.