From dc9cb2bdde37ed97095ad98ad1856c8d4e4f1669 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sun, 22 Nov 2020 16:52:57 +0100 Subject: Cool --- .local/bin/cast/recscreen | 22 ++++++++++++++++++++++ .local/bin/cast/strscreen | 24 ++++++++++++++++++++++++ .local/bin/kb | 20 +++++++++++++------- .local/bin/recscreen | 22 ---------------------- .local/bin/strscreen | 24 ------------------------ 5 files changed, 59 insertions(+), 53 deletions(-) create mode 100755 .local/bin/cast/recscreen create mode 100755 .local/bin/cast/strscreen delete mode 100755 .local/bin/recscreen delete mode 100755 .local/bin/strscreen (limited to '.local/bin') diff --git a/.local/bin/cast/recscreen b/.local/bin/cast/recscreen new file mode 100755 index 0000000..d5079eb --- /dev/null +++ b/.local/bin/cast/recscreen @@ -0,0 +1,22 @@ +#!/usr/local/bin/dash + +ffmpeg -y \ + -f x11grab -video_size 1920x1080 -framerate 24 -i $DISPLAY \ + -f pulse -ac 2 -ar 44100 -i oss_input.dsp0 \ + -f pulse -ac 2 -ar 44100 -i oss_output.dsp0.monitor \ + -filter_complex ' + anlmdn=s=1, + highpass=f=140, lowpass=f=16000, + equalizer=f=350:t=h:w=200:g=-5.5, + equalizer=f=600:t=h:w=200:g=0.5, equalizer=f=1000:t=h:w=100:g=-5.5, + equalizer=f=2500:t=h:w=1000:g=1.5, + deesser=i=0.5:m=0.5:f=0.5, + acompressor=threshold=0.1:ratio=8:attack=150:release=40:knee=1, + amix=inputs=2 + ' \ + -vcodec libx264 -g 24 -b:v 1M \ + -acodec aac -b:a 320k -ar 44100 -ac 2 \ + -pix_fmt yuv420p \ + screen_$(date "+%Y-%m-%d_%Hh%M").mkv + +# vim: filetype=sh diff --git a/.local/bin/cast/strscreen b/.local/bin/cast/strscreen new file mode 100755 index 0000000..822bb3b --- /dev/null +++ b/.local/bin/cast/strscreen @@ -0,0 +1,24 @@ +#!/usr/local/bin/dash + +ffmpeg -y \ + -f x11grab -s 1920x1080 -framerate 8 -i $DISPLAY \ + -f pulse -ac 2 -ar 44100 -i oss_input.dsp0 \ + -f pulse -ac 2 -ar 44100 -i oss_output.dsp0.monitor \ + -filter_complex ' + anlmdn=s=1, + highpass=f=140, lowpass=f=16000, + equalizer=f=350:t=h:w=200:g=-5.5, + equalizer=f=600:t=h:w=200:g=0.5, equalizer=f=1000:t=h:w=100:g=-5.5, + equalizer=f=2500:t=h:w=1000:g=1.5, + deesser=i=0.5:m=0.5:f=0.5, + acompressor=threshold=0.1:ratio=8:attack=150:release=40:knee=1, + amix=inputs=2 + ' \ + -s 1280x720 -c:v libx264 -b:v 300k -preset ultrafast \ + -acodec aac -b:a 160k -ar 44100 -ac 2 \ + -pix_fmt yuv420p \ + -threads 0 \ + -f flv \ + rtmp://live-lax.twitch.tv/app/$(pass twitchkey) + +# vim: filetype=sh diff --git a/.local/bin/kb b/.local/bin/kb index 1b7a4ea..d21690b 100755 --- a/.local/bin/kb +++ b/.local/bin/kb @@ -2,16 +2,22 @@ xset r rate 200 150 setxkbmap -layout us,fr -option grp:alt_shift_toggle -xmodmap -e "keycode 9 = Tab" -xmodmap -e "keycode 23 = Escape" if ! xrandr | grep 'HDMI-1 connected' >/dev/null 2>&1; then if ! xrandr | grep 'VGA-1 connected' >/dev/null 2>&1; then + echo + setxkbmap -option ctrl:swapcaps xmodmap -e "remove Lock = Caps_Lock" - xmodmap -e "remove Control = Control_L" - xmodmap -e "keysym Control_L = Caps_Lock" - xmodmap -e "keysym Caps_Lock = Control_L" - xmodmap -e "add Lock = Caps_Lock" - xmodmap -e "add Control = Control_L" + xmodmap -e 'keycode 37 = Escape' + # setxkbmap -option caps:escape + # xmodmap -e "remove Control = Control_L" + # xmodmap -e "keysym Control_L = Caps_Lock" + # xmodmap -e "keysym Caps_Lock = Control_L" + # xmodmap -e "add Lock = Caps_Lock" + # xmodmap -e "add Control = Control_L" fi +else + setxkbmap -option caps:swapescape fi notify-send -u low -t 2000 'kb' ' Keyboard set' + +# vim: filetype=sh diff --git a/.local/bin/recscreen b/.local/bin/recscreen deleted file mode 100755 index d5079eb..0000000 --- a/.local/bin/recscreen +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/local/bin/dash - -ffmpeg -y \ - -f x11grab -video_size 1920x1080 -framerate 24 -i $DISPLAY \ - -f pulse -ac 2 -ar 44100 -i oss_input.dsp0 \ - -f pulse -ac 2 -ar 44100 -i oss_output.dsp0.monitor \ - -filter_complex ' - anlmdn=s=1, - highpass=f=140, lowpass=f=16000, - equalizer=f=350:t=h:w=200:g=-5.5, - equalizer=f=600:t=h:w=200:g=0.5, equalizer=f=1000:t=h:w=100:g=-5.5, - equalizer=f=2500:t=h:w=1000:g=1.5, - deesser=i=0.5:m=0.5:f=0.5, - acompressor=threshold=0.1:ratio=8:attack=150:release=40:knee=1, - amix=inputs=2 - ' \ - -vcodec libx264 -g 24 -b:v 1M \ - -acodec aac -b:a 320k -ar 44100 -ac 2 \ - -pix_fmt yuv420p \ - screen_$(date "+%Y-%m-%d_%Hh%M").mkv - -# vim: filetype=sh diff --git a/.local/bin/strscreen b/.local/bin/strscreen deleted file mode 100755 index 822bb3b..0000000 --- a/.local/bin/strscreen +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/local/bin/dash - -ffmpeg -y \ - -f x11grab -s 1920x1080 -framerate 8 -i $DISPLAY \ - -f pulse -ac 2 -ar 44100 -i oss_input.dsp0 \ - -f pulse -ac 2 -ar 44100 -i oss_output.dsp0.monitor \ - -filter_complex ' - anlmdn=s=1, - highpass=f=140, lowpass=f=16000, - equalizer=f=350:t=h:w=200:g=-5.5, - equalizer=f=600:t=h:w=200:g=0.5, equalizer=f=1000:t=h:w=100:g=-5.5, - equalizer=f=2500:t=h:w=1000:g=1.5, - deesser=i=0.5:m=0.5:f=0.5, - acompressor=threshold=0.1:ratio=8:attack=150:release=40:knee=1, - amix=inputs=2 - ' \ - -s 1280x720 -c:v libx264 -b:v 300k -preset ultrafast \ - -acodec aac -b:a 160k -ar 44100 -ac 2 \ - -pix_fmt yuv420p \ - -threads 0 \ - -f flv \ - rtmp://live-lax.twitch.tv/app/$(pass twitchkey) - -# vim: filetype=sh -- cgit v1.2.3