mirror of https://github.com/tiyn/dotfiles
parent
d0ef41d968
commit
c6b9ffcc69
@ -0,0 +1,20 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# relevant for: record_replay_start, record_start
|
||||||
|
export CAPTURE_INPUT_AUDIO="easyeffects_sink.monitor"
|
||||||
|
export CAPTURE_OUTPUT_AUDIO="easyeffects_source"
|
||||||
|
export CAPTURE_DIR="$HOME/downloads"
|
||||||
|
# relevant for: monitor
|
||||||
|
export EXTERNAL_MONITOR="HDMI2"
|
||||||
|
export INTERNAL_MONITOR="LVDS1"
|
||||||
|
# relevant for: textemp
|
||||||
|
export LATEX_TEMPLATE_DIR="~/code/main/latextemplates"
|
||||||
|
# relevant for: lmc
|
||||||
|
export LOOPBACK_DEVICE="PCM2902 Audio Codec Analog Stereo"
|
||||||
|
# relevant for: disk
|
||||||
|
export STATUSBAR_DISK="/home"
|
||||||
|
# relevant for: wallpaper
|
||||||
|
export WALLPAPER_DESKTOP="${XDG_DATA_HOME:-$HOME/.local/share}/bg"
|
||||||
|
export WALLPAPER_LOCK="${XDG_DATA_HOME:-$HOME/.local/share}/lock"
|
||||||
|
# relevant for: screenshot
|
||||||
|
export SCREENSHOT_DIR="$HOME/downloads"
|
@ -1,14 +1,15 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
[ -z "$CAPTURE_INPUT_AUDIO" ] && audio_1="easyeffects_sink.monitor" || audio_1="$CAPTURE_INPUT_AUDIO"
|
||||||
|
[ -z "$CAPTURE_OUTPUT_AUDIO" ] && audio_2="easyeffects_source" || audio_2="$CAPTURE_OUTPUT_AUDIO"
|
||||||
|
[ -z "$CAPTURE_DIR" ] && output="$HOME/downloads" || output="$CAPTURE_DIR"
|
||||||
|
|
||||||
window=$(xdotool getwindowfocus)
|
window=$(xdotool getwindowfocus)
|
||||||
fps=60
|
fps=60
|
||||||
audio_1="easyeffects_sink.monitor"
|
|
||||||
audio_2="easyeffects_source"
|
|
||||||
format="mp4"
|
format="mp4"
|
||||||
v_codec="h264"
|
v_codec="h264"
|
||||||
a_codec="opus"
|
a_codec="opus"
|
||||||
lenght=20
|
lenght=20
|
||||||
output="$HOME/downloads"
|
|
||||||
|
|
||||||
gpu-screen-recorder -w $window -f $fps -a $audio_1 -a $audio_2 -c $format -k $v_codec -ac $a_codec -r $lenght -o $output &
|
gpu-screen-recorder -w $window -f $fps -a $audio_1 -a $audio_2 -c $format -k $v_codec -ac $a_codec -r $lenght -o $output &
|
||||||
notify-send -u low 'Screen record' 'Replay started'
|
notify-send -u low 'Screen record' 'Replay started'
|
||||||
|
@ -1,13 +1,15 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
[ -z "$CAPTURE_INPUT_AUDIO" ] && audio_1="easyeffects_sink.monitor" || audio_1="$CAPTURE_INPUT_AUDIO"
|
||||||
|
[ -z "$CAPTURE_OUTPUT_AUDIO" ] && audio_2="easyeffects_source" || audio_2="$CAPTURE_OUTPUT_AUDIO"
|
||||||
|
[ -z "$CAPTURE_DIR" ] && output_dir="$HOME/downloads" || output_dir="$CAPTURE_DIR"
|
||||||
|
|
||||||
window=$(xdotool getwindowfocus)
|
window=$(xdotool getwindowfocus)
|
||||||
fps=30
|
fps=30
|
||||||
audio_1="$(pactl get-default-sink).monitor"
|
|
||||||
audio_2="$(pactl get-default-source)"
|
|
||||||
format="mp4"
|
format="mp4"
|
||||||
v_codec="h264"
|
v_codec="h264"
|
||||||
a_codec="opus"
|
a_codec="opus"
|
||||||
output="$HOME/downloads/recording-$(date '+%Y-%m-%d_%H-%M-%S').$format"
|
output="$output_dir/recording-$(date '+%Y-%m-%d_%H-%M-%S').$format"
|
||||||
|
|
||||||
gpu-screen-recorder -w $window -c $format -k $v_codec -ac $a_codec -f $fps -a $audio_1 -a $audio_2 -o $output &
|
gpu-screen-recorder -w $window -c $format -k $v_codec -ac $a_codec -f $fps -a $audio_1 -a $audio_2 -o $output &
|
||||||
notify-send -u low 'Screen record' 'Recording started'
|
notify-send -u low 'Screen record' 'Recording started'
|
||||||
|
Loading…
Reference in new issue