dotfiles

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

xinitrc (761B)


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