From 5b7bbad13b3f85cdf7af75a652a196314461a927 Mon Sep 17 00:00:00 2001 From: Blista Kanjo Date: Mon, 19 Dec 2022 17:57:41 -0500 Subject: refactor: fixed directory structure --- .local/scripts/dym.sh | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100755 .local/scripts/dym.sh (limited to '.local/scripts') diff --git a/.local/scripts/dym.sh b/.local/scripts/dym.sh deleted file mode 100755 index 79374f8..0000000 --- a/.local/scripts/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 - - -- cgit v1.2.3