diff options
| author | awy <awy@awy.one> | 2025-11-15 03:42:47 +0300 |
|---|---|---|
| committer | awy <awy@awy.one> | 2025-11-15 03:42:47 +0300 |
| commit | 4e2b43df111e3c4db4066c41502994285773f8af (patch) | |
| tree | 83dc43773843ac16c547afa62e4aae42d4eeffde | |
| parent | 0ed8ad7ed94ff185c8b30c0ca090d38ea6e2771e (diff) | |
| download | mangoslice-4e2b43df111e3c4db4066c41502994285773f8af.tar.gz | |
fixes
| -rwxr-xr-x | .local/bin/dmenurecord | 8 | ||||
| -rwxr-xr-x | .local/bin/dmenuscreenshare | 40 |
2 files changed, 6 insertions, 42 deletions
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 |