diff options
| author | Blista Kanjo | 2023-07-14 02:46:57 -0400 |
|---|---|---|
| committer | Blista Kanjo | 2023-07-14 02:46:57 -0400 |
| commit | a30cee6889427b040ab8013fbd966d7407e8eb1f (patch) | |
| tree | 0f968f51a2f74d4ed6d7f32b43e263b5f48be47f /.local/share/scripts/dym.sh | |
| parent | 63fca68cc7416c86cd97264ed667295e4664f886 (diff) | |
refactor: change scripts location
Diffstat (limited to '.local/share/scripts/dym.sh')
| -rwxr-xr-x | .local/share/scripts/dym.sh | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/.local/share/scripts/dym.sh b/.local/share/scripts/dym.sh deleted file mode 100755 index aef084c..0000000 --- a/.local/share/scripts/dym.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh - -WORD=$(echo "\n" | ~/.local/bin/dmenu-adwaita -b -i -p "Check Spelling: ") - -[ -z "$WORD" ] && exit - -if [ -n "$1" ]; then - xdotool type "$WORD" -else - CORRECTED=$(dym -c $WORD -n 10 | ~/.local/bin/dmenu-adwaita -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 - - |
