-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1059fd8
commit ed8c5e6
Showing
12 changed files
with
1,021 additions
and
563 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
# [email protected] # | ||
################################# | ||
|
||
|
||
INPUT=$* | ||
STRINGNUM=0 | ||
|
||
|
@@ -13,27 +12,25 @@ echo "---------------------------" | |
echo "Speech Script by Dan Fountain" | ||
echo "[email protected]" | ||
echo "---------------------------" | ||
for key in "${!ary[@]}" | ||
do | ||
for key in "${!ary[@]}"; do | ||
SHORTTMP[$STRINGNUM]="${SHORTTMP[$STRINGNUM]} ${ary[$key]}" | ||
LENGTH=$(echo ${#SHORTTMP[$STRINGNUM]}) | ||
#echo "word:$key, ${ary[$key]}" | ||
#echo "adding to: $STRINGNUM" | ||
if [[ "$LENGTH" -lt "100" ]]; then | ||
#echo starting new line | ||
SHORT[$STRINGNUM]=${SHORTTMP[$STRINGNUM]} | ||
#echo starting new line | ||
SHORT[$STRINGNUM]=${SHORTTMP[$STRINGNUM]} | ||
else | ||
STRINGNUM=$(($STRINGNUM+1)) | ||
SHORTTMP[$STRINGNUM]="${ary[$key]}" | ||
SHORT[$STRINGNUM]="${ary[$key]}" | ||
STRINGNUM=$(($STRINGNUM + 1)) | ||
SHORTTMP[$STRINGNUM]="${ary[$key]}" | ||
SHORT[$STRINGNUM]="${ary[$key]}" | ||
fi | ||
done | ||
|
||
for key in "${!SHORT[@]}" | ||
do | ||
for key in "${!SHORT[@]}"; do | ||
#echo "line: $key is: ${SHORT[$key]}" | ||
|
||
echo "Playing line: $(($key+1)) of $(($STRINGNUM+1))" | ||
echo "Playing line: $(($key + 1)) of $(($STRINGNUM + 1))" | ||
NEXTURL=$(echo ${SHORT[$key]} | xxd -plain | tr -d '\n' | sed 's/\(..\)/%\1/g') | ||
mpg123 -q "http://translate.google.com/translate_tts?ie=UTF-8&client=tw-ob&q=$NEXTURL&tl=En-us" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash | ||
|
||
exec xautolock -detectsleep \ | ||
-time 10 -locker "light-locker-command -l" \ | ||
-time 10 -locker "light-locker-command -l" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/usr/bin/env bash | ||
ROFI_OPTIONS=( -theme $HOME/.config/rofi/bar.theme.rasi -theme-str "*{accent: ${color1:-#3294ff}; font: \"Hack 12\";}") | ||
ROFI_OPTIONS=(-theme $HOME/.config/rofi/bar.theme.rasi -theme-str "*{accent: ${color1:-#3294ff}; font: \"Hack 12\";}") | ||
|
||
options="$(awk '/^[a-z]/ && last {print $0,"\t",last} {last=""} /^#/{last=$0}' $HOME/.config/sxhkd/sxhkdrc | column -t -s $'\t')" | ||
chosen="$(echo -e "$options" | rofi "${ROFI_OPTIONS[@]}" -dmenu)" # -selected-row 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters