Update 2023-10-30 20:13 OpenBSD/amd64-x13

This commit is contained in:
c0dev0id 2023-10-30 20:13:00 +01:00
parent 35a131fe79
commit 09f9fd0045
14 changed files with 56 additions and 2453 deletions

View File

@ -4,10 +4,13 @@
#
# FONTS
#
DFONT="-misc-spleen-medium-r-normal--16-160-72-72-c-80-iso10646-1"
SFONT="-uw-ttyp0-medium-r-normal--16-150-75-75-c-80-iso10646-1"
BFONT="-misc-spleen-medium-r-normal--24-240-72-72-c-120-iso10646-1"
HFONT="-misc-spleen-medium-r-normal--32-320-72-72-c-160-iso10646-1"
DFONT="FuraCodeNerdFont-13"
SFONT="FuraCodeNerdFont-12"
BFONT="FuraCodeNerdFont-18"
HFONT="FuraCodeNerdFont-24"
#SFONT="-uw-ttyp0-medium-r-normal--16-150-75-75-c-80-iso10646-1"
#BFONT="-misc-spleen-medium-r-normal--24-240-72-72-c-120-iso10646-1"
#HFONT="-misc-spleen-medium-r-normal--32-320-72-72-c-160-iso10646-1"
#
# TERMINALS
@ -16,6 +19,10 @@ STERM="st -f ${SFONT}"
BTERM="st -f ${BFONT}"
HTERM="st -f ${HFONT}"
#STERM="zutty -fontpath ~/.fonts -font FuraCodeNerdFont -fontsize 12"
#BTERM="zutty -fontpath ~/.fonts -font FuraCodeNerdFont -fontsize 18"
#HTERM="zutty -fontpath ~/.fonts -font FuraCodeNerdFont -fontsize 24"
#
# DMENU
#
@ -44,13 +51,6 @@ DEVDIR="$(cat "${DEVDIRPATH}/dir")"
#
PIMDIR="${HOME}/Documents"
#
# REMOTE
#
USER="sdk"
DOMAIN="codevoid.de"
RPATH="/home/www/htdocs/gopher"
#
# CONNECT TO GPG-AGENT
#

BIN
.bin/cbar

Binary file not shown.

View File

@ -127,10 +127,10 @@ choose_browser() {
*) DEFAULT="$BROWSER (default)"; ;;
esac
local S="${DEFAULT}\nLuakit\nVimb\nFirefox\nChrome\nQutebrowser\nNetsurf\nTor-Browser"
local S="${DEFAULT}\nLuakit\nVimb\nFirefox\nChrome\nQutebrowser\nNetsurf\nTor-Browser\nMpv"
case $(echo "${S}" | ${DMENU_CMD} -p "Browser") in
[Nn]etsurf*) BROWSER=netsurf-gtk3 ;;
[Vv]imb*) BROWSER=vimb ;;
[Vv]imb*) BROWSER=vimb; ;;
[Qq]uteb*r*) BROWSER=qutebrowser ;;
[Ss]urf*) BROWSER=surf ;;
[Oo]tter*r*) BROWSER=otter-browser ;;
@ -140,6 +140,7 @@ choose_browser() {
[Tt]or-B*r*) BROWSER=tor-browser ;;
[Zz]athura*) BROWSER=zathura ;;
[Ll]agrange*) BROWSER=lagrange ;;
[Mm]pv*) BROWSER=mpv ;;
*) exit 0;;
esac
}

View File

@ -1,8 +1,9 @@
#!/bin/sh
. $HOME/.bin/_config
PSSH="${USER}@${DOMAIN}"
LOC="p"
RPATH=/home/sdk/make-web/src/paste
SSH="sdk@home.codevoid.de"
WEB="https://home.codevoid.de/paste"
f="$1"
if [ "$1" = "-h" ]; then
@ -14,42 +15,18 @@ if [ "$1" = "-h" ]; then
fi
if [ -z "$1" ]; then
f="$(date +"%Y-%m-%d_%M-%S")-$(pwgen -1 4 -A -0).txt"
ssh ${PSSH} "printf \"%s\" \"$(cat)\" > ${RPATH}/${LOC}/$f"
ssh ${SSH} "printf \"%s\" \"$(cat)\" > ${RPATH}/$f"
elif [ -f "$f" ]; then
scp "$f" ${PSSH}:"${RPATH}/${LOC}/${f##*/}"
scp "$f" ${SSH}:"${RPATH}/${f##*/}"
else
ssh ${PSSH} "printf \"%s\n\" \"$(cat)\" > ${RPATH}/${LOC}/${f##*/}"
ssh ${SSH} "printf \"%s\n\" \"$(cat)\" > ${RPATH}/${f##*/}"
fi
SELECTOR="9"
# if data comes from stdin
if [ ! -t 0 ]; then
# it's always 0
SELECTOR="0"
else
# if a parmeter is given and it's a file
if [ -f "$f" ]; then
# determine type and set selector
case "$(file --mime-type -b "$f")" in
image/*) SELECTOR="I";;
text/*) SELECTOR="0";;
message/*) SELECTOR="0";;
*/x-shellscript) SELECTOR="0";;
*/pgp-keys) SELECTOR="0";;
esac
else
# parameter given, but not a file, must be cat then...
SELECTOR=0
fi
fi
ssh sdk@home.codevoid.de "cd ~/make-web && make install"
printf "https://${DOMAIN}/${SELECTOR}/${LOC}/${f##*/}\n"
printf "https://${DOMAIN}/${SELECTOR}/${LOC}/${f##*/}" | xclip
# write paste history (for convenience and rmpaste)
printf "$(date +"%Y-%m-%d %M:%S")|$f\n" \
| ssh -q $PSSH "cat - >> $RPATH/${LOC}/.pastehistory"
printf "${WEB}/${f##*/}\n"
printf "${WEB}/${f##*/}" | xclip
[ -z $DISPLAY ] || notify-send "$(xclip -o)"

View File

@ -26,7 +26,7 @@ then
*.webm) mpv "$1"; ;;
*) sacc "$1"; ;;
esac
${BROWSER:=luakit} "$1"
${BROWSER:=vimb} "$1"
exit 0
fi

View File

@ -15,7 +15,7 @@ export LLVM_CCACHE_DIR="/var/ccache"
export CMAKE_CXX_COMPILER_LAUNCHER="ccache"
export CMAKE_C_COMPILER_LAUNCHER="ccache"
FLAGS="-fno-stack-protector -fno-ret-protector -mno-retpoline -march=native -msse2 -msse -mmmx -O2 -pipe"
FLAGS="-fno-stack-protector -fno-ret-protector -mno-retpoline -O3 -pipe -march=native -mmmx -msse -msse2 -msse3 -msse4 -m3dnow "
export CC="/opt/ccache/bin/cc $FLAGS"
export CXX="/opt/ccache/bin/c++ $FLAGS"
@ -35,6 +35,8 @@ mkkernel() {
doas make config
time doas -u build make -j${JOBS}
doas make install
doas what /bsd
doas ln -f /bsd.booted /bsd.backup
}
mkbase() {

View File

@ -27,12 +27,12 @@ pngcrush -reduce "${_file_dir}/${_filename}"
#
# UPLOAD
#
scp "${_file_dir}/${_filename}" sdk@home.codevoid.de:web/static/paste/
scp "${_file_dir}/${_filename}" sdk@home.codevoid.de:make-web/src/paste/
#
# BUILD WEBSITE
#
ssh home.codevoid.de "cd web && make update && make"
ssh home.codevoid.de "cd make-web && make install"
#
# COPY TO CLIPBOARD

View File

@ -60,7 +60,7 @@ local settings_chrome = require "settings_chrome"
settings.window.home_page = "luakit://newtab"
settings.window.scroll_step = 20
settings.window.zoom_step = 0.2
settings.webview.zoom_level = 125
settings.webview.zoom_level = 100
settings.window.close_with_last_tab = true
-- search engines

View File

@ -19,8 +19,8 @@ bar_color_selected = rgb:18/24/28
bar_font_color = rgb:99/99/99,red
bar_font_color_selected = rgb:ff/ff/ff
bar_font_color_free = rgb:99/99/99,red
bar_font = FuraCodeNerdFont-11
bar_font_pua = FuraCodeNerdFont-11
bar_font = FuraCodeNerdFont-12
bar_font_pua = FuraCodeNerdFont-12
bar_action = cbar
bar_action_expand = 1
bar_at_bottom = 0
@ -37,12 +37,12 @@ stack_mark_vertical_flip = ''
stack_mark_max = ''
workspace_clamp = 1
cycle_visible = 1
warp_focus = 1
warp_focus = 0
warp_pointer = 0
cycle_visible = 0
focus_close_wrap = 1
focus_mode = default
verbose_layout = 1
warp_pointer = 1
click_to_raise = 1
# Custom Quirks

View File

@ -7,8 +7,8 @@ bind[cycle_layout] = MOD+l
bind[flip_layout] = MOD+Shift+l
bind[float_toggle] = MOD+space
#bind[free_toggle] = MOD+Shift+BackSpace
bind[focus_free] = MOD+Shift+BackSpace
bind[free_toggle] = MOD+Shift+space
#bind[focus_free] = MOD+Shift+BackSpace
# FOCUS
bind[focus_main] = MOD+m
@ -29,7 +29,7 @@ bind[master_grow] = MOD+Right
bind[master_shrink] = MOD+Left
bind[stack_dec] = MOD+Shift+comma
bind[stack_inc] = MOD+Shift+period
bind[stack_reset] = MOD+Shift+space
#bind[stack_reset] = MOD+Shift+space
bind[maximize_toggle] = MOD+f
# WS NAVIGATION
@ -48,15 +48,8 @@ bind[ws_prev_all] = MOD+Page_Up
bind[ws_prior] = MOD+Tab
# MOVE WINDOW TO OTHER WS
bind[mvrg_1] = MOD+Shift+KP_End
bind[mvrg_2] = MOD+Shift+KP_Down
bind[mvrg_3] = MOD+Shift+KP_Next
bind[mvrg_4] = MOD+Shift+KP_Left
bind[mvrg_5] = MOD+Shift+KP_Begin
bind[mvrg_6] = MOD+Shift+KP_Right
bind[mvrg_7] = MOD+Shift+KP_Home
bind[mvrg_8] = MOD+Shift+KP_Up
bind[mvrg_9] = MOD+Shift+KP_Prior
bind[rg_next] = MOD+dead_circumflex
bind[rg_prev] = MOD+Shift+dead_circumflex
bind[mvws_1] = MOD+Shift+1
bind[mvws_2] = MOD+Shift+2
bind[mvws_3] = MOD+Shift+3

2382
.gdbinit

File diff suppressed because it is too large Load Diff

14
.kshrc
View File

@ -36,7 +36,7 @@ export LANG LC_ALL LC_MESSAGES LC_NUMERIC LC_TIME
### SOFTWARE PREFERENCES
EDITOR="vim"
VISUAL="vim"
BROWSER="vimb"
BROWSER=vimb
PAGER="less"
export EDITOR VISUAL BROWSER PAGER
@ -110,6 +110,7 @@ export MAKE_JOBS FETCH_PACKAGES
########################################################################
PS1="\h|\${?}\w\\$ "
#PS1="[\h](\${?})(\$PWD)\\$ "
########################################################################
# SHELL SETTINGS
@ -128,6 +129,7 @@ set bell-style none
alias kshrc="vim ~/.kshrc"
alias muttrc="vim ~/.mutt/rc-common"
alias vimrc="vim ~/.vim/vimrc"
alias vimbrc="vim ~/.config/vimb/config"
alias exrc="vim ~/.exrc"
alias web-update='ssh home.codevoid.de "cd web && make update && make"'
alias web-new='ssh home.codevoid.de "cd web && make new"'
@ -139,6 +141,16 @@ alias remake="make clean=all && make"
alias refake="rm -f pkg/*.orig; make clean=fake && make fake"
alias reinstall="remake && make reinstall"
make-install() {
make install \
&& doas pkg_add -aa "$(make show=FULLPKGNAME)"
}
make-reinstall() {
remake \
&& doas pkg_add -aa "$(make show=FULLPKGNAME)"
}
# remind
alias rem="clear; remind -c+cu4 -wt ~/.reminders"
alias remy="clear; remind -cu12 -wt ~/.reminders | less -r"

View File

@ -1,5 +1,6 @@
let g:netrw_dirhistmax =10
let g:netrw_dirhistcnt =9
let g:netrw_dirhistcnt =0
let g:netrw_dirhist_0='/home/dpb/usr/ports/pobj/gallery-dl-1.26.1/gallery_dl-1.26.1/gallery_dl.egg-info'
let g:netrw_dirhist_9='/home/dpb/usr/ports/textproc/ruby-asciidoctor-diagram-plantuml'
let g:netrw_dirhist_8='/home/sdk/.config/autorandr'
let g:netrw_dirhist_7='/home/dpb/usr/ports/textproc/urlscan'
@ -9,4 +10,3 @@ let g:netrw_dirhist_4='/home/sdk'
let g:netrw_dirhist_3='/home/sdk/webc'
let g:netrw_dirhist_2='/home/sdk/.cache/mutt'
let g:netrw_dirhist_1='/home/dpb/usr/ports/games/devilutionx'
let g:netrw_dirhist_0='/usr/local/share/doc/crispy-strife'

View File

@ -283,7 +283,7 @@ endfunction
augroup mystuff
au!
" au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
au BufRead,BufNewFile *.h,*.c set filetype=c.doxygen
au BufRead,BufNewFile Makefile,/usr/src/*.c,/usr/src/*.h,*.gmk setl sw=8 sts=8 noet
au BufWritePost vimrc so ~/.vim/vimrc