Update 2024-01-22 14:47 OpenBSD/amd64-x13

This commit is contained in:
c0dev0id 2024-01-22 14:47:42 +01:00
parent 6e3f3caab5
commit c74afefc69
4 changed files with 16 additions and 15 deletions

View File

@ -24,9 +24,9 @@ fi
if print "$f" | egrep -qi '^http[s]{0,1}://';
then
case "$f" in
*.mkv) mpv "$f"; ;;
*.mp4) mpv "$f"; ;;
*.webm) mpv "$f"; ;;
*.mkv) tmpv "$f"; ;;
*.mp4) tmpv "$f"; ;;
*.webm) tmpv "$f"; ;;
*) sacc "$f"; ;;
esac
${BROWSER:=vimb} "$f"
@ -36,9 +36,9 @@ fi
if print "$f" | egrep -qi '^gopher://';
then
case "$f" in
*.mkv) mpv "$f"; ;;
*.mp4) mpv "$f"; ;;
*.webm) mpv "$f"; ;;
*.mkv) tmpv "$f"; ;;
*.mp4) tmpv "$f"; ;;
*.webm) tmpv "$f"; ;;
*) sacc "$f"; ;;
esac
exit 0
@ -64,8 +64,8 @@ case "$EXT" in
docx) libreoffice "$f"; ;;
xlsx) libreoffice "$f"; ;;
txt) vim "$f"; ;;
m2ts) mpv "$f"; ;;
flv) mpv "$f"; ;;
m2ts) tmpv "$f"; ;;
flv) tmpv "$f"; ;;
mp3) aplay "$f"; ;;
aiff) mpva "$f"; ;;
sid) sidplay "$f"; ;;
@ -93,8 +93,8 @@ case "$(file -ib "$f")" in
audio/midi) timidity "$f"; ;;
# with wildcards
audio/*) aplay "$f"; ;;
video/*) mpv "$f"; ;;
image/webp) mpv "$f"; ;;
video/*) tmpv "$f"; ;;
image/webp) tmpv "$f"; ;;
image/*) nsxiv -N floating -g 1280x720+300+180 -ab "$f"; ;;
# can't handle
application/octet-stream) print "Sorry, can't handle: $f"; ;;

View File

@ -7,6 +7,7 @@
# start hotkey daemon
pgrep -q sxhkd || sxhkd -c $HOME/.config/bspwm/sxhkdrc &
pgrep -qf bspswallow || bspswallow &
# we're fancy now.
# hsetroot -fill ~/Backgrounds/5JdtbnY.jpg
@ -51,6 +52,6 @@ GAP=150
H=$(( ${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 Screenkey manage=off
bspc rule -a scratchpad 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 scratchpad sticky=on state=floating rectangle=$GAP,$GAP,$H,$V

View File

@ -58,7 +58,7 @@ alt + o
# quit/restart bspwm
alt + shift + r
bspc wm -r; \
bspc wm -r
pkill -SIGUSR1 sxhkd
# close and kill

View File

@ -10,7 +10,7 @@ export TUIR_BROWSER
NNN_OPTS="cErxAJBRr"
NNN_OPENER="nnn.sh"
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_COLORS='#0a1b2c3d;1234'
NNN_FCOLORS='c1e2272e006033f7c6d6abc4'