openbsd-dotfiles

Base configurations for my Openbsd desktop
git clone https://git.kausban.com/openbsd-dotfiles/raw/.git
Log | Files | Refs

.xsession (1149B)


      1 # use UTF-8 everywhere
      2 export LANG=en_US.UTF-8
      3 
      4 # specify location of zshenv. #alt .kshrc
      5 export ENV=$HOME/.zshenv
      6 
      7 # load Xresources file
      8 xrdb -merge $HOME/.config/X11/xresources
      9 
     10 # delay and repeat
     11 xset r rate 500 50
     12 
     13 # dpi
     14 xrandr --dpi 96
     15 
     16 # set your background color
     17 xsetroot -solid dimgray
     18 
     19 # ulimit for nextcloud
     20 #ulimit -n 32768
     21 ulimit -n 52768
     22 
     23 # xidle will lock your display after a period of inactivity
     24 xidle -delay 5 -sw -program "/usr/local/bin/slock" -timeout 180 &
     25 
     26 # disable system beep
     27 xset b off
     28 
     29 # caps and ctrl
     30 setxkbmap -option ctrl:swap_lalt_lctl
     31 setxkbmap -option caps:ctrl_modifier
     32 
     33 # enable scrolling with trackpoint and middle button
     34 xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation" 1
     35 xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation Button" 2
     36 xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation Axes" 6 7 4 5
     37 
     38 sxhkd -c ~/.config/sxhkd/sxhkdrc.openbsd &
     39 picom -b
     40 xwallpaper --zoom ~/.config/wall.png
     41 slstatus &
     42 
     43 dunst &
     44 
     45 
     46 #while true; do
     47 #    xsetroot -name "$( date +"%F %R" )"
     48 #    sleep 1m    # Update time every minute
     49 #done &
     50 
     51 #dwm
     52 exec dbus-launch --exit-with-session --sh-syntax dwm    
     53 
     54