diff --git a/.config/ags/scripts/record-script.sh b/.config/ags/scripts/record-script.sh index bc5013238..cfa354fc3 100755 --- a/.config/ags/scripts/record-script.sh +++ b/.config/ags/scripts/record-script.sh @@ -1,8 +1,14 @@ #!/usr/bin/env bash +## hmm +# --pixel-format yuv420p + getdate() { date '+%Y%m%d_%H-%M-%S' } +getaudiooutput() { + pactl list sources | grep 'Name' | grep 'monitor' | cut -d ' ' -f2 +} cd ~/Videos || exit if pgrep wf-recorder > /dev/null; then @@ -11,12 +17,13 @@ if pgrep wf-recorder > /dev/null; then else notify-send "Starting recording" 'recording_'"$(getdate)"'.mp4' -a 'record-script.sh' if [[ "$1" == "--sound" ]]; then - wf-recorder --pixel-format yuv420p -f './recording_'"$(getdate)"'.mp4' -t --geometry "$(slurp)" --audio=alsa_output.pci-0000_08_00.6.analog-stereo.monitor & disown + wf-recorder -c h264_vaapi -d /dev/dri/renderD128 -C aac -f './recording_'"$(getdate)"'.mp4' -t --geometry "$(slurp)" --audio="$(getaudiooutput)" & disown elif [[ "$1" == "--fullscreen-sound" ]]; then - wf-recorder --pixel-format yuv420p -f './recording_'"$(getdate)"'.mp4' -t --audio=alsa_output.pci-0000_08_00.6.analog-stereo.monitor & disown + wf-recorder -c h264_vaapi -d /dev/dri/renderD128 -C aac -f './recording_'"$(getdate)"'.mp4' -t --audio="$(getaudiooutput)" & disown elif [[ "$1" == "--fullscreen" ]]; then - wf-recorder --pixel-format yuv420p -f './recording_'"$(getdate)"'.mp4' -t & disown + wf-recorder -c h264_vaapi -d /dev/dri/renderD128 -C aac -f './recording_'"$(getdate)"'.mp4' -t & disown else - wf-recorder --pixel-format yuv420p -f './recording_'"$(getdate)"'.mp4' -t --geometry "$(slurp)" & disown + wf-recorder -c h264_vaapi -d /dev/dri/renderD128 -C aac -f './recording_'"$(getdate)"'.mp4' -t --geometry "$(slurp)" & disown fi fi + diff --git a/.config/anyrun/config.ron b/.config/anyrun/config.ron new file mode 100755 index 000000000..c3eafd7a8 --- /dev/null +++ b/.config/anyrun/config.ron @@ -0,0 +1,13 @@ +Config( + x: Fraction(0.500000), + y: Absolute(15), + width: Fraction(0.300000), + height: Absolute(0), + hide_icons: false, + ignore_exclusive_zones: false, + layer: Overlay, + hide_plugin_info: true, + close_on_click: true, + show_results_immediately: false, + max_entries: None, +) diff --git a/.config/anyrun/style.css b/.config/anyrun/style.css new file mode 100755 index 000000000..ca45f260d --- /dev/null +++ b/.config/anyrun/style.css @@ -0,0 +1,66 @@ +* { + all: unset; + font-size: 1.3rem; +} + +#window, +#match, +#entry, +#plugin, +#main { + background: transparent; +} + +#match.activatable { + border-radius: 16px; + padding: 0.3rem 0.9rem; + margin-top: 0.01rem; +} +#match.activatable:first-child { + margin-top: 0.7rem; +} +#match.activatable:last-child { + margin-bottom: 0.6rem; +} + +#plugin:hover #match.activatable { + border-radius: 10px; + padding: 0.3rem; + margin-top: 0.01rem; + margin-bottom: 0; +} + +#match:selected, +#match:hover, +#plugin:hover { + background: #2e3131; +} + +#entry { + background: #0b0f10; + border: 1px solid #0b0f10; + border-radius: 16px; + margin: 0.5rem; + padding: 0.3rem 1rem; +} + +list > #plugin { + border-radius: 16px; + margin: 0 0.3rem; +} +list > #plugin:first-child { + margin-top: 0.3rem; +} +list > #plugin:last-child { + margin-bottom: 0.3rem; +} +list > #plugin:hover { + padding: 0.6rem; +} + +box#main { + background: #0b0f10; + box-shadow: inset 0 0 0 1px #0b0f10, 0 0 0 1px #0b0f10; + border-radius: 24px; + padding: 0.3rem; +}