diff --git a/.bin/rec_scr_noaudio b/.bin/rec_scr_noaudio index 738336f..bb2c1bd 100755 --- a/.bin/rec_scr_noaudio +++ b/.bin/rec_scr_noaudio @@ -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}" diff --git a/.bin/sp b/.bin/sp index 812ebcd..66fc694 100755 --- a/.bin/sp +++ b/.bin/sp @@ -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 diff --git a/.config/spectrwm/spectrwm.conf b/.config/spectrwm/spectrwm.conf index fca1c6d..4b3b1db 100644 --- a/.config/spectrwm/spectrwm.conf +++ b/.config/spectrwm/spectrwm.conf @@ -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