[download]

xprofile

   1 #!/bin/sh
   2 
   3 exec 2>&1
   4 r(){ pkill $1; $@ & }
   5 
   6 theme
   7 xrdb -m ~/.Xresources
   8 setxkbmap us,ru -option grp:caps_toggle,grp_led:scroll
   9 xinput set-prop 'pointer:Logitech MX Master 2S' 'libinput Accel Speed' -0.72
  10 
  11 r dunst
  12 r sxhkd
  13 r imwheel
  14 r redshift
  15 r unclutter
  16 
  17 case "$DESKTOP_SESSION" in
  18     *wm|awesome|i3|xfwm4|openbox)
  19         r compton
  20         r xfsettingsd
  21         r xfce4-power-manager
  22         r $DESKTOP_SESSION-status -d
  23         r `grep Exec= /etc/xdg/autostart/polkit-mate* | cut -c 6-`
  24 
  25         [ $DESKTOP_SESSION = xfwm4   ] && r nemo-desktop
  26         [ $DESKTOP_SESSION = openbox ] && r nemo-desktop
  27     ;;
  28 esac
  29 
  30 hostnamectl | grep -qi \
  31 virtualization && theme