dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.swab.dev/dotfiles.git
Log | Files | Refs

commit 3512156b10349fee5cd78f036235466f6cfe785b
Author: Jaron Swab <jaron@swab.dev>
Date:   Wed,  9 Jun 2021 16:19:29 -0400

Initial commit with new setup

Diffstat:
A.config/mpv/mpv.config | 138+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
A.config/nvim/init.vim | 94+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
A.config/redshift.conf | 29+++++++++++++++++++++++++++++
A.xinitrc | 20++++++++++++++++++++
A.zshrc | 74++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5 files changed, 355 insertions(+), 0 deletions(-)

diff --git a/.config/mpv/mpv.config b/.config/mpv/mpv.config @@ -0,0 +1,138 @@ +# +# Example mpv configuration file +# +# Warning: +# +# The commented example options usually do _not_ set the default values. Call +# mpv with --list-options to see the default values for most options. There is +# no builtin or example mpv.conf with all the defaults. +# +# +# Configuration files are read system-wide from /usr/local/etc/mpv.conf +# and per-user from ~/.config/mpv/mpv.conf, where per-user settings override +# system-wide settings, all of which are overridden by the command line. +# +# Configuration file settings and the command line options use the same +# underlying mechanisms. Most options can be put into the configuration file +# by dropping the preceding '--'. See the man page for a complete list of +# options. +# +# Lines starting with '#' are comments and are ignored. +# +# See the CONFIGURATION FILES section in the man page +# for a detailed description of the syntax. +# +# Profiles should be placed at the bottom of the configuration file to ensure +# that settings wanted as defaults are not restricted to specific profiles. + +################## +# video settings # +################## + +# Start in fullscreen mode by default. +#fs=yes + +# force starting with centered window +#geometry=50%:50% + +# don't allow a new window to have a size larger than 50% of the screen size +autofit-larger=50%x50% + +# Do not close the window on exit. +#keep-open=yes + +# Do not wait with showing the video window until it has loaded. (This will +# resize the window once video is loaded. Also always shows a window with +# audio.) +#force-window=immediate + +# Disable the On Screen Controller (OSC). +osc=yes + +# Keep the player window on top of all other windows. +#ontop=yes + +# Specify high quality video rendering preset (for --vo=gpu only) +# Can cause performance problems with some drivers and GPUs. +#profile=gpu-hq + +# Force video to lock on the display's refresh rate, and change video and audio +# speed to some degree to ensure synchronous playback - can cause problems +# with some drivers and desktop environments. +#video-sync=display-resample + +# Enable hardware decoding if available. Often, this does not work with all +# video outputs, but should work well with default settings on most systems. +# If performance or energy usage is an issue, forcing the vdpau or vaapi VOs +# may or may not help. +#hwdec=auto + +################## +# audio settings # +################## + +# Specify default audio device. You can list devices with: --audio-device=help +# The option takes the device string (the stuff between the '...'). +#audio-device=alsa/default + +# Do not filter audio to keep pitch when changing playback speed. +#audio-pitch-correction=no + +# Output 5.1 audio natively, and upmix/downmix audio with a different format. +#audio-channels=5.1 +# Disable any automatic remix, _if_ the audio output accepts the audio format. +# of the currently played file. See caveats mentioned in the manpage. +# (The default is "auto-safe", see manpage.) +#audio-channels=auto + +################## +# other settings # +################## + +# Pretend to be a web browser. Might fix playback with some streaming sites, +# but also will break with shoutcast streams. +#user-agent="Mozilla/5.0" + +# cache settings +# +# Use a large seekable RAM cache even for local input. +#cache=yes +# +# Use extra large RAM cache (needs cache=yes to make it useful). +#demuxer-max-bytes=500M +#demuxer-max-back-bytes=100M +# +# Disable the behavior that the player will pause if the cache goes below a +# certain fill size. +#cache-pause=no +# +# Store cache payload on the hard disk instead of in RAM. (This may negatively +# impact performance unless used for slow input such as network.) +#cache-dir=~/.cache/ +#cache-on-disk=yes + +# Display English subtitles if available. +#slang=en + +# Play Finnish audio if available, fall back to English otherwise. +#alang=fi,en + +# Change subtitle encoding. For Arabic subtitles use 'cp1256'. +# If the file seems to be valid UTF-8, prefer UTF-8. +# (You can add '+' in front of the codepage to force it.) +#sub-codepage=cp1256 + +# You can also include other configuration files. +#include=/path/to/the/file/you/want/to/include + +############ +# Profiles # +############ + +# The options declared as part of profiles override global default settings, +# but only take effect when the profile is active. + +# The following profile can be enabled on the command line with: --profile=eye-cancer + +#[eye-cancer] +#sharpen=5 diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim @@ -0,0 +1,94 @@ +set nocompatible " be iMproved, required + +call plug#begin('~/.local/share/nvim/plugs') +" let Vundle manage Vundle, required +Plug 'VundleVim/Vundle.vim' +Plug 'wikitopian/hardmode' +Plug 'vim-syntastic/syntastic' +Plug 'fatih/vim-go' +Plug 'koalaman/shellcheck' +" themes +Plug 'arcticicestudio/nord-vim' +" All of your Plugins must be added before the following line +call plug#end() " required + +"no arrow keys +no <up> <Nop> +no <down> <Nop> +no <left> <Nop> +no <right> <Nop> + +ino <up> <Nop> +ino <down> <Nop> +ino <left> <Nop> +ino <right> <Nop> + +vno <up> <Nop> +vno <down> <Nop> +vno <left> <Nop> +vno <right> <Nop> + +" No shift to enter command mode +nnoremap ; : + +" Interface Options +set number +" set relativenumber +set noerrorbells +set cursorline +set ruler +set title +set linebreak +set showmatch " highlight matching {}[]() etc. +colorscheme nord +" Change color to red in over length +highlight OverLength ctermbg=red ctermfg=white guibg=#592929 +match OverLength /\%81v.*/ +" More Colors for Golang +let g:go_highlight_types = 1 +let g:go_highlight_fields = 1 +let g:go_highlight_functions = 1 +let g:go_highlight_function_calls = 1 + +" Search +set hlsearch +set ignorecase +set smartcase +set incsearch " search while typing + +" Tab-competion for file-related tasks +set path+=** + +" Display all matching file on tab complete +set wildmenu + +" File-type specific indenting +set autoindent + +" Setting Tabs +set tabstop=2 " How many columns a tab counts for +set shiftwidth=2 " Display of vim tab commands such as `>` and `<` +set softtabstop=0 +set noexpandtab " Don't change tabs to spaces + +" Status Line +set laststatus=2 +set statusline= +set statusline+=%f " file +set statusline+=\ -\ " " separator +set statusline+=FileType: " label +set statusline+=%y " File type of file +set statusline+=\ -\ " " separator +set statusline+=col:\ %c " Column numbers + +" Leader Keybindings +let mapleader="," +noremap <leader>q :wq<cr> +"" Best used with Programmer Dvorak keyboard layout +inoremap <leader>. <Esc> +vnoremap <leader>. <Esc> + +" Miscellaneous Options +set history=1000 +syntax on + diff --git a/.config/redshift.conf b/.config/redshift.conf @@ -0,0 +1,29 @@ +[redshift] + +; set day and night temps +temp-day=4000 +temp-night=2500 + +; Enable/Disable a smooth transition between day and night +; 0 will cause a direct change from day to night screen temperature. +; 1 will gradually increase or decrease the screen temperature +transition=0 + +;set screen brightness +;brightness-day=1.00 +brightness-night=1.00 + +; Set the adjustment-method: 'randr', 'vidmode' +; type 'redshift -m list' to see all possible values +; 'randr' is the preferred method, 'vidmode' is an older API +; but works in some cases when 'randr' does not. +; The adjustment method settings are in a different section. +adjustment-method=randr + +; Configuration of the location-provider: +; type 'redshift -l PROVIDER:help' to see the settings +; e.g. 'redshift -l manual:help' +location-provider=manual +[manual] +lat=40.56 +lon=-79.96 diff --git a/.xinitrc b/.xinitrc @@ -0,0 +1,20 @@ +#!/bin/sh +# .xinitrc + +# Run xrandr based on current inputs: +hdmi2=$(xrandr | awk '/HDMI-2/ { print $2 }') +if [ "$hdmi2" == "connected" ]; then + # run xrander script for docked screen + xrandr --output LVDS-1 --off --output VGA-1 --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI-2 --primary --mode 1920x1080 --pos 1920x0 --rotate normal; +else + # Run xrander for built in screen only + xrandr --output LVDS-1 --mode 1366x768 --pos 0x0 --rotate normal; +fi + +# Set desktop background image: +feh --bg-fill /home/jaron/pictures/backgrounds/retro_astro.jpg + +# Set keyboard layout variant to Programmer Dvorak: +setxkbmap -variant dvp; + +exec dwm; diff --git a/.zshrc b/.zshrc @@ -0,0 +1,74 @@ +# Load version control information +autoload -Uz vcs_info +precmd() { vcs_info } + +#Format the vcs_info_msg_0_ variable +zstyle ':vcs_info:git:*' formats '%b' + +setopt PROMPT_SUBST + +# '%F{color} sets the color of the text +# Colors black, red, green, yellow, blue, magenta, cyan and white. +# '%F' or '%f' resets to the default text color. +# Access the 256 color pallet with %F{0} through %F{255}. + +# left side of prompt +PROMPT=$'\n'"%F{green}%n%F{256}:%~:%# " +# right side of prompt +RPROMPT=\$vcs_info_msg_0_ +#setopt prompt_subst +#PROMPT=$(gitInShell.sh) + +# History in cache directory: +HISTSIZE=10000 +SAVEHIST=10000 +HISTFILE=~/.cache/zsh/history + +# Basic auto/tab complete: +autoload -U compinit +zstyle ':completion:*' menu select +zmodload zsh/complist +compinit +_comp_options+=(globdots) # Include hidden files. +# Set background image: +#feh --bg-center /home/jaron/Pictures/backgrounds/kame_goku_kuririn.png + +export XDG_CONFIG_HOME="$HOME/.config" +export XDG_CACHE_HOME="$HOME/.cache" +export XDG_DATA_HOME="$HOME/.local/share" + +export GOPATH="$XDG_DATA_HOME/go" + +export PATH=$HOME/bin:/home/jaron/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/home/jaron/go/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl + +export SSH_KEY_PATH="~/.ssh/rsa_id" +export EDITOR='vim' + +alias monerod=monerod --data-dir "$XDG_DATA_HOME"/bitmonero +alias wget=wget --hsts-file="$XDG_CACHE_HOME/wget-hsts" +alias ls="ls -lh --color=auto" +alias newsboat="newsboat --url-file=$XDG_CONFIG_HOME/newsboat/urls --cache-file=$XDG_DATA_HOME/newsboat/cache.db --config-file=$XDG_CONFIG_HOME/newsboat/config" +alias vu="pulsemixer --change-volume +5" +alias vd="pulsemixer --change-volume -5" +alias vv="pulsemixer --get-volume" +alias lc="lc -lsQ" +alias default-web-browser="w3m" + +# Set VIM Keybindings: +set -o vi + +# Exports for programs with partial XDG Home support: +export WGETRC="$XDG_CONFIG_HOME/wgetrc" +export LESSHISTFILE=- # Disables history for less +export PASSWORD_STORE_DIR="$XDG_DATA_HOME"/pass +export CARGO_HOME="$XDG_DATA_HOME"/cargo +export RUSTUP_HOME="$XDG_DATA_HOME"/rustup +export ATOM_HOME="$XDG_DATA_HOME"/atom +export AWS_SHARED_CREDENTIALS_FILE="$XDG_CONFIG_HOME"/aws/credentials +export AWS_CONFIG_FILE="$XDG_CONFIG_HOME"/aws/config +export _JAVA_OPTIONS=-Djava.util.prefs.userRoot="$XDG_CONFIG_HOME"/java +export ICEAUTHORITY="$XDG_CACHE_HOME"/ICEauthority +export HISTFILE="$XDG_DATA_HOME"/bash/history + +# Load zsh-syntax-highlighting; should be last. +source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null