Update 2023-10-24 16:14 OpenBSD/amd64-x13

This commit is contained in:
c0dev0id 2023-10-24 16:14:42 +02:00
parent c9f982ed72
commit 5149974cae
5 changed files with 41 additions and 24 deletions

17
.bin/c
View File

@ -1,5 +1,17 @@
#!/bin/sh
if [ -f ~/.c.query ]
then
echo -n "Open $(< ~/.c.query) again (Y/n)? "
read
case $REPLY in
[Nn]) rm -f ~/.c.query; ;;
esac
fi
[ -f ~/.c.query ] \
&& EXTRA="--query $(<~/.c.query)"
[ ! -z "$@" ] \
&& EXTRA="--query $@"
@ -26,4 +38,7 @@ export FZF_DEFAULT_COMMAND
F=$(fzf -1 -e +s $EXTRA --preview='cat {}')
[ -z "$F" ] \
|| vim "$F";
|| vim "$F" && echo "$F" > ~/.c.query;
[ -z "$F" ] \
&& rm -f ~/.c.query

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/ksh
# dexec_browser
# A multi browser launcher
@ -10,7 +10,6 @@
# 3. choose which browser to use
# (can suggest a matching default)
. ${HOME}/.bin/_config
HISTFILE="${HOME}/.browser_history"
@ -125,22 +124,22 @@ choose_browser() {
gopher://*) DEFAULT="Lagrange (default)"; ;;
gemini://*) DEFAULT="Lagrange (default)"; ;;
*.pdf|*.cb|*.ps) DEFAULT="Zathura (default)"; ;;
*) DEFAULT="Vimb (default)"; ;;
*) DEFAULT="$BROWSER (default)"; ;;
esac
local S="${DEFAULT}\nLuakit\nFirefox\nChrome\nQutebrowser\nNetsurf\nTor-Browser"
local S="${DEFAULT}\nLuakit\nVimb\nFirefox\nChrome\nQutebrowser\nNetsurf\nTor-Browser"
case $(echo "${S}" | ${DMENU_CMD} -p "Browser") in
Netsurf*) BROWSER=netsurf-gtk3 ;;
Vimb*) BROWSER=vimb ;;
Quteb*r*) BROWSER=qutebrowser ;;
Surf*) BROWSER=surf ;;
Otter*r*) BROWSER=otter-browser ;;
Luakit*) BROWSER="luakit -Un" ;;
Chrome*) BROWSER=chrome ;;
Firefox*) BROWSER=firefox ;;
Tor-B*r*) BROWSER=tor-browser ;;
Zathura*) BROWSER=zathura ;;
Lagrange*) BROWSER=lagrange ;;
[Nn]etsurf*) BROWSER=netsurf-gtk3 ;;
[Vv]imb*) BROWSER=vimb ;;
[Qq]uteb*r*) BROWSER=qutebrowser ;;
[Ss]urf*) BROWSER=surf ;;
[Oo]tter*r*) BROWSER=otter-browser ;;
[Ll]uakit*) BROWSER="luakit -Un" ;;
[Cc]hrome*) BROWSER=chrome ;;
[Ff]irefox*) BROWSER=firefox ;;
[Tt]or-B*r*) BROWSER=tor-browser ;;
[Zz]athura*) BROWSER=zathura ;;
[Ll]agrange*) BROWSER=lagrange ;;
*) exit 0;;
esac
}

View File

@ -41,7 +41,7 @@ warp_pointer = 1
# Custom Quirks
quirk[IPMIView20-IPMIView20:IPMIView20-IPMIView20] = FLOAT + ANYWHERE
quirk[scratchpad] = FLOAT + ANYWHERE + FOCUSPREV
quirk[scratchpad] = WS[-1] + ANYWHERE + FLOAT
quirk[Nsxiv:tabbed] = NOFOCUSONMAP + FOCUSPREV
# Window Manager Keys

View File

@ -7,6 +7,9 @@ bind[cycle_layout] = MOD+l
bind[flip_layout] = MOD+Shift+l
bind[float_toggle] = MOD+space
bind[free_toggle] = MOD+Shift+space
bind[focus_free] = MOD+Shift+BackSpace
# FOCUS
bind[focus_main] = MOD+m
bind[focus_next] = MOD+Down

14
.kshrc
View File

@ -33,6 +33,13 @@ LC_NUMERIC=C
LC_TIME=en_US.UTF-8
export LANG LC_ALL LC_MESSAGES LC_NUMERIC LC_TIME
### SOFTWARE PREFERENCES
EDITOR="vim"
VISUAL="vim"
BROWSER="vimb"
PAGER="less"
export EDITOR VISUAL BROWSER PAGER
########################################################################
# STOP HERE IF NON INTERACTIVE
########################################################################
@ -54,13 +61,6 @@ HISTFILE=$HOME/.ksh-history
HISTSIZE=2000
export HISTCONTROL HISTFILE HISTSIZE
### SOFTWARE PREFERENCES
EDITOR="vim"
VISUAL="vim"
BROWSER="qutebrowser"
PAGER="less"
export EDITOR VISUAL BROWSER PAGER
### TUIR (reddit)
TUIR_BROWSER="$BROWSER"
export TUIR_BROWSER