From 58672b33e45d0ffe7070224dac8f40f4d20b7bbf Mon Sep 17 00:00:00 2001 From: awy Date: Sat, 29 Nov 2025 18:45:22 +0300 Subject: ww --- .local/bin/dmenurecord | 8 ++++---- .local/bin/maimpick | 2 +- .local/bin/singboxwrap | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to '.local') diff --git a/.local/bin/dmenurecord b/.local/bin/dmenurecord index 55bcec7..35a81fe 100755 --- a/.local/bin/dmenurecord +++ b/.local/bin/dmenurecord @@ -2,7 +2,7 @@ getdim() { gpu-screen-recorder --list-capture-options | sed 's/|[0-9]\{1,\}x[0-9]\{1,\}//g' \ - | rofi -dmenu -p "Select output: " + | rofi -dmenu -no-custom -p "Select output: " } updateicon() { \ @@ -90,7 +90,7 @@ savereplay() { } askrecording() { \ - choice=$(printf "screencast\\nreplay\\nvideo\\naudio\\nwebcam\\nwebcam (hi-def)" | rofi -dmenu -i -p "Select recording style:") + choice=$(printf "screencast\\nreplay\\nvideo\\naudio\\nwebcam\\nwebcam (hi-def)" | rofi -dmenu -no-custom -i -p "Select recording style") case "$choice" in screencast) screencast;; replay) replay;; @@ -103,11 +103,11 @@ askrecording() { \ asktoend() { \ if grep -q "󰑙" /tmp/recordingicon; then - response=$(printf "No\\nYes" | rofi -dmenu -i -p "Replay is active. Save it?") && + response=$(printf "No\\nYes" | rofi -dmenu -no-custom -i -p "Replay is active. Save it?") && [ "$response" = "Yes" ] && savereplay fi - response=$(printf "No\\nYes" | rofi -dmenu -i -p "Recording still active. End recording?") && + response=$(printf "No\\nYes" | rofi -dmenu -no-custom -i -p "Recording still active. End recording?") && [ "$response" = "Yes" ] && killrecording } diff --git a/.local/bin/maimpick b/.local/bin/maimpick index a25d5dd..2a71be3 100755 --- a/.local/bin/maimpick +++ b/.local/bin/maimpick @@ -13,7 +13,7 @@ get_active_window() { hyprctl -j activewindow | jq -r '"\(.at[0]),\(.at[1]) \(.size[0])x\(.size[1])"' } -case "$(printf "a selected area\\ncurrent window\\nfull screen\\na selected area (copy)\\ncurrent window (copy)\\nfull screen (copy)\\na selected area (swappy)\\ncurrent window (swappy)\\nfull screen (swappy)\\ncopy selected image to text" | rofi -theme-str 'listview {scrollbar: false;}' -theme-str 'window {width: 10%;}' -dmenu -only-match -l 10 -i -p "Screenshot which area?")" in +case "$(printf "a selected area\\ncurrent window\\nfull screen\\na selected area (copy)\\ncurrent window (copy)\\nfull screen (copy)\\na selected area (swappy)\\ncurrent window (swappy)\\nfull screen (swappy)\\ncopy selected image to text" | rofi -theme-str 'listview {scrollbar: false;}' -theme-str 'window {width: 10%;}' -dmenu -no-custom -l 10 -i -p "Screenshot which area?")" in "a selected area") geometry=$(slurp) && sleep 0.2 && grim -g "$geometry" pic-selected-"${output}" && notify-send "📸 maimpick" "Screenshot saved as pic-selected-$output." ;; "current window") geometry=$(get_active_window) diff --git a/.local/bin/singboxwrap b/.local/bin/singboxwrap index 0877ed9..a69bbc4 100755 --- a/.local/bin/singboxwrap +++ b/.local/bin/singboxwrap @@ -16,7 +16,7 @@ run_singbox () { } choose_menu () { - choose="$(fd . $config_dir -d 1 -t f | rofi -dmenu -only-match -p "Config to use")" + choose="$(fd . $config_dir -d 1 -t f | rofi -dmenu -no-custom -p "Config to use")" [ -n "$choose" ] || exit 1 ln -sf "$choose" "$default_path" echo "$default_path" -- cgit v1.2.3