Update 2023-11-02 22:00 OpenBSD/amd64-x13
This commit is contained in:
parent
92a2366e44
commit
3ad43fe7ae
|
@ -22,12 +22,12 @@ set -x
|
||||||
ffmpeg -hide_banner -y \
|
ffmpeg -hide_banner -y \
|
||||||
-i "${_vidfile}" \
|
-i "${_vidfile}" \
|
||||||
-c:v libx264 \
|
-c:v libx264 \
|
||||||
-crf 28 \
|
-crf 21 \
|
||||||
-s ${_res} \
|
-s ${_res} \
|
||||||
-pix_fmt yuv420p \
|
-pix_fmt yuv420p \
|
||||||
-preset veryfast \
|
-preset fast \
|
||||||
-movflags faststart \
|
-movflags faststart \
|
||||||
-threads 12 \
|
-threads 8 \
|
||||||
"${_outfile}"
|
"${_outfile}"
|
||||||
set +x
|
set +x
|
||||||
printf '%s\n' "${_outfile}"
|
printf '%s\n' "${_outfile}"
|
||||||
|
|
22
.bin/sp
22
.bin/sp
|
@ -1,5 +1,14 @@
|
||||||
#!/bin/sh
|
#!/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
|
# set the following quirk in .config/spectrwm/spectrwm.conf
|
||||||
# quirk[scratchpad] = FLOAT + ANYWHERE
|
# quirk[scratchpad] = FLOAT + ANYWHERE
|
||||||
|
|
||||||
|
@ -8,7 +17,8 @@ WID=$(wmctrl -x -l scratchpad | fgrep '.scratchpad' | cut -d" " -f1)
|
||||||
|
|
||||||
if [ -z "$WID" ]
|
if [ -z "$WID" ]
|
||||||
then
|
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
|
else
|
||||||
# check if window is iconfified or on another WS (or both)
|
# check if window is iconfified or on another WS (or both)
|
||||||
if xwininfo -id $WID | fgrep -q IsUnMapped
|
if xwininfo -id $WID | fgrep -q IsUnMapped
|
||||||
|
@ -24,4 +34,14 @@ else
|
||||||
# window is visible => hide
|
# window is visible => hide
|
||||||
wmctrl -i -r $WID -b add,hidden
|
wmctrl -i -r $WID -b add,hidden
|
||||||
fi
|
fi
|
||||||
|
# wmctrl -i -r $WID -e 0,200,200,1420,680
|
||||||
|
wmctrl -i -r $WID -e 0,$GAP,$GAP,$H,$V
|
||||||
fi
|
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
|
||||||
|
|
|
@ -16,8 +16,10 @@ color_focus_maximized = rgb:28/28/28
|
||||||
color_focus_free = rgb:77/77/77
|
color_focus_free = rgb:77/77/77
|
||||||
color_unfocus = rgb:47/47/47
|
color_unfocus = rgb:47/47/47
|
||||||
color_unfocus_free = rgb:47/47/47
|
color_unfocus_free = rgb:47/47/47
|
||||||
region_padding = 6
|
region_padding = 32
|
||||||
tile_gap = 6
|
tile_gap = 32
|
||||||
|
region_padding = 32
|
||||||
|
disable_border = 1
|
||||||
|
|
||||||
# +--------------------------------------------------
|
# +--------------------------------------------------
|
||||||
# | BAR SETTINGS
|
# | BAR SETTINGS
|
||||||
|
@ -176,7 +178,7 @@ bind[stack_dec] = MOD+Shift+comma
|
||||||
bind[stack_inc] = MOD+Shift+period
|
bind[stack_inc] = MOD+Shift+period
|
||||||
#bind[stack_reset] = MOD+Shift+space
|
#bind[stack_reset] = MOD+Shift+space
|
||||||
bind[maximize_toggle] = MOD+f
|
bind[maximize_toggle] = MOD+f
|
||||||
#bind[fullscreen_toggle] =
|
#bind[fullscreen_toggle] = MOD+f
|
||||||
|
|
||||||
# WS NAVIGATION
|
# WS NAVIGATION
|
||||||
bind[ws_1] = MOD+1
|
bind[ws_1] = MOD+1
|
||||||
|
|
Loading…
Reference in New Issue