*nohtml*

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 r xfsettingsd
  11 r xfce4-power-manager
  12 
  13 xset m 1 1
  14 setxkbmap -option terminate:ctrl_alt_bksp
  15 setxkbmap us,ru -option grp:caps_toggle,grp_led:caps
  16 xinput set-prop 'pointer:Logitech MX Master 2S' 'libinput Accel Speed' -0.72
  17 
  18 theme; xrdb -merge <<X
  19 Sxiv.font: Terminus-9
  20 XTerm*faceName: Terminus-12
  21 XTerm.customization:
  22 XTerm*borderWidth: 0
  23 ! XTerm*internalBorder: 2
  24 XTerm*cursorOnTime:  600
  25 XTerm*cursorOffTime: 600
  26 XTerm*saveLines: 3000
  27 XTerm*scrollKey: true
  28 XTerm*scrollTtyOutput: false
  29 XTerm*metaSendsEscape: true
  30 XTerm*alternateScroll: true
  31 XTerm*on2Clicks: regex [^ \n]+
  32 XTerm*vt100*translations: #override \
  33     <Btn4Down>: scroll-back(3, line, m)\n\
  34     <Btn5Down>: scroll-forw(3, line, m)\n\
  35     Shift Ctrl <KeyPress>C: copy-selection(CLIPBOARD)\n\
  36     Shift Ctrl <KeyPress>V: insert-selection(CLIPBOARD)
  37 X
  38 
  39 {
  40     until [ $wm ]; do
  41         wm=$(xprop -id $(xprop -root _NET_SUPPORTING_WM_CHECK |
  42         cut -d \# -f 2) _NET_WM_NAME | cut -d \" -f 2 | tr A-Z a-z)
  43         sleep 0.1
  44     done
  45 
  46     case $wm in
  47         awesome|i3|openbox);;
  48         dwm  ) r dwm-status;;
  49         xfwm4) r xfce4-panel; r xfdesktop;;
  50         *) return;;
  51     esac
  52 
  53     r theme
  54     r dunst
  55     r polybar $wm
  56     r picom --config ~/.config/picom/$wm
  57     r /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
  58 
  59     test -d /etc/X11/xinit/xinitrc.d && for i in $_/*; do . $i & done
  60 } &