From c2889d72f46a07c0e3b6e65c952f543550732f39 Mon Sep 17 00:00:00 2001 From: Severin Kaderli Date: Wed, 21 Aug 2019 20:03:04 +0200 Subject: [PATCH] Make rofi menus case insensitive Signed-off-by: Severin Kaderli --- system/.local/bin/games | 2 +- system/.local/bin/power | 2 +- system/.local/bin/screenshot | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/system/.local/bin/games b/system/.local/bin/games index dc786ab..9647222 100755 --- a/system/.local/bin/games +++ b/system/.local/bin/games @@ -23,7 +23,7 @@ ACTIONS=( "4: Pegasus" ) -SELECTION=$(printf '%s\n' "${ACTIONS[@]}" | rofi -dmenu -p "${PROMPT}" | cut -d ":" -f1) +SELECTION=$(printf '%s\n' "${ACTIONS[@]}" | rofi -dmenu -i -p "${PROMPT}" | cut -d ":" -f1) case "${SELECTION}" in "1") steam diff --git a/system/.local/bin/power b/system/.local/bin/power index 825a2e8..755bcd9 100755 --- a/system/.local/bin/power +++ b/system/.local/bin/power @@ -25,7 +25,7 @@ ACTIONS=( "6: Powersave Mode" ) -SELECTION=$(printf '%s\n' "${ACTIONS[@]}" | rofi -dmenu -p "${PROMPT}" | cut -d ":" -f1) +SELECTION=$(printf '%s\n' "${ACTIONS[@]}" | rofi -dmenu -i -p "${PROMPT}" | cut -d ":" -f1) case "${SELECTION}" in "1") systemctl reboot diff --git a/system/.local/bin/screenshot b/system/.local/bin/screenshot index 9622554..ffa341e 100755 --- a/system/.local/bin/screenshot +++ b/system/.local/bin/screenshot @@ -23,7 +23,7 @@ ACTIONS=( FILENAME="${HOME}/pictures/Screenshots/%Y-%m-%d-%H%M%S.png" -SELECTION=$(printf '%s\n' "${ACTIONS[@]}" | rofi -dmenu -p "${PROMPT}" | cut -d ":" -f1) +SELECTION=$(printf '%s\n' "${ACTIONS[@]}" | rofi -dmenu -i -p "${PROMPT}" | cut -d ":" -f1) case "${SELECTION}" in "1") FILE=$(escrotum "${FILENAME}") @@ -33,5 +33,6 @@ case "${SELECTION}" in ;; esac +# Save the screenshot also in the clipboard TYPE=$(file -b --mime-type "${FILE}") xclip -selection clipboard -t "${TYPE}" < "${FILE}" \ No newline at end of file