.xinitrc 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #!/bin/sh
  2. userresources=$HOME/.Xresources
  3. usermodmap=$HOME/.Xmodmap
  4. sysresources=/etc/X11/xinit/.Xresources
  5. sysmodmap=/etc/X11/xinit/.Xmodmap
  6. # merge in defaults and keymaps
  7. if [ -f $sysresources ]; then
  8. xrdb -merge $sysresources
  9. fi
  10. if [ -f $sysmodmap ]; then
  11. xmodmap $sysmodmap
  12. fi
  13. if [ -f "$userresources" ]; then
  14. xrdb -merge "$userresources"
  15. fi
  16. if [ -f "$usermodmap" ]; then
  17. xmodmap "$usermodmap"
  18. fi
  19. # start some nice programs
  20. #if [ -d /etc/X11/xinit/xinitrc.d ] ; then
  21. # for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  22. # [ -x "$f" ] && . "$f"
  23. # done
  24. # unset f
  25. #fi
  26. #twm &
  27. #xclock -geometry 50x50-1+1 &
  28. #xterm -geometry 80x50+494+51 &
  29. #xterm -geometry 80x20+494-0 &
  30. #exec xterm -geometry 80x66+0+0 -name login
  31. ### added by sekhali
  32. xscreensaver &
  33. picom &
  34. # Keyboard language toggle
  35. setxkbmap -model pc105 -layout us,ru, -option "grp:alt_shift_toggle,terminate:ctrl_alt_bksp"
  36. #bash -c 'echo "ddcci 0x37" > /sys/bus/i2c/devices/i2c-5/new_device'
  37. exec /usr/bin/awesome >> ~/.cache/awesome/logs/stdout_`date +%d.%m.%y`.log 2>>~/.cache/awesome/logs/stderr_`date +%d.%m.%y`.log
  38. #echo "hi"
  39. #bash -c 'sleep 10 && echo "ddcci 0x37" > /sys/bus/i2c/devices/i2c-5/new_device'