diff options
Diffstat (limited to 'openbsd/conf')
-rwxr-xr-x | openbsd/conf/X11/xenodm/Xsetup_0 | 18 | ||||
-rw-r--r-- | openbsd/conf/skel/.Xdefaults | 6 | ||||
-rw-r--r-- | openbsd/conf/skel/.kshrc | 5 | ||||
-rw-r--r-- | openbsd/conf/skel/.tmux.conf | 27 | ||||
-rw-r--r-- | openbsd/conf/skel/.xsession | 33 |
5 files changed, 89 insertions, 0 deletions
diff --git a/openbsd/conf/X11/xenodm/Xsetup_0 b/openbsd/conf/X11/xenodm/Xsetup_0 new file mode 100755 index 0000000..1ee847c --- /dev/null +++ b/openbsd/conf/X11/xenodm/Xsetup_0 @@ -0,0 +1,18 @@ +#!/bin/sh +# $OpenBSD: Xsetup_0,v 1.8 2020/07/04 13:32:50 matthieu Exp $ + +#xrandr --output default --mode "800x600" + +xsetroot -fg \#6f6f6f -bg \#bfbfbf -bitmap /usr/X11R6/include/X11/bitmaps/root_weave + +xconsole -geometry 480x130-0-0 -daemon -notify -verbose -fn fixed -exitOnFail + +# install package openbsd-backgrounds +# then uncomment: +# +# if test -x /usr/local/bin/openbsd-wallpaper +# then +# /usr/local/bin/openbsd-wallpaper +# fi + +# sxpm OpenBSD.xpm & diff --git a/openbsd/conf/skel/.Xdefaults b/openbsd/conf/skel/.Xdefaults new file mode 100644 index 0000000..8594a7c --- /dev/null +++ b/openbsd/conf/skel/.Xdefaults @@ -0,0 +1,6 @@ +! $OpenBSD: dot.Xdefaults,v 1.3 2014/07/10 10:22:59 jasper Exp $ +XTerm*loginShell:true +XTerm*vt100.faceName: terminus:pixelsize=14 +XTerm*vt100.scrollBar: false +*.foreground: #bbbbbb +*.background: #222222 diff --git a/openbsd/conf/skel/.kshrc b/openbsd/conf/skel/.kshrc new file mode 100644 index 0000000..9c83cd7 --- /dev/null +++ b/openbsd/conf/skel/.kshrc @@ -0,0 +1,5 @@ +# Git log +alias glog='git log --stat --decorate'; export glog +alias gloga='git log --graph --abbrev-commit --decorate --date=relative --all'; export gloga + + diff --git a/openbsd/conf/skel/.tmux.conf b/openbsd/conf/skel/.tmux.conf new file mode 100644 index 0000000..ee127e8 --- /dev/null +++ b/openbsd/conf/skel/.tmux.conf @@ -0,0 +1,27 @@ +set -g default-terminal "screen-256color" + +set-window-option -g mode-keys vi +bind-key -T copy-mode-vi 'v' send-keys -X begin-selection +bind-key -T copy-mode-vi 'y' send-keys -X copy-selection-and-cancel + + +# Vim style +# copy tmux's selection buffer into the primary X selection with PREFIX+CTRL+Y +bind-key u run "tmux save-buffer - | xsel -ib" +# copy primary X selection into tmux's selection buffer with PREFIX+CTRL+P +bind-key e run "xsel -ob | tmux load-buffer -" + +set-option -g set-titles on +set-option -g set-titles-string '#S> #I.#P #W' + +set -g visual-activity on +set -g monitor-activity on +set -g visual-bell on +set -g bell-action any + +## Join windows: <prefix> s, <prefix> j +bind-key j command-prompt -p "join pane from:" "join-pane -s '%%'" +bind-key s command-prompt -p "send pane to:" "join-pane -t '%%'" + +# Torn on mouse +set -g mouse on diff --git a/openbsd/conf/skel/.xsession b/openbsd/conf/skel/.xsession new file mode 100644 index 0000000..43fb48b --- /dev/null +++ b/openbsd/conf/skel/.xsession @@ -0,0 +1,33 @@ +# use UTF-8 everywhere +export LANG=en_US.UTF-8 + +# specify location of kshrc +export ENV=$HOME/.kshrc + +# load Xresources file +xrdb -merge $HOME/.Xresources + +# set your background color +xsetroot -solid dimgray + +# xidle will lock your display after a period of inactivity +xidle & + +# sadly, xclock has a bug where the font selection is ignored when UTF-8 +# is enabled, so we unset LANG here. +#LANG= xclock -strftime "%a %e %b %Y %H:%M" & + +# disable system beep +xset b off + +# if you have a ThinkPad, the following lines enable TrackPoint +# scrolling by dragging with the middle button. +xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation" 1 +xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation Button" 2 +xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation Axes" 6 7 4 5 + +# use caps lock as ctrl key +setxkbmap -option ctrl:nocaps + +# start spectrwm! +exec spectrwm |