*nohtml*

xprofile

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