mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-11-14 04:07:18 +00:00
61 lines
4.9 KiB
Markdown
61 lines
4.9 KiB
Markdown
# Dotfiles
|
|
|
|
These are my personal dotfiles. This also include an automated installer for certain packages (Arch Linux specific) and for putting the dotfiles in place.
|
|
Source code for this automated script is in `src` directory, and the dotfiles are located in `home` and `root` directories respectively.
|
|
|
|
You are highly adviced to first go through these dotfiles yourself and adjust them to your liking.
|
|
|
|
|
|
## Sample images
|
|
|
|
- Custom prompt (defined [here](home/.config/shell/theme).
|
|
- Colorscheme showcase: ![image](https://user-images.githubusercontent.com/20902250/117699472-69ab5d80-b1b4-11eb-85a8-2b039bc1599a.png)
|
|
- Command timing showcase: ![image](https://user-images.githubusercontent.com/20902250/129356038-f1373183-ee50-4cc9-a602-a1215b5d1e5f.png)
|
|
- Neovim configuration (defined [`here`](home/.config/nvim/)) ![image](https://user-images.githubusercontent.com/20902250/129356722-9eb1e813-62c4-4ad1-ad49-114f69700f80.png)
|
|
- Automatic unknown command package handler ![image](https://user-images.githubusercontent.com/20902250/129359888-629a4f28-64bd-4c90-8e87-de75a9b8997d.png)
|
|
- `lf` file manager previews with ueberzug ![image](https://user-images.githubusercontent.com/20902250/129359042-b0594788-bc14-4294-bba2-8cba8e30cd94.png)
|
|
|
|
## Features
|
|
|
|
- Full fledged ZSH configuration without the need to rely on oh-my-zsh
|
|
- oh-my-zsh configuration is also supported, but it is off by default, adjust [`.zshrc`](home/.config/zsh/.zshrc) to enable it
|
|
- Even though enabling it is an option, it is not a necessary thing to do, oh-my-zsh has a lot of code that is mostly irrelevant and unused, these dotfiles give you the ability to completely avoid it, if you desire to do so
|
|
- Custom [prompt](home/.config/shell/theme), both for oh-my-zsh configuration or for standalone usage
|
|
- Custom [VIM configuration](home/.config/nvim)
|
|
- When you open nvim for the first time, it will automatically try to install addons using VimPlug
|
|
- It is complatible with TTY usage, in which case the color support is downgraded and use of special fonts is disabled.
|
|
- There isn't a single huge configuration file, but rather multiple config files that are being sourced by the main init.vim, this is done to avoid clutter with comments in the main file and it also provides a very easy way to disable parts of configuration, by simply not sourcing that file.
|
|
- NOTE: This configuration is mostly designed for neovim, not regular vim, however it should work with some adjustments
|
|
- Many handy [aliases](home/.config/shell/aliases) and [functions](home/.config/shell/functions) (likely too many, you should adjust that to your needs)
|
|
- [Many pre-defined environmental variables](home/.config/shell/environ), these include
|
|
- XDG paths configuration to avoid too much cluttering in home directory
|
|
- Colorful man pages using LESS_TERMCAP, or if `bat` is installed, using it as MANPAGER
|
|
- [Automatic handlers](home/.config/shell/handlers) which override default command not found behavior to show the package to which given command belongs (requires pkgfile on Arch Linux)
|
|
- Automated package installation for Arch Linux, which includes many handy packages. You should certainly take a look at which packages will be installed and adjust [`packages.yaml`](packages.yaml) before you run it.
|
|
- [Opensnitch firewall rules](root/etc/opensnitchd/rules), which block most unauthorized traffic and only allow needed things. This also blocks spotify ads.
|
|
- Automatic logout for TTY sessions or for root logins after 10 minutes of inactivity
|
|
- NetworkManager configuration which assigns new mac for each network
|
|
- `lf` file manager configuration with support for ueberzug image previews within the terminal
|
|
- Tons of handy scripts for automating common tasks
|
|
- [`incremental-backup`](root/usr/local/bin/incremental-backup): Easy way to utilize rsync for all backups, without the need for external software
|
|
- [`auto-chroot`](root/usr/local/bin/auto-chroot): Quick way to chroot into any other linux system, without typing the very repetetive mount and umount commands
|
|
- [`tamper-check`](root/usr/local/bin/tamper-check): Script that uses checksums to verify that given files weren't adjusted in any way.
|
|
- [`brightness`](home/.local/bin/scripts/brightness): Script to quickly change screen brightness, you may need to adjust the BRIGHTNESS_FILE, this can be different from machine to machine
|
|
- [`setbg`](home/.local/bin/scripts/setbg): Quick way to set desktop background to specific image, or random image, or previously used image
|
|
- Many smaller dmenu scripts to make life easier
|
|
|
|
|
|
## Requirements
|
|
|
|
`curl` and `tar`, or `git` to clone the repository itself.
|
|
|
|
## Installation
|
|
|
|
Clone this repository anywhere you like
|
|
`$ git clone https://github.com/ItsDrike/dotfiles`
|
|
|
|
If you don't want to install git (running straight from newly installed os), you can use `curl`: <br>
|
|
`$ curl -LJO https://github.com/ItsDrike/dotfiles/tarball/master` <br>
|
|
And extract from `.tar.gz` archive:
|
|
`$ tar xvf [archive name]`
|