dotfiles

Configuration for the software I use.
git clone https://git.jaderune.net/jbauer/dotfiles
Log | Files | Refs | README | LICENSE

.xsession (893B)


      1 #!/bin/sh -x
      2 
      3 cleanup() {
      4 	echo "Cleaning up..."
      5 	pkill dbus-daemon picom xbanish
      6 	rm -f ~/.Xauthority
      7 	rm -f ~/*.core
      8 	rm -rf ~/.local/share/Trash
      9 }
     10 trap cleanup INT TERM QUIT
     11 
     12 export MOZ_USE_XINPUT2=1
     13 export MOZ_ACCELERATED=1
     14 export MOZ_WEBRENDER=1
     15 export LANG=en_US.UTF-8
     16 export PATH=$HOME/.local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/games
     17 export ENV="$HOME/.config/shrc"
     18 export QT_QPA_PLATFORMTHEME="qt5ct"
     19 export QT_SCALE_FACTOR=0.75
     20 
     21 # Load Xresources
     22 xrdb < ~/.Xresources
     23 
     24 # No bell
     25 xset -b
     26 
     27 # No mouse acceleration
     28 xset m 0 0
     29 
     30 # CapsLock is compose key
     31 setxkbmap -option "compose:caps"
     32 
     33 # Launch DBUS for programs which need it
     34 eval `dbus-launch --sh-syntax`
     35 
     36 # Compositor
     37 picom -b
     38 
     39 # Hide cursor when typing
     40 xbanish -i all &
     41 
     42 # Set background
     43 hsetroot -solid grey
     44 
     45 # Launch WM and block
     46 spectrwm
     47 
     48 # Run cleanup function on exit
     49 cleanup