diff --git a/sxhkd/.config/sxhkd/ctb.sh b/sxhkd/.config/sxhkd/ctb.sh deleted file mode 100755 index 0996375..0000000 --- a/sxhkd/.config/sxhkd/ctb.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/sh -# Clipboard to browser - -CLIPBOARD="$(xclip -o)" -OPEN="/usr/bin/$BROWSER" -URL="" - -if [[ "$1" == "jisho" ]]; then - URL="https://jisho.org/search/$CLIPBOARD" - -elif [[ "$1" == "weblio" ]]; then - URL="https://ejje.weblio.jp/content/$CLIPBOARD" - -elif [[ "$1" == "forvo" ]]; then - # URL="https://forvo.com/search/$CLIPBOARD" - URL="https://forvo.com/word/$CLIPBOARD/#ja" - -elif [[ "$1" == "deepl" ]]; then - URL="https://www.deepl.com/translator#ja/en/$CLIPBOARD" - -elif [[ "$1" == "cambridge" ]]; then - URL="https://dictionary.cambridge.org/dictionary/english/$CLIPBOARD" -fi - -if [[ "$URL" != "" ]]; then - "$OPEN" "$URL" -fi diff --git a/sxhkd/.config/sxhkd/sxhkdrc b/sxhkd/.config/sxhkd/sxhkdrc index 9a9f73f..60fd640 100644 --- a/sxhkd/.config/sxhkd/sxhkdrc +++ b/sxhkd/.config/sxhkd/sxhkdrc @@ -131,19 +131,4 @@ super + F10 super + F11 playerctl -p mpv position "5+" && notify-send -t 2000 "Plus 5 seconds" "$(playerctl -p mpv position)" -super + F12 - ~/.config/sxhkd/ctb.sh jisho - -super + Home - ~/.config/sxhkd/ctb.sh forvo - -super + End - ~/.config/sxhkd/ctb.sh weblio - -super + Insert - ~/.config/sxhkd/ctb.sh deepl - -super + Delete - ~/.config/sxhkd/ctb.sh cambridge - # vim:ft=sxhkdrc