about summary refs log tree commit diff stats
path: root/openbsd/conf/skel
diff options
context:
space:
mode:
Diffstat (limited to 'openbsd/conf/skel')
-rw-r--r--openbsd/conf/skel/.Xdefaults6
-rw-r--r--openbsd/conf/skel/.kshrc5
-rw-r--r--openbsd/conf/skel/.tmux.conf27
-rw-r--r--openbsd/conf/skel/.xsession33
4 files changed, 71 insertions, 0 deletions
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