Update virtualkeyboard, small changes, you can now use arguments to
enter categories. -h argument will help you.
This commit is contained in:
parent
6d834d5e21
commit
8aaf1035eb
|
@ -2070,43 +2070,64 @@ printf "ă
|
|||
JAPANESECOPY()
|
||||
{
|
||||
JAPANESE_LETTER_CHOICE="$(printf "$(JAPANESE_CHARACTERS_LIST)" | $RUNLAUNCHER -l 5 -p 'Pick a character: ' | awk '{ print $1 }')"
|
||||
printf "$JAPANESE_LETTER_CHOICE" | xclip -selection clipboard && notify-send "$JAPANESE_LETTER_CHOICE copied to clipboard."
|
||||
printf "$JAPANESE_LETTER_CHOICE" | xclip -selection clipboard
|
||||
if [ "$JAPANESE_LETTER_CHOICE" != "" ]; then
|
||||
notify-send "$JAPANESE_LETTER_CHOICE copied to clipboard."
|
||||
fi
|
||||
}
|
||||
|
||||
ARABICCOPY()
|
||||
{
|
||||
ARABIC_LETTER_CHOICE="$(printf "$(ARABIC_CHARACTERS_LIST)" | $RUNLAUNCHER -l 5 -p 'Pick a character: ' | awk '{ print $1 }')"
|
||||
printf "$ARABIC_LETTER_CHOICE" | xclip -selection clipboard && notify-send "$ARABIC_LETTER_CHOICE copied to clipboard."
|
||||
printf "$ARABIC_LETTER_CHOICE" | xclip -selection clipboard
|
||||
if [ "$ARABIC_LETTER_CHOICE" != "" ]; then
|
||||
notify-send "$ARABIC_LETTER_CHOICE copied to clipboard."
|
||||
fi
|
||||
}
|
||||
|
||||
BAYBAINCOPY()
|
||||
{
|
||||
BAYBAIN_LETTER_CHOICE="$(printf "$(BAYBAIN_CHARACTERS_LIST)" | $RUNLAUNCHER -l 5 -p 'Pick a character: ')"
|
||||
printf "$BAYBAIN_LETTER_CHOICE" | xclip -selection clipboard && notify-send "$BAYBAIN_LETTER_CHOICE copied to clipboard."
|
||||
printf "$BAYBAIN_LETTER_CHOICE" | xclip -selection clipboard
|
||||
if [ "$BAYBAIN_LETTER_CHOICE" != "" ]; then
|
||||
notify-send "$BAYBAIN_LETTER_CHOICE copied to clipboard."
|
||||
fi
|
||||
}
|
||||
|
||||
SPANISHCOPY()
|
||||
{
|
||||
SPANISH_LETTER_CHOICE="$(printf "$(SPANISH_CHARACTERS_LIST)" | $RUNLAUNCHER -l 5 -p 'Pick a character: ')"
|
||||
printf "$SPANISH_LETTER_CHOICE" | xclip -selection clipboard && notify-send "$SPANISH_LETTER_CHOICE copied to clipboard."
|
||||
printf "$SPANISH_LETTER_CHOICE" | xclip -selection clipboard
|
||||
if [ "$SPANISH_LETTER_CHOICE" != "" ]; then
|
||||
notify-send "$SPANISH_LETTER_CHOICE copied to clipboard."
|
||||
fi
|
||||
}
|
||||
|
||||
CHINESECOPY()
|
||||
{
|
||||
CHINESE_LETTER_CHOICE="$(printf "$(CHINESE_CHARACTERS_LIST)" | $RUNLAUNCHER -l 5 -p 'Pick a character: ')"
|
||||
printf "$CHINESE_LETTER_CHOICE" | awk '{ print $1 }' | xclip -selection clipboard && notify-send "$(printf "$CHINESE_LETTER_CHOICE" | awk '{ print $1 }') copied to clipboard."
|
||||
printf "$CHINESE_LETTER_CHOICE" | awk '{ print $1 }' | xclip -selection clipboard
|
||||
if [ "$CHINESE_LETTER_CHOICE" != "" ]; then
|
||||
notify-send "$(printf "$CHINESE_LETTER_CHOICE" | awk '{ print $1 }') copied to clipboard."
|
||||
fi
|
||||
}
|
||||
|
||||
SWEDISHFINNISHCOPY()
|
||||
{
|
||||
SWEDISH_LETTER_CHOICE="$(printf "$(SWEDISH_FINNISH_CHARACTERS_LIST)" | $RUNLAUNCHER -l 5 -p 'Pick a character: ')"
|
||||
printf "$SWEDISH_LETTER_CHOICE" | xclip -selection clipboard && notify-send "$SWEDISH_LETTER_CHOICE copied to clipboard."
|
||||
printf "$SWEDISH_LETTER_CHOICE" | xclip -selection clipboard
|
||||
if [ "$SWEDISH_LETTER_CHOICE" != "" ]; then
|
||||
notify-send "$SWEDISH_LETTER_CHOICE copied to clipboard."
|
||||
fi
|
||||
}
|
||||
|
||||
ROMANIANCOPY()
|
||||
{
|
||||
ROMANIAN_LETTER_CHOICE="$(printf "$(ROMANIAN_CHARACTERS_LIST)" | $RUNLAUNCHER -l 5 -p 'Pick a character: ')"
|
||||
printf "$ROMANIAN_LETTER_CHOICE" | xclip -selection clipboard && notify-send "$ROMANIAN_LETTER_CHOICE copied to clipboard."
|
||||
printf "$ROMANIAN_LETTER_CHOICE" | xclip -selection clipboard
|
||||
if [ "$ROMANIAN_LETTER_CHOICE" != "" ]; then
|
||||
notify-send "$ROMANIAN_LETTER_CHOICE copied to clipboard."
|
||||
fi
|
||||
}
|
||||
|
||||
COPYPASTALIST()
|
||||
|
@ -2120,13 +2141,19 @@ Stop using the term 'Open Source'. By supporting 'open source', you're not suppo
|
|||
COPYPASTACOPY()
|
||||
{
|
||||
COPYPASTASEL="$(printf "$(COPYPASTALIST)" | $RUNLAUNCHER -l 5 -p 'Pick a copypasta: ')"
|
||||
printf "$COPYPASTASEL" | xclip -selection clipboard && notify-send "$COPYPASTASEL copied to clipboard."
|
||||
printf "$COPYPASTASEL" | xclip -selection clipboard
|
||||
if [ "$COPYPASTASEL" != "" ]; then
|
||||
notify-send "$COPYPASTASEL copied to clipboard."
|
||||
fi
|
||||
}
|
||||
|
||||
EMOJICOPY()
|
||||
{
|
||||
EMOJISEL="$(printf "$(EMOJILIST)" | $RUNLAUNCHER -l 5 -p 'Pick an emoji: ' | awk '{ print $1 }')"
|
||||
printf $EMOJISEL | xclip -selection clipboard && notify-send "$EMOJISEL copied to clipboard."
|
||||
printf $EMOJISEL | xclip -selection clipboard
|
||||
if [ "$EMOJISEL" != "" ]; then
|
||||
notify-send "$EMOJISEL copied to clipboard."
|
||||
fi
|
||||
}
|
||||
|
||||
DBOARD_CREDITS()
|
||||
|
@ -2136,13 +2163,42 @@ DBOARD_CREDITS()
|
|||
|
||||
DBOARD_ABOUT()
|
||||
{
|
||||
printf "dboard 0.2\nReleased and licensed to you (the end user) under the GNU GPLv3 free software license.\nYou are using this software at your own risk."
|
||||
printf "dboard 0.2\nModified for speedie.gq/speedwm\nReleased and licensed to you (the end user) under the GNU GPLv3 free software license.\nYou are using this software at your own risk."
|
||||
}
|
||||
|
||||
###########################################################
|
||||
|
||||
case "$1" in
|
||||
"-h") echo "speedwm-virtualkeyboard"
|
||||
echo "-e | Open a list of emojis in $RUNLAUNCHER and copy the selected emoji to the clipboard."
|
||||
echo "-c | Open a list of copypasta in $RUNLAUNCHER and copy the selected one to the clipboard."
|
||||
echo "-se | Open a list of Swedish/Finnish letters in $RUNLAUNCHER and copy the selected one to the clipboard."
|
||||
echo "-esp | Open a list of Spanish letters in $RUNLAUNCHER and copy the selected one to the clipboard."
|
||||
echo "-jap | Open a list of Japanese letters in $RUNLAUNCHER and copy the selected one to the clipboard."
|
||||
echo "-ch | Open a list of Chinese letters in $RUNLAUNCHER and copy the selected one to the clipboard."
|
||||
echo "-bay | Open a list of Baybain letters in $RUNLAUNCHER and copy the selected one to the clipboard."
|
||||
echo "-ar | Open a list of Arabic letters in $RUNLAUNCHER and copy the selected one to the clipboard."
|
||||
echo "-ro | Open a list of Romanian letters in $RUNLAUNCHER and copy the selected one to the clipboard."
|
||||
echo "-credits | View a list of people who made this nice little application possible."
|
||||
echo "-about | View an about screen."
|
||||
echo "-h | View this list of arguments." ; exit 0 ;;
|
||||
"-e") ACTION=Emoji ;;
|
||||
"-c") ACTION=Copypasta ;;
|
||||
"-se") ACTION="Swedish/Finnish letters" ;;
|
||||
"-esp") ACTION="Spanish letters" ;;
|
||||
"-ch") ACTION="Chinese letters" ;;
|
||||
"-jap") ACTION="Japanese letters" ;;
|
||||
"-bay") ACTION="Baybain letters" ;;
|
||||
"-ar") ACTION="Arabic letters" ;;
|
||||
"-ro") ACTION="Romanian letters" ;;
|
||||
"-credits") ACTION="Credits" ;;
|
||||
"-about") ACTION="About" ;;
|
||||
esac
|
||||
|
||||
# Ask the user what they wanna do
|
||||
if [ "$ACTION" = "" ]; then
|
||||
ACTION=$(printf "Emoji\nCopypasta\nSwedish/Finnish letters\nSpanish letters\nChinese letters\nJapanese letters\nBaybain letters\nArabic letters\nRomanian letters\nCredits\nAbout\nExit" | $RUNLAUNCHER -p 'What would you like to copy?' -l 20)
|
||||
fi
|
||||
|
||||
if [ "$ACTION" = "Emoji" ]; then
|
||||
EMOJICOPY
|
||||
|
|
Loading…
Reference in a new issue