Update 2023-10-30 20:13 OpenBSD/amd64-x13
This commit is contained in:
parent
35a131fe79
commit
09f9fd0045
22
.bin/_config
22
.bin/_config
@ -4,10 +4,13 @@
|
|||||||
#
|
#
|
||||||
# FONTS
|
# FONTS
|
||||||
#
|
#
|
||||||
DFONT="-misc-spleen-medium-r-normal--16-160-72-72-c-80-iso10646-1"
|
DFONT="FuraCodeNerdFont-13"
|
||||||
SFONT="-uw-ttyp0-medium-r-normal--16-150-75-75-c-80-iso10646-1"
|
SFONT="FuraCodeNerdFont-12"
|
||||||
BFONT="-misc-spleen-medium-r-normal--24-240-72-72-c-120-iso10646-1"
|
BFONT="FuraCodeNerdFont-18"
|
||||||
HFONT="-misc-spleen-medium-r-normal--32-320-72-72-c-160-iso10646-1"
|
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
|
# TERMINALS
|
||||||
@ -16,6 +19,10 @@ STERM="st -f ${SFONT}"
|
|||||||
BTERM="st -f ${BFONT}"
|
BTERM="st -f ${BFONT}"
|
||||||
HTERM="st -f ${HFONT}"
|
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
|
# DMENU
|
||||||
#
|
#
|
||||||
@ -44,13 +51,6 @@ DEVDIR="$(cat "${DEVDIRPATH}/dir")"
|
|||||||
#
|
#
|
||||||
PIMDIR="${HOME}/Documents"
|
PIMDIR="${HOME}/Documents"
|
||||||
|
|
||||||
#
|
|
||||||
# REMOTE
|
|
||||||
#
|
|
||||||
USER="sdk"
|
|
||||||
DOMAIN="codevoid.de"
|
|
||||||
RPATH="/home/www/htdocs/gopher"
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# CONNECT TO GPG-AGENT
|
# CONNECT TO GPG-AGENT
|
||||||
#
|
#
|
||||||
|
@ -127,10 +127,10 @@ choose_browser() {
|
|||||||
*) DEFAULT="$BROWSER (default)"; ;;
|
*) DEFAULT="$BROWSER (default)"; ;;
|
||||||
esac
|
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
|
case $(echo "${S}" | ${DMENU_CMD} -p "Browser") in
|
||||||
[Nn]etsurf*) BROWSER=netsurf-gtk3 ;;
|
[Nn]etsurf*) BROWSER=netsurf-gtk3 ;;
|
||||||
[Vv]imb*) BROWSER=vimb ;;
|
[Vv]imb*) BROWSER=vimb; ;;
|
||||||
[Qq]uteb*r*) BROWSER=qutebrowser ;;
|
[Qq]uteb*r*) BROWSER=qutebrowser ;;
|
||||||
[Ss]urf*) BROWSER=surf ;;
|
[Ss]urf*) BROWSER=surf ;;
|
||||||
[Oo]tter*r*) BROWSER=otter-browser ;;
|
[Oo]tter*r*) BROWSER=otter-browser ;;
|
||||||
@ -140,6 +140,7 @@ choose_browser() {
|
|||||||
[Tt]or-B*r*) BROWSER=tor-browser ;;
|
[Tt]or-B*r*) BROWSER=tor-browser ;;
|
||||||
[Zz]athura*) BROWSER=zathura ;;
|
[Zz]athura*) BROWSER=zathura ;;
|
||||||
[Ll]agrange*) BROWSER=lagrange ;;
|
[Ll]agrange*) BROWSER=lagrange ;;
|
||||||
|
[Mm]pv*) BROWSER=mpv ;;
|
||||||
*) exit 0;;
|
*) exit 0;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
41
.bin/dopaste
41
.bin/dopaste
@ -1,8 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
. $HOME/.bin/_config
|
. $HOME/.bin/_config
|
||||||
|
|
||||||
PSSH="${USER}@${DOMAIN}"
|
RPATH=/home/sdk/make-web/src/paste
|
||||||
LOC="p"
|
SSH="sdk@home.codevoid.de"
|
||||||
|
WEB="https://home.codevoid.de/paste"
|
||||||
|
|
||||||
f="$1"
|
f="$1"
|
||||||
if [ "$1" = "-h" ]; then
|
if [ "$1" = "-h" ]; then
|
||||||
@ -14,42 +15,18 @@ if [ "$1" = "-h" ]; then
|
|||||||
fi
|
fi
|
||||||
if [ -z "$1" ]; then
|
if [ -z "$1" ]; then
|
||||||
f="$(date +"%Y-%m-%d_%M-%S")-$(pwgen -1 4 -A -0).txt"
|
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
|
elif [ -f "$f" ]; then
|
||||||
scp "$f" ${PSSH}:"${RPATH}/${LOC}/${f##*/}"
|
scp "$f" ${SSH}:"${RPATH}/${f##*/}"
|
||||||
else
|
else
|
||||||
ssh ${PSSH} "printf \"%s\n\" \"$(cat)\" > ${RPATH}/${LOC}/${f##*/}"
|
ssh ${SSH} "printf \"%s\n\" \"$(cat)\" > ${RPATH}/${f##*/}"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
SELECTOR="9"
|
ssh sdk@home.codevoid.de "cd ~/make-web && make install"
|
||||||
# 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
|
|
||||||
|
|
||||||
printf "https://${DOMAIN}/${SELECTOR}/${LOC}/${f##*/}\n"
|
printf "${WEB}/${f##*/}\n"
|
||||||
printf "https://${DOMAIN}/${SELECTOR}/${LOC}/${f##*/}" | xclip
|
printf "${WEB}/${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"
|
|
||||||
|
|
||||||
[ -z $DISPLAY ] || notify-send "$(xclip -o)"
|
[ -z $DISPLAY ] || notify-send "$(xclip -o)"
|
||||||
|
@ -26,7 +26,7 @@ then
|
|||||||
*.webm) mpv "$1"; ;;
|
*.webm) mpv "$1"; ;;
|
||||||
*) sacc "$1"; ;;
|
*) sacc "$1"; ;;
|
||||||
esac
|
esac
|
||||||
${BROWSER:=luakit} "$1"
|
${BROWSER:=vimb} "$1"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ export LLVM_CCACHE_DIR="/var/ccache"
|
|||||||
export CMAKE_CXX_COMPILER_LAUNCHER="ccache"
|
export CMAKE_CXX_COMPILER_LAUNCHER="ccache"
|
||||||
export CMAKE_C_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 CC="/opt/ccache/bin/cc $FLAGS"
|
||||||
export CXX="/opt/ccache/bin/c++ $FLAGS"
|
export CXX="/opt/ccache/bin/c++ $FLAGS"
|
||||||
|
|
||||||
@ -35,6 +35,8 @@ mkkernel() {
|
|||||||
doas make config
|
doas make config
|
||||||
time doas -u build make -j${JOBS}
|
time doas -u build make -j${JOBS}
|
||||||
doas make install
|
doas make install
|
||||||
|
doas what /bsd
|
||||||
|
doas ln -f /bsd.booted /bsd.backup
|
||||||
}
|
}
|
||||||
|
|
||||||
mkbase() {
|
mkbase() {
|
||||||
|
@ -27,12 +27,12 @@ pngcrush -reduce "${_file_dir}/${_filename}"
|
|||||||
#
|
#
|
||||||
# UPLOAD
|
# 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
|
# BUILD WEBSITE
|
||||||
#
|
#
|
||||||
ssh home.codevoid.de "cd web && make update && make"
|
ssh home.codevoid.de "cd make-web && make install"
|
||||||
|
|
||||||
#
|
#
|
||||||
# COPY TO CLIPBOARD
|
# COPY TO CLIPBOARD
|
||||||
|
@ -60,7 +60,7 @@ local settings_chrome = require "settings_chrome"
|
|||||||
settings.window.home_page = "luakit://newtab"
|
settings.window.home_page = "luakit://newtab"
|
||||||
settings.window.scroll_step = 20
|
settings.window.scroll_step = 20
|
||||||
settings.window.zoom_step = 0.2
|
settings.window.zoom_step = 0.2
|
||||||
settings.webview.zoom_level = 125
|
settings.webview.zoom_level = 100
|
||||||
settings.window.close_with_last_tab = true
|
settings.window.close_with_last_tab = true
|
||||||
|
|
||||||
-- search engines
|
-- search engines
|
||||||
|
@ -19,8 +19,8 @@ bar_color_selected = rgb:18/24/28
|
|||||||
bar_font_color = rgb:99/99/99,red
|
bar_font_color = rgb:99/99/99,red
|
||||||
bar_font_color_selected = rgb:ff/ff/ff
|
bar_font_color_selected = rgb:ff/ff/ff
|
||||||
bar_font_color_free = rgb:99/99/99,red
|
bar_font_color_free = rgb:99/99/99,red
|
||||||
bar_font = FuraCodeNerdFont-11
|
bar_font = FuraCodeNerdFont-12
|
||||||
bar_font_pua = FuraCodeNerdFont-11
|
bar_font_pua = FuraCodeNerdFont-12
|
||||||
bar_action = cbar
|
bar_action = cbar
|
||||||
bar_action_expand = 1
|
bar_action_expand = 1
|
||||||
bar_at_bottom = 0
|
bar_at_bottom = 0
|
||||||
@ -37,12 +37,12 @@ stack_mark_vertical_flip = ''
|
|||||||
stack_mark_max = ''
|
stack_mark_max = ''
|
||||||
|
|
||||||
workspace_clamp = 1
|
workspace_clamp = 1
|
||||||
cycle_visible = 1
|
warp_focus = 0
|
||||||
warp_focus = 1
|
warp_pointer = 0
|
||||||
|
cycle_visible = 0
|
||||||
focus_close_wrap = 1
|
focus_close_wrap = 1
|
||||||
focus_mode = default
|
focus_mode = default
|
||||||
verbose_layout = 1
|
verbose_layout = 1
|
||||||
warp_pointer = 1
|
|
||||||
click_to_raise = 1
|
click_to_raise = 1
|
||||||
|
|
||||||
# Custom Quirks
|
# Custom Quirks
|
||||||
|
@ -7,8 +7,8 @@ bind[cycle_layout] = MOD+l
|
|||||||
bind[flip_layout] = MOD+Shift+l
|
bind[flip_layout] = MOD+Shift+l
|
||||||
bind[float_toggle] = MOD+space
|
bind[float_toggle] = MOD+space
|
||||||
|
|
||||||
#bind[free_toggle] = MOD+Shift+BackSpace
|
bind[free_toggle] = MOD+Shift+space
|
||||||
bind[focus_free] = MOD+Shift+BackSpace
|
#bind[focus_free] = MOD+Shift+BackSpace
|
||||||
|
|
||||||
# FOCUS
|
# FOCUS
|
||||||
bind[focus_main] = MOD+m
|
bind[focus_main] = MOD+m
|
||||||
@ -29,7 +29,7 @@ bind[master_grow] = MOD+Right
|
|||||||
bind[master_shrink] = MOD+Left
|
bind[master_shrink] = MOD+Left
|
||||||
bind[stack_dec] = MOD+Shift+comma
|
bind[stack_dec] = MOD+Shift+comma
|
||||||
bind[stack_inc] = MOD+Shift+period
|
bind[stack_inc] = MOD+Shift+period
|
||||||
bind[stack_reset] = MOD+Shift+space
|
#bind[stack_reset] = MOD+Shift+space
|
||||||
bind[maximize_toggle] = MOD+f
|
bind[maximize_toggle] = MOD+f
|
||||||
|
|
||||||
# WS NAVIGATION
|
# WS NAVIGATION
|
||||||
@ -48,15 +48,8 @@ bind[ws_prev_all] = MOD+Page_Up
|
|||||||
bind[ws_prior] = MOD+Tab
|
bind[ws_prior] = MOD+Tab
|
||||||
|
|
||||||
# MOVE WINDOW TO OTHER WS
|
# MOVE WINDOW TO OTHER WS
|
||||||
bind[mvrg_1] = MOD+Shift+KP_End
|
bind[rg_next] = MOD+dead_circumflex
|
||||||
bind[mvrg_2] = MOD+Shift+KP_Down
|
bind[rg_prev] = MOD+Shift+dead_circumflex
|
||||||
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[mvws_1] = MOD+Shift+1
|
bind[mvws_1] = MOD+Shift+1
|
||||||
bind[mvws_2] = MOD+Shift+2
|
bind[mvws_2] = MOD+Shift+2
|
||||||
bind[mvws_3] = MOD+Shift+3
|
bind[mvws_3] = MOD+Shift+3
|
||||||
|
14
.kshrc
14
.kshrc
@ -36,7 +36,7 @@ export LANG LC_ALL LC_MESSAGES LC_NUMERIC LC_TIME
|
|||||||
### SOFTWARE PREFERENCES
|
### SOFTWARE PREFERENCES
|
||||||
EDITOR="vim"
|
EDITOR="vim"
|
||||||
VISUAL="vim"
|
VISUAL="vim"
|
||||||
BROWSER="vimb"
|
BROWSER=vimb
|
||||||
PAGER="less"
|
PAGER="less"
|
||||||
export EDITOR VISUAL BROWSER PAGER
|
export EDITOR VISUAL BROWSER PAGER
|
||||||
|
|
||||||
@ -110,6 +110,7 @@ export MAKE_JOBS FETCH_PACKAGES
|
|||||||
########################################################################
|
########################################################################
|
||||||
|
|
||||||
PS1="\h|\${?}\w\\$ "
|
PS1="\h|\${?}\w\\$ "
|
||||||
|
#PS1="[\h](\${?})(\$PWD)\\$ "
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
# SHELL SETTINGS
|
# SHELL SETTINGS
|
||||||
@ -128,6 +129,7 @@ set bell-style none
|
|||||||
alias kshrc="vim ~/.kshrc"
|
alias kshrc="vim ~/.kshrc"
|
||||||
alias muttrc="vim ~/.mutt/rc-common"
|
alias muttrc="vim ~/.mutt/rc-common"
|
||||||
alias vimrc="vim ~/.vim/vimrc"
|
alias vimrc="vim ~/.vim/vimrc"
|
||||||
|
alias vimbrc="vim ~/.config/vimb/config"
|
||||||
alias exrc="vim ~/.exrc"
|
alias exrc="vim ~/.exrc"
|
||||||
alias web-update='ssh home.codevoid.de "cd web && make update && make"'
|
alias web-update='ssh home.codevoid.de "cd web && make update && make"'
|
||||||
alias web-new='ssh home.codevoid.de "cd web && make new"'
|
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 refake="rm -f pkg/*.orig; make clean=fake && make fake"
|
||||||
alias reinstall="remake && make reinstall"
|
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
|
# remind
|
||||||
alias rem="clear; remind -c+cu4 -wt ~/.reminders"
|
alias rem="clear; remind -c+cu4 -wt ~/.reminders"
|
||||||
alias remy="clear; remind -cu12 -wt ~/.reminders | less -r"
|
alias remy="clear; remind -cu12 -wt ~/.reminders | less -r"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
let g:netrw_dirhistmax =10
|
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_9='/home/dpb/usr/ports/textproc/ruby-asciidoctor-diagram-plantuml'
|
||||||
let g:netrw_dirhist_8='/home/sdk/.config/autorandr'
|
let g:netrw_dirhist_8='/home/sdk/.config/autorandr'
|
||||||
let g:netrw_dirhist_7='/home/dpb/usr/ports/textproc/urlscan'
|
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_3='/home/sdk/webc'
|
||||||
let g:netrw_dirhist_2='/home/sdk/.cache/mutt'
|
let g:netrw_dirhist_2='/home/sdk/.cache/mutt'
|
||||||
let g:netrw_dirhist_1='/home/dpb/usr/ports/games/devilutionx'
|
let g:netrw_dirhist_1='/home/dpb/usr/ports/games/devilutionx'
|
||||||
let g:netrw_dirhist_0='/usr/local/share/doc/crispy-strife'
|
|
||||||
|
@ -283,7 +283,7 @@ endfunction
|
|||||||
|
|
||||||
augroup mystuff
|
augroup mystuff
|
||||||
au!
|
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 *.h,*.c set filetype=c.doxygen
|
||||||
au BufRead,BufNewFile Makefile,/usr/src/*.c,/usr/src/*.h,*.gmk setl sw=8 sts=8 noet
|
au BufRead,BufNewFile Makefile,/usr/src/*.c,/usr/src/*.h,*.gmk setl sw=8 sts=8 noet
|
||||||
au BufWritePost vimrc so ~/.vim/vimrc
|
au BufWritePost vimrc so ~/.vim/vimrc
|
||||||
|
Loading…
Reference in New Issue
Block a user