[download]

xprofile

   1 #!/bin/bash
   2 
   3 exec 2>&1
   4 r(){ pkill $1; $@ & }
   5 
   6 r sxhkd
   7 r imwheel
   8 r redshift
   9 r unclutter
  10 
  11 xset m 1 1
  12 setxkbmap -option terminate:ctrl_alt_bksp
  13 setxkbmap us,ru -option grp:caps_toggle,grp_led:caps
  14 xinput set-prop 'pointer:Logitech MX Master 2S' 'libinput Accel Speed' -0.72
  15 xfsettingsd --replace && sleep 0.1; theme
  16 
  17 {
  18     until [ "$wm" ]; do wm=$(wmname); sleep 0.1; done
  19     [[ $wm == dwm   ]] && r dwm-status
  20     [[ $wm == xfwm4 ]] && r xfce4-panel && r nemo-desktop
  21     [[ $wm == *:*   ]] && { pkill xfsettingsd; return; }
  22 
  23     r dunst
  24     r picom
  25     r polybar $wm
  26     r xfce4-power-manager
  27 
  28     r /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
  29     test -d /etc/X11/xinit/xinitrc.d && for i in $_/*; do . $i & done
  30 } &