From 4e2b43df111e3c4db4066c41502994285773f8af Mon Sep 17 00:00:00 2001 From: awy Date: Sat, 15 Nov 2025 03:42:47 +0300 Subject: fixes --- .local/bin/dmenurecord | 8 ++++++-- .local/bin/dmenuscreenshare | 40 ---------------------------------------- 2 files changed, 6 insertions(+), 42 deletions(-) delete mode 100755 .local/bin/dmenuscreenshare (limited to '.local') diff --git a/.local/bin/dmenurecord b/.local/bin/dmenurecord index d9212f6..6c0ac92 100755 --- a/.local/bin/dmenurecord +++ b/.local/bin/dmenurecord @@ -1,5 +1,9 @@ #!/bin/sh +getdim() { + mmsg -O | mew -p "Select output: " +} + updateicon() { \ echo "$1" > /tmp/recordingicon pkill -RTMIN+9 "${STATUSBAR:-someblocks}" @@ -15,7 +19,7 @@ killrecording() { } screencast() { gpu-screen-recorder \ - -w portal \ + -w "$(getdim)" \ -fm content \ -f 60 \ -a default_output \ @@ -63,7 +67,7 @@ audio() { \ } replay() { gpu-screen-recorder \ - -w portal \ + -w "$(getdim)" \ -fm content \ -f 60 \ -r 60 \ diff --git a/.local/bin/dmenuscreenshare b/.local/bin/dmenuscreenshare deleted file mode 100755 index f94f00b..0000000 --- a/.local/bin/dmenuscreenshare +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/sh - -get_window() -{ - input="$(echo $XDPH_WINDOW_SHARING_LIST | sed 's/\[HA>\]/[HA>]\n/g')" - choice=$(echo "$input" | mew -l 10) - printf '[SELECTION]r/window:%s\n' "$choice" - echo $XDPH_WINDOW_SHARING_LIST > ~/test -} - -get_screen() -{ - input="$(hyprctl monitors -j | jq -r '.[].name')" - num="$(cat $input | wc -l)" - choice=$(echo "$input" | mew) - printf '[SELECTION]r/screen:%s\n' "$choice" -} - -get_region() -{ - choice="$(slurp -f "%o@%X,%Y,%w,%h")" - printf '[SELECTION]r/region:%s\n' "$choice" -} - -type=$(printf "screen\nwindows\nregion" | mew -p "Choose what to screenshare:") - -case "$type" in - "screen") - get_screen - ;; - "windows") - get_window - ;; - "region") - get_region - ;; - *) - exit 1 - ;; -esac -- cgit v1.2.3