Update 2023-11-02 22:00 OpenBSD/amd64-x13

This commit is contained in:
c0dev0id 2023-11-02 22:00:22 +01:00
parent 92a2366e44
commit 3ad43fe7ae
3 changed files with 29 additions and 7 deletions

View File

@ -22,12 +22,12 @@ set -x
ffmpeg -hide_banner -y \
-i "${_vidfile}" \
-c:v libx264 \
-crf 28 \
-crf 21 \
-s ${_res} \
-pix_fmt yuv420p \
-preset veryfast \
-preset fast \
-movflags faststart \
-threads 12 \
-threads 8 \
"${_outfile}"
set +x
printf '%s\n' "${_outfile}"

22
.bin/sp
View File

@ -1,5 +1,14 @@
#!/bin/sh
RES=$(xrandr | grep "*+" | awk '{print $1}')
RESH=${RES%x*}
RESV=${RES#*x}
GAP=150
H=$(( RESH - 2 * GAP ))
V=$(( RESV - 2 * GAP ))
# set the following quirk in .config/spectrwm/spectrwm.conf
# quirk[scratchpad] = FLOAT + ANYWHERE
@ -8,7 +17,8 @@ WID=$(wmctrl -x -l scratchpad | fgrep '.scratchpad' | cut -d" " -f1)
if [ -z "$WID" ]
then
sterm -c scratchpad -g 150x40+130+80 &
sterm -c scratchpad -g 160x42+130+80 &
WID=$(wmctrl -x -l scratchpad | fgrep '.scratchpad' | cut -d" " -f1)
else
# check if window is iconfified or on another WS (or both)
if xwininfo -id $WID | fgrep -q IsUnMapped
@ -24,4 +34,14 @@ else
# window is visible => hide
wmctrl -i -r $WID -b add,hidden
fi
# wmctrl -i -r $WID -e 0,200,200,1420,680
wmctrl -i -r $WID -e 0,$GAP,$GAP,$H,$V
fi
c=0
while [ -z $WID ] && [ $c -lt 10 ]
do
WID=$(wmctrl -x -l scratchpad | fgrep '.scratchpad' | cut -d" " -f1)
c=$(( $c + 1 ))
sleep 0.1
done
wmctrl -i -r $WID -e 0,$GAP,$GAP,$H,$V

View File

@ -16,8 +16,10 @@ color_focus_maximized = rgb:28/28/28
color_focus_free = rgb:77/77/77
color_unfocus = rgb:47/47/47
color_unfocus_free = rgb:47/47/47
region_padding = 6
tile_gap = 6
region_padding = 32
tile_gap = 32
region_padding = 32
disable_border = 1
# +--------------------------------------------------
# | BAR SETTINGS
@ -176,7 +178,7 @@ bind[stack_dec] = MOD+Shift+comma
bind[stack_inc] = MOD+Shift+period
#bind[stack_reset] = MOD+Shift+space
bind[maximize_toggle] = MOD+f
#bind[fullscreen_toggle] =
#bind[fullscreen_toggle] = MOD+f
# WS NAVIGATION
bind[ws_1] = MOD+1