From a30cee6889427b040ab8013fbd966d7407e8eb1f Mon Sep 17 00:00:00 2001 From: Blista Kanjo Date: Fri, 14 Jul 2023 02:46:57 -0400 Subject: refactor: change scripts location --- .local/share/scripts/dym.sh | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100755 .local/share/scripts/dym.sh (limited to '.local/share/scripts/dym.sh') 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 - - -- cgit v1.2.3