Update 2023-12-30 08:31 OpenBSD/amd64-x13

This commit is contained in:
c0dev0id 2023-12-30 08:31:01 +01:00
parent 1ece4561d6
commit 4cee9ba420
6 changed files with 19 additions and 23 deletions

BIN
.bin/cbar

Binary file not shown.

View File

@ -121,27 +121,14 @@ Zalando"
# PROVIDES: $BROWSER
choose_browser() {
FAT_BROWSER="Qutebrowser (default)"
MIN_BROWSER="Vimb (default)"
DEF_BROWSER="$BROWSER"
case "${URI}" in
gopher://*) DEFAULT="Lagrange (default)"; ;;
gemini://*) DEFAULT="Lagrange (default)"; ;;
*github.com*) DEFAULT="$FAT_BROWSER"; ;;
*amazon.de*) DEFAULT="$FAT_BROWSER"; ;;
*hetzner.cloud*) DEFAULT="$FAT_BROWSER"; ;;
*hetzner.de*) DEFAULT="$MIN_BROWSER"; ;;
gopher://*) DEFAULT="Lagrange (default)"; ;;
gemini://*) DEFAULT="Lagrange (default)"; ;;
*youtube.com/watch*) DEFAULT="Mpv (default)"; ;;
*media.ccc.de/v/*) DEFAULT="Mpv (default)"; ;;
*bsd.network*) DEFAULT="$FAT_BROWSER"; ;;
*itch.io*) DEFAULT="$FAT_BROWSER"; ;;
*chat.uugrn.org*) DEFAULT="$FAT_BROWSER"; ;;
*[./]amazon.*) DEFAULT="$FAT_BROWSER"; ;;
*comdirect.de*) DEFAULT="$FAT_BROWSER"; ;;
*.pdf|*.cb|*.ps) DEFAULT="Zathura (default)"; ;;
*.mp4|*.m4v|*.mkv) DEFAULT="Mpv (default)"; ;;
*) DEFAULT="$DEF_BROWSER"; ;;
*media.ccc.de/v/*) DEFAULT="Mpv (default)"; ;;
*.pdf|*.cb|*.ps) DEFAULT="Zathura (default)"; ;;
*.mp4|*.m4v|*.mkv) DEFAULT="Mpv (default)"; ;;
*) DEFAULT="$BROWSER (default)"; ;;
esac
local S="${DEFAULT}\nLuakit\nVimb\nFirefox\nChrome\nQutebrowser\nWyeb\nNetsurf\nTor-Browser\nDillo\nSurf\nMpv"
@ -159,7 +146,7 @@ choose_browser() {
[Zz]athura*) BROWSER=zathura ;;
[Ll]agrange*) BROWSER=lagrange ;;
[Ww]yeb*) BROWSER=wyeb ;;
[Mm]pv*) export _SWM_WS=-1; BROWSER="mpv" ;;
[Mm]pv*) BROWSER="mpv" ;;
*) exit 0;;
esac
}

View File

@ -65,6 +65,7 @@ case "$EXT" in
xlsx) libreoffice "$f"; ;;
txt) vim "$f"; ;;
m2ts) mpv "$f"; ;;
flv) mpv "$f"; ;;
sid) sidplay "$f"; ;;
out) kdump -RTf "$f" | less; ;;
torrent) aria2c "$f"; ;;
@ -83,8 +84,8 @@ fi
case "$(file -ib "$f")" in
# full qualified
application/ogg) ogg123 "$f"; ;;
application/pdf) mupdf-gl -XJA0 "$f"; ;;
application/postscript) mupdf-gl -XJA0 "$f"; ;;
application/pdf) mupdf "$f"; ;;
application/postscript) mupdf "$f"; ;;
application/vnd.oasis.opendocument.*) libreoffice "$f"; ;;
audio/mpeg) mpg123 "$f"; ;;
audio/midi) timidity "$f"; ;;

View File

@ -45,6 +45,7 @@ else
# activate (give focus)
wmctrl -i -a $WID
else
wmctrl -i -r $WID -t 11
# window is visible => hide
wmctrl -i -r $WID -b add,hidden
# correct size while hidden

View File

@ -19,6 +19,7 @@ else
# remove hidden flag
wmctrl -i -r $WID -b remove,hidden
else
wmctrl -i -r $WID -t 11
# window is visible => hide
wmctrl -i -r $WID -b add,hidden
fi

View File

@ -67,7 +67,7 @@ bar_at_bottom = 0
#bar_format = +S WS:+I/+R | H:+M | +W +|2R +A
#bar_format = +I +S (+M) +|1R +A %Y-%m-%d %H:%M
bar_format = +S +@bg=2;+L+@bg=0; +W +|2R +A
bar_format = +S +@bg=2;+L+@bg=0; +W +|R +A
# +--------------------------------------------------
# | WORKSPACE LAYOUT
@ -94,6 +94,7 @@ name = ws[7]:7
name = ws[8]:8
name = ws[9]:9
name = ws[10]:10
name = ws[11]:
workspace_limit = 10
stack_mark_horizontal = 'v'
@ -198,6 +199,9 @@ bind[xpick] = MOD+Print
program[lock] = /usr/bin/false
autorun = ws[11]:xconsole
autorun = ws[11]:scratchpad
# +--------------------------------------------------
# | KEYBOARD MAPPING
# +--------------------------------------------------
@ -266,6 +270,8 @@ bind[mvws_7] = MOD+Shift+7
bind[mvws_8] = MOD+Shift+8
bind[mvws_9] = MOD+Shift+9
bind[mvws_10] = MOD+Shift+0
bind[ws_empty] = MOD+e
bind[ws_empty_move] = MOD+Shift+e
# RENAME WS
bind[name_workspace] = MOD+r