diff options
Diffstat (limited to 'Blista-Kanjo-DYM')
| -rw-r--r-- | Blista-Kanjo-DYM/README | 1 | ||||
| -rwxr-xr-x | Blista-Kanjo-DYM/dym.sh | 22 |
2 files changed, 0 insertions, 23 deletions
diff --git a/Blista-Kanjo-DYM/README b/Blista-Kanjo-DYM/README deleted file mode 100644 index 3d66324..0000000 --- a/Blista-Kanjo-DYM/README +++ /dev/null @@ -1 +0,0 @@ -Copy dym.sh to ~./local/share/scripts diff --git a/Blista-Kanjo-DYM/dym.sh b/Blista-Kanjo-DYM/dym.sh deleted file mode 100755 index 79374f8..0000000 --- a/Blista-Kanjo-DYM/dym.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh - -WORD=$(echo "\n" | ~/.local/share/dmenu-custom/dmenu -b -i -p "Check Spelling: ") - -[ -z "$WORD" ] && exit - -if [ -n "$1" ]; then - xdotool type "$WORD" -else - CORRECTED=$(dym -c $WORD -n 10 | ~/.local/share/dmenu-custom/dmenu -i -b -l 10 -p "Did you mean?:") - [ -z "$CORRECTED" ] && exit - - if [ -n "$1" ]; then - xdotool type "$CORRECTED" - else - echo -n "$CORRECTED" | xclip -selection clipboard - notify-send "'$CORRECTED' copied to clipboard." & - fi - -fi - - |
