dotfiles

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

commit 2b11198180010d396bbf53826682ec139a8e846c
parent cebc6e94bed77a232f31a0a66ca7b226e9897273
Author: Jaron Swab <jaron@swab.dev>
Date:   Tue, 19 Oct 2021 14:21:30 -0400

updates for OpenBSD usage

Diffstat:
D.xinitrc | 27---------------------------
A.xsession | 27+++++++++++++++++++++++++++
M.zshrc | 11++---------
3 files changed, 29 insertions(+), 36 deletions(-)

diff --git a/.xinitrc b/.xinitrc @@ -1,27 +0,0 @@ -#!/bin/sh -# .xinitrc - -# Run xrandr based on current inputs: -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; -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; - -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/.xsession b/.xsession @@ -0,0 +1,27 @@ +#!/bin/sh + +# Run xrandr based on current inputs: +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; +fi + +# Set desktop background image: +feh --bg-fill "$HOME"/pictures/backgrounds/retro_astro.jpg + +# Set keyboard layout variant to Programmer Dvorak: +setxkbmap -variant dvp; + +#$HOME/bin/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; +"$HOME"/repos/dwm/dwm +#fvwm diff --git a/.zshrc b/.zshrc @@ -39,21 +39,14 @@ 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 PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/games export SSH_KEY_PATH="~/.ssh/rsa_id" export EDITOR='nvim' alias vim="nvim" -alias ls="ls -lh --color=auto" -alias lc="lc -lsQ" -alias vu="pulsemixer --change-volume +5" -alias vd="pulsemixer --change-volume -5" -alias vv="pulsemixer --get-volume" -alias default-web-browser="w3m" -alias monerod=monerod --data-dir "$XDG_DATA_HOME"/bitmonero +alias ls="ls -lh" 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