commit 15f3a3a2f5fe4fb609bf560f1cd26ac8907a24c8 from: Benjamin Stürz date: Sun Dec 17 01:21:11 2023 UTC Import dotfiles and etc commit - c1a3325d97c3e8f57834c1487459c88d794bfbc3 commit + 15f3a3a2f5fe4fb609bf560f1cd26ac8907a24c8 blob - 2ff3a0146d3ed0e7223ba56293c873fa5d9e8fc1 blob + cbfb9ef599eeff12bd160d287b1a825a53164915 --- Makefile +++ Makefile @@ -20,8 +20,9 @@ clean: rm -rf bin install: - mkdir -p ${DESTDIR}${PREFIX}/bin ${DESTDIR}${MANPREFIX}/man1 ${DESTDIR}${SCRIPTDIR} + mkdir -p ${DESTDIR}${PREFIX}/bin ${DESTDIR}${MANPREFIX}/man1 ${DESTDIR}${SCRIPTDIR} ${DESTDIR}/etc cp -f bin/* ${DESTDIR}${PREFIX}/bin/ + cp -rf etc/* ${DESTDIR}/etc/ for f in scripts/*; do \ sed 's#@PREFIX@#${PREFIX}#g; s#@SCRIPTS@#${SCRIPTDIR}#' < $$f \ > ${DESTDIR}${SCRIPTDIR}/$$(basename $$f); \ @@ -31,6 +32,9 @@ install: sed 's/VERSION/${VERSION}/g' < $$f > ${DESTDIR}${MANPREFIX}/man1/$$(basename "$$f"); \ done +install-user: + cp -rf dotfiles/{,.}* ${HOME}/ + bin/dwm: ${SRC_DWM} ${HDR_DWM} @mkdir -p bin ${CC} -o $@ ${SRC_DWM} ${CFLAGS} `pkg-config --cflags --libs fontconfig freetype2 x11 xft xinerama` blob - a13fa99cb8b0f923d1c32629e5f0907f002f7524 blob + 424ce83fa920781beb8cd499a0f309d9818bcf88 --- TODO +++ TODO @@ -1,5 +1,4 @@ # Import -- dotfiles - surf - tabbed - xbgcd blob - /dev/null blob + 11ad30f2c6e39e78fab77fb0f54c92cfce256ff0 (mode 644) --- /dev/null +++ dotfiles/.config/gtk-2.0/gtkrc-2.0 @@ -0,0 +1 @@ +gtk-key-theme-name="Default" blob - /dev/null blob + 91e1fbb7693c0e73679aec717f03c31c0ee7a006 (mode 644) --- /dev/null +++ dotfiles/.config/gtk-3.0/settings.ini @@ -0,0 +1,3 @@ +[Settings] +gtk-key-theme-name=Default +gtk-application-prefer-dark-theme=1 blob - /dev/null blob + 987cc0c1f6680811830a858a627f3d7ec199203e (mode 644) --- /dev/null +++ dotfiles/.config/zathura/zathurarc @@ -0,0 +1,7 @@ +set sandbox strict +set selection-clipboard clipboard + +map D set "first-page-column 1:1" +map set "first-page-column 1:2" +map i set "recolor" + blob - /dev/null blob + 07a2d106bbcd55b2f5d3bf41fc4af8b0ea3470d1 (mode 644) --- /dev/null +++ dotfiles/.profile @@ -0,0 +1,11 @@ +# $OpenBSD: dot.profile,v 1.8 2022/08/10 07:40:37 tb Exp $ +# +# sh/ksh initialization + +PATH=$HOME/.local/bin:$HOME/.cargo/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin +export PATH HOME TERM + +export ENV=/etc/mykshrc +export LANG=en_US.UTF-8 +export GOT_AUTHOR="Benjamin Stürz " +export QT_QPA_PLATFORMTHEME=qt5ct blob - /dev/null blob + df8503d23c3ff34a53059648be656e27561a4253 (mode 644) --- /dev/null +++ dotfiles/.xsession @@ -0,0 +1,14 @@ +. ~/.profile + +/usr/local/libexec/desktop/restore-keybinds + +xset b off + +sndioctl output.mute=1 +sndioctl output.level=1 + +bedstatus & +#xbgcd & +#xidle -delay 900 -timeout 900 -program /usr/local/bin/slock & + +exec dwm blob - /dev/null blob + 9663516e6f15b0a44453965f33657fae68797a41 (mode 755) --- /dev/null +++ etc/apm/resume @@ -0,0 +1,5 @@ +#!/bin/sh +rcctl reload sndiod +rcctl start obsdfreqd +sndioctl output.mute=1 +sndioctl output.level=0.5 blob - /dev/null blob + 67d03894079125a74e4411c501a3efef62e40d3a (mode 755) --- /dev/null +++ etc/apm/suspend @@ -0,0 +1,2 @@ +#!/bin/sh +pkill -USR1 xidle blob - /dev/null blob + a00d3a5bb23f41dc6ba4ecb2c0741265d8afdaf8 (mode 644) --- /dev/null +++ etc/doas.conf @@ -0,0 +1 @@ +permit nopass setenv { ENV=/etc/mykshrc } :wheel blob - /dev/null blob + e048d361a561f5e1373ecc924d9dc288efc03196 (mode 644) --- /dev/null +++ etc/mykshrc @@ -0,0 +1,73 @@ +case "$(command -v vim)" in +*/vim) VIM=vim ;; +*) VIM=vi ;; +esac + +case "$(command -v colorls)" in +*/colorls) LS=colorls ;; +*) LS=ls ;; +esac + +case "$(command -v unzip)" in +*/unzip) ;; +*) alias unzip='bsdtar -xf' ;; +esac + +export EDITOR=$VIM +export FCEDIT=$EDITOR +export PAGER=less +export LANG=de_DE.UTF-8 +export LC_CTYPE=en_US.UTF-8 +export CLICOLOR=1 +export CVSROOT=anoncvs@ftp.hostserver.de:/cvs +HISTFILE=$HOME/.ksh_history +HISTSIZE=20000 + +set -o emacs + +alias t='mkdir -p /tmp/test && cd /tmp/test' +alias ls="$LS -Fh" +alias ll="$LS -Fhl" +alias la="$LS -AFh" +alias lla="$LS -AFhl" +alias dotconfig="git --git-dir=$HOME/.dotfiles --work-tree=$HOME" +alias imgsz="identify -ping -format '%wx%h\\n'" + +if [ "$(id -u)" = 0 ]; then + PS1='\[\033[31m\]\h\[\033[0m\]:\[\033[34m\]\w\[\033[31m\]\$\[\033[0m\] ' +else + PS1='\[\033[32m\]\u@\h\[\033[0m\]:\[\033[34m\]\w\[\033[31m\]\$\[\033[0m\] ' +fi + +# Completions +if [ -d /var/db/pkg ]; then + PKG_LIST=$(command ls -1 /var/db/pkg) + set -A complete_pkg_delete -- ${PKG_LIST} + set -A complete_pkg_info -- ${PKG_LIST} +fi + +#man() { +# [ ${#complete_man} = 0 ] && { +# set -A complete_man -- $(command man -k . | grep -o '^[^(]*' | tr ',' '\n' | tr -d ' ' | sort | uniq) +# } +# command man "$@" +#} + +set -A complete_rcctl_1 -- configtest check reload restart stop start status disable enable ls +set -A complete_rcctl_2 -- $(rcctl ls all) +set -A complete_vmctl_1 -- console create pause reload start status stop unpause wait +set -A complete_vmctl -- $(vmctl status | awk '!/NAME/{print $NF}') +set -A complete_git_1 -- clone init add mv restore rm bisect diff show status branch commit merge rebase reset tag fetch pull push +COMMANDS=$(command ls -1 -- $(echo "$PATH" | tr ':' '\n') | sort | uniq) +set -A complete_doas_1 -- ${COMMANDS} +set -A complete_which -- ${COMMANDS} +set -A complete_exec -- ${COMMANDS} +set -A complete_ifconfig_1 -- $(ifconfig | grep -o '^[a-z0-9]*') +set -A complete_ifconfig -- up down join nwid wpakey autoconf -inet -inet6 +set -A complete_pass_1 -- show generate ls edit git rm cp mv +set -A complete_pass -- $(cd $HOME/.password-store && find . -type f -name '*.gpg' | sed 's/^\.\///; s/\.gpg$//') + + +alias pman='man -M /usr/local/share/doc/posix/man' +alias papropos='apropos -M /usr/local/share/doc/posix/man' +alias pwhatis='whatis -M /usr/local/share/doc/posix/man' blob - /dev/null blob + 20b7ec6e9725a61661e7d28b0b8788b6be129969 (mode 644) --- /dev/null +++ etc/sysctl.conf @@ -0,0 +1,3 @@ +hw.smt=1 +net.inet.ip.forwarding=1 +net.inet6.ip6.forwarding=1 blob - /dev/null blob + 267f93b83f60571ce22a05bc5142c09d7d69e3c9 (mode 644) --- /dev/null +++ etc/wsconsctl.conf @@ -0,0 +1,4 @@ +mouse.reverse_scrolling=1 +mouse.tp.tapping=1 +mouse.tp.scaling=0.25 +mouse2.reverse_scrolling=1