From 865a9e051b1645ecba0662d6e6afa4fe5318b1e3 Mon Sep 17 00:00:00 2001 From: c0dev0id Date: Mon, 4 Dec 2023 17:43:36 +0100 Subject: [PATCH] Update 2023-12-04 17:43 OpenBSD/amd64-x13 --- .Xdefaults | 9 +++++++++ .bin/_config | 35 +++++++++++++++++----------------- .bin/rec_scr | 15 ++++++++++++++- .config/spectrwm/spectrwm.conf | 3 ++- .gnupg/pinentry-dmenu.conf | 2 +- .kshrc | 10 +++++++++- .notion/look_codevoid.lua | 4 ++-- 7 files changed, 54 insertions(+), 24 deletions(-) diff --git a/.Xdefaults b/.Xdefaults index 2c78cc4..466868d 100644 --- a/.Xdefaults +++ b/.Xdefaults @@ -178,7 +178,16 @@ XConsole*y: 870 XConsole*width: 620 XConsole*height: 160 +! -- XFONTSEL -- ! XFontSel.printOnQuit: True XFontSel.pattern: -*-*-medium-r-normal-*-*-*-*-*-*-*-iso10646-1 XFontSel*Font: lucidasanstypewriter-14 +! -- ZUTTY -- ! +Zutty.altScroll: true +Zutty.boldColors: false +Zutty.font: SourceCodePro-Medium +Zutty.fontsize: 16 +Zutty.fontpath: /home/sdk/.fonts +Zutty.bg: #121212 +Zutty.cr: #FF6A00 diff --git a/.bin/_config b/.bin/_config index 59f89bf..479ef46 100644 --- a/.bin/_config +++ b/.bin/_config @@ -1,37 +1,36 @@ #!/bin/sh # FONTS -# -SFONT="-slavfox-cozettehidpi-medium-r-normal--26-240-75-75-m-120-iso10646-1" -BFONT="-slavfox-cozette-medium-r-normal--13-120-75-75-m-60-iso10646-1" -HFONT="FuraCodeNerdFontMono:pixelsize=28" -HFONT="LuxiMono:pixelsize=28" -DFONT="CozetteHidpi:pixelsize=26" -NFONT="Termsyn:pixelsize=9" +FONTNAME="Terminus" +FONTSIZE_SMALL=18 +FONTSIZE_BIG=26 +FONTSIZE_DMENU=$((FONTSIZE_SMALL - 0)) # TERMINALS # -STERM="st -f ${SFONT}" -BTERM="st -f ${BFONT}" -HTERM="st -f ${HFONT}" -NTERM="st -f ${NFONT}" +STERM="st -f ${FONTNAME}:pixelsize=${FONTSIZE_SMALL}" +BTERM="st -f ${FONTNAME}:pixelsize=${FONTSIZE_BIG}" -# NOTION ORANGE -#DMENUOPTS="-fn '$DFONT' -nb #181818 -nf #707070 -sf #FFA600 -sb #222222 -l 18 -i -f" +HTERM="zutty -font SourceCodePro-Medium -fontsize ${FONTSIZE_BIG}" -# BSPWM -#DMENUOPTS="-fn '$DFONT' -nb #222222 -nf #707070 -sf #CCCCCC -sb #222222 -i -f" +DFONT=${FONTNAME}:pixelsize=${FONTSIZE_DMENU} +[ "$WM" == "notion" ] \ + && DMENUOPTS="-fn $DFONT -nb #181818 -nf #707070 -sf #FFA600 -sb #222222 -l 18 -i -f" -# SPECTRWM GREY -DMENUOPTS="-fn $DFONT -nb #181818 -nf #999999 -sf #CCCCCC -sb #181818 -i -f" +[ "$WM" == "bspwm" ] \ + && DMENUOPTS="-fn $DFONT -nb #222222 -nf #707070 -sf #CCCCCC -sb #222222 -i -f" + +[ "$WM" == "spectrwm" ] \ + && DMENUOPTS="-fn $DFONT -nb #181818 -nf #999999 -sf #CCCCCC -sb #181818 -i -f" DMENU_CMD="dmenu $DMENUOPTS" DMENURUN_CMD="dmenu_run $DMENUOPTS" notify_func() { + P=" " /usr/local/bin/notify-send \ - " $(date +%H:%M) $@ " + " $(date +%H:%M) $P $@ $P" } NOTIFY_CMD=notify_func diff --git a/.bin/rec_scr b/.bin/rec_scr index 61d11bb..bcca078 100755 --- a/.bin/rec_scr +++ b/.bin/rec_scr @@ -1,6 +1,12 @@ #!/bin/sh set -e +doas rcctl set sndiod flags -f rsnd/0 -m play -s play -m mon -s mon -F rsnd/1 -m rec -s rec +doas rcctl restart sndiod +export AUDIOPLAYDEVICE=snd/0.play +export AUDIOMONDEVICE=snd/0.mon +export AUDIORECDEVICE=snd/1.rec + _vidfile="/home/sdk/rec-screen.mkv" _outfile="/home/sdk/rec-encoded-$(date "+%Y%m%d_%H%M%S").mp4" @@ -8,7 +14,7 @@ _res="1920x1080" _fps="24" _mon_dev="snd/mon" -_mic_dev="snd/default" +_mic_dev="snd/rec" _mon_in="-thread_queue_size 16 -use_wallclock_as_timestamps 1 -f sndio -i ${_mon_dev}" _mon_proc="-c:a pcm_s16le" @@ -45,3 +51,10 @@ ffmpeg -hide_banner -y \ "${_outfile}" set +x printf '%s\n' "${_outfile}" + + +doas rcctl set sndiod flags -f rsnd/0 -F rsnd/1 -F rsnd/2 -F rsnd/3 -F rsnd/4 -F rsnd/5 -m play -s default +doas rcctl restart sndiod + +unset AUDIOPLAYDEVICE +unset AUDIORECDEVICE diff --git a/.config/spectrwm/spectrwm.conf b/.config/spectrwm/spectrwm.conf index a99dc5c..83d094c 100644 --- a/.config/spectrwm/spectrwm.conf +++ b/.config/spectrwm/spectrwm.conf @@ -35,7 +35,8 @@ bar_color_selected = rgb:18/24/28 bar_font_color = rgb:99/99/99,rgb:ff/6A/00,red bar_font_color_selected = rgb:ff/ff/ff bar_font_color_free = rgb:99/99/99 -bar_font = CozetteHidpi:pixelsize=26 +bar_font = Terminus:pixelsize=18 +bar_font_pua = CozetteVector:pixelsize=13 bar_action = cbar bar_action_expand = 0 bar_at_bottom = 0 diff --git a/.gnupg/pinentry-dmenu.conf b/.gnupg/pinentry-dmenu.conf index 8d4f1a2..6e55d9a 100644 --- a/.gnupg/pinentry-dmenu.conf +++ b/.gnupg/pinentry-dmenu.conf @@ -1,6 +1,6 @@ asterisk = "*"; prompt = ""; -font = "CozetteHidpi:pixelsize=26"; +font = "Terminus:pixelsize=18"; bottom = false; prompt_fg = "#FFFFFF"; diff --git a/.kshrc b/.kshrc index 8847f9c..238354c 100644 --- a/.kshrc +++ b/.kshrc @@ -454,7 +454,15 @@ pdiff() {( alias port-modgo-update='make MODGO_VERSION=latest modgo-gen-modules > modules.inc' # DPB -alias proot-rebuild="doas proot -c /etc/proot.conf; doas chroot /home/dpb pkg_add -Dsnap ccache" + +proot-rebuild() { + doas proot -c /etc/proot.conf + doas chroot /home/dpb pkg_add -Dsnap ccache cmake gmake go rust lua--%5.1 gtk+3-- + doas chroot /home/dpb pkg_add -Dsnap gtk+4-- harfbuzz-- webkitgtk40-- webkitgtk41-- + doas chroot /home/dpb pkg_add -Dsnap webkitgtk60-- qt6-qtbase-- qtbase-- qtwebengine-- + doas chroot /home/dpb pkg_add -Dsnap qtwebkit-- python--%3.10 +} + alias proot-do="doas chroot /home/dpb/" alias dmake="doas /usr/ports/infrastructure/bin/dpb -B /home/dpb -c -I " alias dpb-control="ssh openbsd.codevoid.de \"doas nc -U /usr/ports/logs/amd64/control-openbsd-*\"" diff --git a/.notion/look_codevoid.lua b/.notion/look_codevoid.lua index 9795a63..d186058 100644 --- a/.notion/look_codevoid.lua +++ b/.notion/look_codevoid.lua @@ -13,7 +13,7 @@ de.defstyle("*", { highlight_pixels = 1, shadow_pixels = 1, border_style = "elevated", - font = "xft:Cozette:pixelsize=13", + font = "xft:Envy Code R:pixelsize=13", text_align = "center", }) @@ -93,7 +93,7 @@ de.defstyle("stdisp", { shadow_pixels = 0, highlight_pixels = 0, text_align = "left", - font = "xft:Cozette:pixelsize=13", + font = "xft:Envy Code R:pixelsize=13", background_colour = "#222222", de.substyle("important", {