config

Personal configuration.
git clone git://code.dwrz.net/config
Log | Files | Refs

xinitrc (689B)


      1 #!/bin/sh
      2 
      3 readonly user_resources="${HOME}/.config/X11/Xresources"
      4 readonly user_modmap="${HOME}/.config/X11/xmodmap"
      5 readonly sys_resources="/etc/X11/xinit/.Xresources"
      6 readonly sys_modmap="/etc/X11/xinit/.Xmodmap"
      7 
      8 if [ -f "$sys_resources" ]; then
      9     xrdb -merge "$sys_resources"
     10 fi
     11 
     12 if [ -f "$sys_modmap" ]; then
     13     xmodmap "$sys_modmap"
     14 fi
     15 
     16 if [ -f "$user_resources" ]; then
     17     xrdb -merge "$user_resources"
     18 fi
     19 
     20 if [ -f "$user_modmap" ]; then
     21     xmodmap "$user_modmap"
     22 fi
     23 
     24 systemctl --user import-environment DISPLAY PATH XAUTHORITY
     25 
     26 if command -v dbus-update-activation-environment >/dev/null 2>&1; then
     27     dbus-update-activation-environment DISPLAY PATH XAUTHORITY
     28 fi
     29 
     30 exec i3