dotfiles/README.md

113 lines
5.0 KiB
Markdown
Raw Normal View History

# dotfiles ┐【 ̄~ ̄】┌
2018-01-06 16:43:26 +01:00
These are my personal dotfiles.
2018-01-06 21:04:06 +01:00
I'm using:
2018-01-06 21:05:52 +01:00
* [Manjaro i3](https://manjaro.org/2017/03/07/manjaro-i3-community-edition-17-0-released/)
2018-01-07 11:52:56 +01:00
* [i3-gaps](https://github.com/Airblader/i3)
2018-01-06 21:06:22 +01:00
* [GNU Emacs](https://www.gnu.org/software/emacs/)
2018-01-07 03:17:06 +01:00
* [Z shell](http://zsh.sourceforge.net)
* [Oh My Zsh](http://ohmyz.sh)
2018-01-06 16:47:44 +01:00
## TODOS:
2018-01-06 21:04:06 +01:00
1. Make a proper pip requirements.txt for elpy and .scripts/i3lock.py
2. Making an own conky, conky_maia-like
3. Adding common keybindings of Emacs, i3 and aliases of zsh
2018-01-06 21:32:03 +01:00
4. Improve the README.md or maybe make a wiki.
2018-01-07 11:52:56 +01:00
5. Getting away from Manjaro i3 (?)
2018-01-06 16:47:44 +01:00
2018-01-06 21:04:06 +01:00
## Getting Started
### Prerequisites
2018-01-07 03:06:41 +01:00
* [emacs](https://wiki.archlinux.org/index.php/Emacs) - A extensible, cusotmizable, free/libre text editor - and more.
* [git](https://wiki.archlinux.org/index.php/git) - A free and open source distributed version control system.
* [python-pip](https://pip.pypa.io/en/stable) - pip to install python packages (**p**ip **i**nstalls **p**ackages)
2018-01-07 03:13:14 +01:00
* [termite](https://wiki.archlinux.org/index.php/termite) - Prefered terminal emulator, since urxvt can't handle powerline well.
2018-01-07 03:06:41 +01:00
* [powerline-fonts](https://github.com/powerline/fonts) - Powerline fonts for the Powerlevel9k-theme.
* [awesome-terminal-fonts](https://github.com/gabrielelana/awesome-terminal-fonts) - Font with cool icons. Necessary for powerlevel9k.
* [zsh-theme-powerlevel9k](https://github.com/bhilburn/powerlevel9k) - Powerlevel9k-theme for zsh.
2018-01-07 03:13:14 +01:00
* [texlive-most](https://wiki.archlinux.org/index.php/TeX_Live) - (optional)A high-quality typesetting system.
* [firefox](https://www.mozilla.org/en-US/firefox) - (optional) Install whatever you like, but you might need to change it up in the .config/i3/config.
* [thunderbid](https://www.mozilla.org/en-US/thunderbird) - (optional) Install whatever you like, but you might need to change it up in the .config/i3/config.
* [veracrypt](https://veracrypt.codeplex.com) - (optional) A free disk encryption software based on TrueCrypt.
* [keepassx2](https://keepass.info) - (optional) A free, open source, light-weight and easy-to-use password manager.
* [evince](https://wiki.archlinux.org/index.php/GNOME/Document_viewer) - (optional, needed if you want to use auctex) pdf viewer, default to view compiled LaTeX-files with auctex(emacs plugin).
2018-01-07 03:13:14 +01:00
* [palemoon-bin](https://www.palemoon.org) - Not needed anymore, if you use Firefox.
* [epdfview](https://github.com/jristz/epdfview) - Not needed anymore, if you use evince.
2018-01-07 03:06:41 +01:00
* [i3lock-color](https://github.com/PandorasFox/i3lock-color) - Needed for ~/.scripts/i3lock.py
2018-01-06 21:04:06 +01:00
2018-01-06 16:47:44 +01:00
```
sudo pacman -Syu
sudo pacman -S emacs git termite python-pip zsh-theme-powerlevel9k powerline-fonts awesome-terminal-fonts texlive-most firefox thunderbird evince veracrypt keepassx2
sudo pacman -R palemoon-bin
yaourt -S i3lock-color
2018-01-06 16:43:26 +01:00
```
2018-01-07 02:41:32 +01:00
### Setting up zsh
```
chsh -s /bin/zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" # Downloading/Installing oh-my-zsh
cp -r /usr/share/zsh-theme-powerlevel9k ~/.oh-my-zsh/themes/powerlevel9k # copying powerlevel9k-theme to the desired directory
rm -rf ~/.*bash* # remove bash-stuff from your home directory.. don't do it if you wanna keep using bash
```
2018-01-07 02:41:32 +01:00
### Setting up Emacs
If you have a clean emacs installation, you need to add the following snippet to your ~/.emacs file first.
This enables simple package installation.
2018-01-06 21:04:06 +01:00
```
(package-initialize)
(when (>= emacs-major-version 24)
(require 'package)
(add-to-list
'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/")
'("elpy" . "http://jorgenschaefer.github.io/packages/")
)
)
```
2018-01-07 02:41:32 +01:00
Afterwards you can do this, to get some neat packages.
More information on the following packages can be found inside of my **.emacs** file.
2018-01-07 02:41:32 +01:00
Open emacs and do the following:
(M = \<Alt\>/\<Meta\>)
2018-01-06 16:43:26 +01:00
```
M-x package-install auctex
M-x package-install dummyparens
M-x package-install elpy
M-x package-install flycheck
M-x package-install forest-blue-theme
M-x package-install google-this
M-x package-install nyan-mode
M-x package-install rainbow-mode
2018-01-06 16:47:44 +01:00
```
2018-01-06 21:04:06 +01:00
You can browse some more packages by entering this `M-x package-list-packages` in emacs.
### Setups
Setting up some programs.
#### Installing Nextcloud-Client (optional)
2018-01-06 16:47:44 +01:00
```
wget https://download.nextcloud.com/desktop/releases/Linux/Nextcloud-2.3.3-x86_64.AppImage --P ~/Downloads/
2018-01-06 21:17:53 +01:00
chmod +x ~/Downloads/Nextcloud-2.3.3-x86_64.AppImage
2018-01-06 21:04:06 +01:00
sudo ln -s ~/Downloads/Nextcloud-2.3.3-x86_64.AppImage /usr/bin/nextcloud
```
#### Finally *"installing"* the dotfiles.
2018-01-06 21:04:06 +01:00
```
2018-01-06 16:47:44 +01:00
git clone https://github.com/TuDatTr/dotfiles
cp -r ./dotfiles/.* ~/.
rm -rf ~/.i3/
2018-01-06 16:47:44 +01:00
sudo ln -s ~/.scripts/pipes.sh /usr/local/bin/pipes
2018-01-06 21:04:06 +01:00
```
If you're using elpy you might want to do this.
```pip install -r --user ~/dotfiles/requirements.txt```
2018-01-06 21:04:06 +01:00
2018-01-06 21:17:53 +01:00
# Author
* Tuan-Dat Tran - [TuDatTr](https://github.com/tudattr/)
# License
This project is license under the GPL-3.0 License - see LICENSE file for details.
# Acknowledgements
* [unixporn - the home for *NIX customization!](https://www.reddit.com/r/unixporn/)