diff options
Diffstat (limited to '.local/bin')
| -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") |