diff options
| author | awy <awy@awy.one> | 2025-11-29 18:50:59 +0300 |
|---|---|---|
| committer | awy <awy@awy.one> | 2025-11-29 18:50:59 +0300 |
| commit | dfb1d2b8433e5d83a25df0625966e36900d0667f (patch) | |
| tree | a5757677c88b53b3b59f9254986b722e434a0673 | |
| parent | 61893c020489d3b0812b205a04762c5239931986 (diff) | |
| download | hyprdots-dfb1d2b8433e5d83a25df0625966e36900d0667f.tar.gz | |
qwwqwq
| -rwxr-xr-x | .local/bin/dmenuscreenshare | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/.local/bin/dmenuscreenshare b/.local/bin/dmenuscreenshare index 0782637..716c2e6 100755 --- a/.local/bin/dmenuscreenshare +++ b/.local/bin/dmenuscreenshare @@ -3,16 +3,15 @@ get_window() { input="$(echo $XDPH_WINDOW_SHARING_LIST | sed 's/\[HA>\]/[HA>]\n/g')" - choice=$(echo "$input" | rofi -dmenu -l 10) + choice=$(echo "$input" | rofi -dmenu -no-custom -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" | rofi -dmenu) + choice=$(echo "$input" | rofi -dmenu -no-custom) printf '[SELECTION]r/screen:%s\n' "$choice" } @@ -22,7 +21,7 @@ get_region() printf '[SELECTION]r/region:%s\n' "$choice" } -type=$(printf "screen\nwindows\nregion" | rofi -dmenu -p "Choose what to screenshare:") +type=$(printf "screen\nwindows\nregion" | rofi -dmenu -no-custom -p "Choose what to screenshare") case "$type" in "screen") |