Update 2023-10-24 16:14 OpenBSD/amd64-x13
This commit is contained in:
parent
c9f982ed72
commit
5149974cae
17
.bin/c
17
.bin/c
@ -1,5 +1,17 @@
|
|||||||
#!/bin/sh
|
#!/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 "$@" ] \
|
[ ! -z "$@" ] \
|
||||||
&& EXTRA="--query $@"
|
&& EXTRA="--query $@"
|
||||||
|
|
||||||
@ -26,4 +38,7 @@ export FZF_DEFAULT_COMMAND
|
|||||||
F=$(fzf -1 -e +s $EXTRA --preview='cat {}')
|
F=$(fzf -1 -e +s $EXTRA --preview='cat {}')
|
||||||
|
|
||||||
[ -z "$F" ] \
|
[ -z "$F" ] \
|
||||||
|| vim "$F";
|
|| vim "$F" && echo "$F" > ~/.c.query;
|
||||||
|
|
||||||
|
[ -z "$F" ] \
|
||||||
|
&& rm -f ~/.c.query
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/ksh
|
||||||
|
|
||||||
# dexec_browser
|
# dexec_browser
|
||||||
# A multi browser launcher
|
# A multi browser launcher
|
||||||
@ -10,7 +10,6 @@
|
|||||||
# 3. choose which browser to use
|
# 3. choose which browser to use
|
||||||
# (can suggest a matching default)
|
# (can suggest a matching default)
|
||||||
|
|
||||||
|
|
||||||
. ${HOME}/.bin/_config
|
. ${HOME}/.bin/_config
|
||||||
|
|
||||||
HISTFILE="${HOME}/.browser_history"
|
HISTFILE="${HOME}/.browser_history"
|
||||||
@ -125,22 +124,22 @@ choose_browser() {
|
|||||||
gopher://*) DEFAULT="Lagrange (default)"; ;;
|
gopher://*) DEFAULT="Lagrange (default)"; ;;
|
||||||
gemini://*) DEFAULT="Lagrange (default)"; ;;
|
gemini://*) DEFAULT="Lagrange (default)"; ;;
|
||||||
*.pdf|*.cb|*.ps) DEFAULT="Zathura (default)"; ;;
|
*.pdf|*.cb|*.ps) DEFAULT="Zathura (default)"; ;;
|
||||||
*) DEFAULT="Vimb (default)"; ;;
|
*) DEFAULT="$BROWSER (default)"; ;;
|
||||||
esac
|
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
|
case $(echo "${S}" | ${DMENU_CMD} -p "Browser") in
|
||||||
Netsurf*) BROWSER=netsurf-gtk3 ;;
|
[Nn]etsurf*) BROWSER=netsurf-gtk3 ;;
|
||||||
Vimb*) BROWSER=vimb ;;
|
[Vv]imb*) BROWSER=vimb ;;
|
||||||
Quteb*r*) BROWSER=qutebrowser ;;
|
[Qq]uteb*r*) BROWSER=qutebrowser ;;
|
||||||
Surf*) BROWSER=surf ;;
|
[Ss]urf*) BROWSER=surf ;;
|
||||||
Otter*r*) BROWSER=otter-browser ;;
|
[Oo]tter*r*) BROWSER=otter-browser ;;
|
||||||
Luakit*) BROWSER="luakit -Un" ;;
|
[Ll]uakit*) BROWSER="luakit -Un" ;;
|
||||||
Chrome*) BROWSER=chrome ;;
|
[Cc]hrome*) BROWSER=chrome ;;
|
||||||
Firefox*) BROWSER=firefox ;;
|
[Ff]irefox*) BROWSER=firefox ;;
|
||||||
Tor-B*r*) BROWSER=tor-browser ;;
|
[Tt]or-B*r*) BROWSER=tor-browser ;;
|
||||||
Zathura*) BROWSER=zathura ;;
|
[Zz]athura*) BROWSER=zathura ;;
|
||||||
Lagrange*) BROWSER=lagrange ;;
|
[Ll]agrange*) BROWSER=lagrange ;;
|
||||||
*) exit 0;;
|
*) exit 0;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
@ -41,7 +41,7 @@ warp_pointer = 1
|
|||||||
|
|
||||||
# Custom Quirks
|
# Custom Quirks
|
||||||
quirk[IPMIView20-IPMIView20:IPMIView20-IPMIView20] = FLOAT + ANYWHERE
|
quirk[IPMIView20-IPMIView20:IPMIView20-IPMIView20] = FLOAT + ANYWHERE
|
||||||
quirk[scratchpad] = FLOAT + ANYWHERE + FOCUSPREV
|
quirk[scratchpad] = WS[-1] + ANYWHERE + FLOAT
|
||||||
quirk[Nsxiv:tabbed] = NOFOCUSONMAP + FOCUSPREV
|
quirk[Nsxiv:tabbed] = NOFOCUSONMAP + FOCUSPREV
|
||||||
|
|
||||||
# Window Manager Keys
|
# Window Manager Keys
|
||||||
|
@ -7,6 +7,9 @@ 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+space
|
||||||
|
bind[focus_free] = MOD+Shift+BackSpace
|
||||||
|
|
||||||
# FOCUS
|
# FOCUS
|
||||||
bind[focus_main] = MOD+m
|
bind[focus_main] = MOD+m
|
||||||
bind[focus_next] = MOD+Down
|
bind[focus_next] = MOD+Down
|
||||||
|
14
.kshrc
14
.kshrc
@ -33,6 +33,13 @@ LC_NUMERIC=C
|
|||||||
LC_TIME=en_US.UTF-8
|
LC_TIME=en_US.UTF-8
|
||||||
export LANG LC_ALL LC_MESSAGES LC_NUMERIC LC_TIME
|
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
|
# STOP HERE IF NON INTERACTIVE
|
||||||
########################################################################
|
########################################################################
|
||||||
@ -54,13 +61,6 @@ HISTFILE=$HOME/.ksh-history
|
|||||||
HISTSIZE=2000
|
HISTSIZE=2000
|
||||||
export HISTCONTROL HISTFILE HISTSIZE
|
export HISTCONTROL HISTFILE HISTSIZE
|
||||||
|
|
||||||
### SOFTWARE PREFERENCES
|
|
||||||
EDITOR="vim"
|
|
||||||
VISUAL="vim"
|
|
||||||
BROWSER="qutebrowser"
|
|
||||||
PAGER="less"
|
|
||||||
export EDITOR VISUAL BROWSER PAGER
|
|
||||||
|
|
||||||
### TUIR (reddit)
|
### TUIR (reddit)
|
||||||
TUIR_BROWSER="$BROWSER"
|
TUIR_BROWSER="$BROWSER"
|
||||||
export TUIR_BROWSER
|
export TUIR_BROWSER
|
||||||
|
Loading…
Reference in New Issue
Block a user