dotfiles

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

commit 2fc6cf7716e863ff68422727683e3becc5b197a2
parent b9d2adcd34b1db09efb352d8fa9b8d13545c6542
Author: Jaron Swab <jaron@swab.dev>
Date:   Thu, 21 Oct 2021 15:48:45 -0400

moved functionality into scripts for easy shortcut execution

Diffstat:
M.xsession | 31++++++++-----------------------
1 file changed, 8 insertions(+), 23 deletions(-)

diff --git a/.xsession b/.xsession @@ -1,5 +1,7 @@ #!/bin/sh +repoDIR="$HOME"/repos + # use UTF-8 everywhere export LANG=en_US.UTF-8 @@ -9,31 +11,14 @@ xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation" 1 xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation Button" 2 xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation Axes" 6 7 4 5 -# 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; -# Display system information: -"$HOME"/repos/sstatus/main.sh & - -if [ "$DWM" -eq 1 ]; then - exit 0; # Stop here if $DWM is already set to 1 -fi +# Run xrandr based on current inputs and reset background image: +"$repoDIR"/xscripts/monitors.sh -export DWM=1; -"$HOME"/repos/dwm/dwm +# Display system information: +"$repoDIR"/xscripts/status.sh > /dev/null 2>&1 & -# The default window manager for OpenBSD. (Fallback for DWM misconfiguration) -#fvwm +# Run DWM +"$repoDIR"/dwm/dwm