dotfiles

Dotfiles for my OpenBSD environment.
git clone https://git.mtkn.jp/dotfiles
Log | Files | Refs

xinitrc (754B)


      1 #!/bin/sh
      2 
      3 . "$HOME/.profile"
      4 
      5 setxkbmap -layout jp
      6 userresources=$XDG_CONFIG_HOME/X11/Xresources
      7 usermodmap=$XDG_CONFIG_HOME/X11/Xmodmap
      8 
      9 if [ -f $userresources ]; then
     10     xrdb -merge $userresources
     11 fi
     12 
     13 if [ -f $usermodmap ]; then
     14     xmodmap $usermodmap
     15 fi
     16 
     17 export XMODIFIERS='@im=uim'
     18 export GTK_IM_MODULE="uim"
     19 export GTK3_IM_MODULE="uim"
     20 
     21 xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation" 1
     22 xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation Button" 2
     23 xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation Axes" 6 7 4 5
     24 xinput set-prop "/dev/wsmouse" "Device Accel Constant Deceleration" 0.4
     25 xsetroot -solid black
     26 
     27 xidle -program "/usr/X11R6/bin/xlock"&
     28 
     29 while :; do xsetroot -name "$(dwm_status)"; sleep 5; done &
     30 exec dwm;