dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

xinitrc (1078B)


      1 #!/bin/sh
      2 userresources=$HOME/.Xresources
      3 usermodmap=$HOME/.Xmodmap
      4 sysresources=/etc/X11/xinit/.Xresources
      5 sysmodmap=/etc/X11/xinit/.Xmodmap
      6 
      7 # merge in defaults and keymaps
      8 if [ -f $sysresources ]; then
      9     xrdb -merge $sysresources
     10 fi
     11 
     12 if [ -f $sysmodmap ]; then
     13     xmodmap $sysmodmap
     14 fi
     15 
     16 if [ -f "$userresources" ]; then
     17     xrdb -merge "$userresources"
     18 fi
     19 
     20 if [ -f "$usermodmap" ]; then
     21     xmodmap "$usermodmap"
     22 fi
     23 
     24 if [ -z "$DOTFILES" ]; then
     25   export DOTFILES="$HOME/.dotfiles"
     26   . "$DOTFILES"/shell/env
     27   . "$DOTFILES"/shell/paths
     28 fi
     29 [ -z "$TERMINAL" ] && export TERMINAL="st"
     30 export SHLVL=1
     31 export _JAVA_AWT_WM_NONREPARENTING=1 # otherwise Ghidra shows a blank screen
     32 { killall ssh-agent; eval $(ssh-agent -s); } &
     33 #command -v VBoxClient-all >/dev/null 2>&1 && VBoxClient-all &
     34 xset r rate 300 50 &
     35 dwmblocks 2>/var/log/dwm/dwmblocks.log &
     36 dunst 2>/var/log/dunst/dunst.log &
     37 unclutter-xfixes &
     38 sxhkd 2>/var/log/sxhkd/sxhkd.log &
     39 picom &
     40 setxkbmap -option ctrl:nocaps &
     41 xcape &
     42 { wal -R; xdotool key "super+shift+r"; } &
     43 exec $HOME/Documents/dotfiles/scripts/startdwm