dotfiles

Configuration files to dump into your home directory.
git clone git://git.swab.dev/dotfiles.git
Log | Files | Refs

commit ed1fae583f09c916fb617d0a2ae6b6a965275ea7
parent 3512156b10349fee5cd78f036235466f6cfe785b
Author: Jaron Swab <jaron@swab.dev>
Date:   Fri, 15 Oct 2021 23:17:48 -0400

nvim 5.0 updates

Diffstat:
M.config/nvim/init.vim | 3+--
M.xinitrc | 15+++++++++++----
M.zshrc | 11++++++-----
3 files changed, 18 insertions(+), 11 deletions(-)

diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim @@ -1,8 +1,7 @@ set nocompatible " be iMproved, required +" junegunn/vim-plug 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' diff --git a/.xinitrc b/.xinitrc @@ -2,10 +2,10 @@ # .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; +VGA1=$(xrandr | awk '/VGA-1/ { print $2 }') +if [ "$VGA1" = "connected" ]; then + # run xrander script for docked screen; configured with arandr + xrandr --output LVDS-1 --off --output VGA-1 --mode 1920x1080 --pos 0x420 --rotate normal --output DP-2 --primary --mode 1920x1080 --pos 1920x0 --rotate left; else # Run xrander for built in screen only xrandr --output LVDS-1 --mode 1366x768 --pos 0x0 --rotate normal; @@ -17,4 +17,11 @@ feh --bg-fill /home/jaron/pictures/backgrounds/retro_astro.jpg # Set keyboard layout variant to Programmer Dvorak: setxkbmap -variant dvp; +breto --dwm=true --battery=true > /dev/null 2>&1 & + +if [ "$DWM" -eq 1 ]; then + exit 0; # Stop here if $DWM is already set to 1 +fi + +export DWM=1; exec dwm; diff --git a/.zshrc b/.zshrc @@ -42,17 +42,18 @@ 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' +export EDITOR='nvim' -alias monerod=monerod --data-dir "$XDG_DATA_HOME"/bitmonero -alias wget=wget --hsts-file="$XDG_CACHE_HOME/wget-hsts" +alias vim="nvim" 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 lc="lc -lsQ" 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" +alias monerod=monerod --data-dir "$XDG_DATA_HOME"/bitmonero +alias wget=wget --hsts-file="$XDG_CACHE_HOME/wget-hsts" +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" # Set VIM Keybindings: set -o vi