Update 2024-01-22 14:47 OpenBSD/amd64-x13
This commit is contained in:
parent
6e3f3caab5
commit
c74afefc69
20
.bin/nnn.sh
20
.bin/nnn.sh
|
@ -24,9 +24,9 @@ fi
|
||||||
if print "$f" | egrep -qi '^http[s]{0,1}://';
|
if print "$f" | egrep -qi '^http[s]{0,1}://';
|
||||||
then
|
then
|
||||||
case "$f" in
|
case "$f" in
|
||||||
*.mkv) mpv "$f"; ;;
|
*.mkv) tmpv "$f"; ;;
|
||||||
*.mp4) mpv "$f"; ;;
|
*.mp4) tmpv "$f"; ;;
|
||||||
*.webm) mpv "$f"; ;;
|
*.webm) tmpv "$f"; ;;
|
||||||
*) sacc "$f"; ;;
|
*) sacc "$f"; ;;
|
||||||
esac
|
esac
|
||||||
${BROWSER:=vimb} "$f"
|
${BROWSER:=vimb} "$f"
|
||||||
|
@ -36,9 +36,9 @@ fi
|
||||||
if print "$f" | egrep -qi '^gopher://';
|
if print "$f" | egrep -qi '^gopher://';
|
||||||
then
|
then
|
||||||
case "$f" in
|
case "$f" in
|
||||||
*.mkv) mpv "$f"; ;;
|
*.mkv) tmpv "$f"; ;;
|
||||||
*.mp4) mpv "$f"; ;;
|
*.mp4) tmpv "$f"; ;;
|
||||||
*.webm) mpv "$f"; ;;
|
*.webm) tmpv "$f"; ;;
|
||||||
*) sacc "$f"; ;;
|
*) sacc "$f"; ;;
|
||||||
esac
|
esac
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -64,8 +64,8 @@ case "$EXT" in
|
||||||
docx) libreoffice "$f"; ;;
|
docx) libreoffice "$f"; ;;
|
||||||
xlsx) libreoffice "$f"; ;;
|
xlsx) libreoffice "$f"; ;;
|
||||||
txt) vim "$f"; ;;
|
txt) vim "$f"; ;;
|
||||||
m2ts) mpv "$f"; ;;
|
m2ts) tmpv "$f"; ;;
|
||||||
flv) mpv "$f"; ;;
|
flv) tmpv "$f"; ;;
|
||||||
mp3) aplay "$f"; ;;
|
mp3) aplay "$f"; ;;
|
||||||
aiff) mpva "$f"; ;;
|
aiff) mpva "$f"; ;;
|
||||||
sid) sidplay "$f"; ;;
|
sid) sidplay "$f"; ;;
|
||||||
|
@ -93,8 +93,8 @@ case "$(file -ib "$f")" in
|
||||||
audio/midi) timidity "$f"; ;;
|
audio/midi) timidity "$f"; ;;
|
||||||
# with wildcards
|
# with wildcards
|
||||||
audio/*) aplay "$f"; ;;
|
audio/*) aplay "$f"; ;;
|
||||||
video/*) mpv "$f"; ;;
|
video/*) tmpv "$f"; ;;
|
||||||
image/webp) mpv "$f"; ;;
|
image/webp) tmpv "$f"; ;;
|
||||||
image/*) nsxiv -N floating -g 1280x720+300+180 -ab "$f"; ;;
|
image/*) nsxiv -N floating -g 1280x720+300+180 -ab "$f"; ;;
|
||||||
# can't handle
|
# can't handle
|
||||||
application/octet-stream) print "Sorry, can't handle: $f"; ;;
|
application/octet-stream) print "Sorry, can't handle: $f"; ;;
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
# start hotkey daemon
|
# start hotkey daemon
|
||||||
pgrep -q sxhkd || sxhkd -c $HOME/.config/bspwm/sxhkdrc &
|
pgrep -q sxhkd || sxhkd -c $HOME/.config/bspwm/sxhkdrc &
|
||||||
|
pgrep -qf bspswallow || bspswallow &
|
||||||
|
|
||||||
# we're fancy now.
|
# we're fancy now.
|
||||||
# hsetroot -fill ~/Backgrounds/5JdtbnY.jpg
|
# hsetroot -fill ~/Backgrounds/5JdtbnY.jpg
|
||||||
|
@ -51,6 +52,6 @@ GAP=150
|
||||||
H=$(( ${RES%x*} - 2 * GAP ))
|
H=$(( ${RES%x*} - 2 * GAP ))
|
||||||
V=$(( ${RES#*x} - 2 * GAP ))
|
V=$(( ${RES#*x} - 2 * GAP ))
|
||||||
|
|
||||||
bspc rule -a mpv sticky=on state=floating rectangle=$GAP,$GAP,$H,$V
|
bspc rule -a mpv:floatmpv sticky=on state=floating rectangle=$GAP,$GAP,$H,$V
|
||||||
bspc rule -a Screenkey manage=off
|
bspc rule -a Screenkey manage=off
|
||||||
bspc rule -a scratchpad sticky=on state=floating rectangle=$GAP,$GAP,$H,$V
|
bspc rule -a scratchpad sticky=on state=floating rectangle=$GAP,$GAP,$H,$V
|
||||||
|
|
|
@ -58,7 +58,7 @@ alt + o
|
||||||
|
|
||||||
# quit/restart bspwm
|
# quit/restart bspwm
|
||||||
alt + shift + r
|
alt + shift + r
|
||||||
bspc wm -r; \
|
bspc wm -r
|
||||||
pkill -SIGUSR1 sxhkd
|
pkill -SIGUSR1 sxhkd
|
||||||
|
|
||||||
# close and kill
|
# close and kill
|
||||||
|
|
|
@ -10,7 +10,7 @@ export TUIR_BROWSER
|
||||||
NNN_OPTS="cErxAJBRr"
|
NNN_OPTS="cErxAJBRr"
|
||||||
NNN_OPENER="nnn.sh"
|
NNN_OPENER="nnn.sh"
|
||||||
NNN_FIFO=/tmp/nnn.fifo
|
NNN_FIFO=/tmp/nnn.fifo
|
||||||
NNN_PLUG='c:!readlink -f $nnn | xclip -f;o:-!mpv "$nnn";u:!upload "$nnn";,:!copyto "$nnn";x:!imagesort;p:!pdfarranger "$nnn" > /dev/null 2>&1 &'
|
NNN_PLUG='c:!readlink -f $nnn | xclip -f;o:-!tmpv "$nnn";u:!upload "$nnn";,:!copyto "$nnn";x:!imagesort;p:!pdfarranger "$nnn" > /dev/null 2>&1 &'
|
||||||
NNN_ARCHIVE="\\.(7z|bz2|gz|tar|tgz|zip)$"
|
NNN_ARCHIVE="\\.(7z|bz2|gz|tar|tgz|zip)$"
|
||||||
NNN_COLORS='#0a1b2c3d;1234'
|
NNN_COLORS='#0a1b2c3d;1234'
|
||||||
NNN_FCOLORS='c1e2272e006033f7c6d6abc4'
|
NNN_FCOLORS='c1e2272e006033f7c6d6abc4'
|
||||||
|
|
Loading…
Reference in New Issue