-
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.
multiple gui browsers and profiles separately, skipping the help idea…
… for the moment
- Loading branch information
Showing
7 changed files
with
494 additions
and
18 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
|
||
function firefox_send { | ||
|
||
/usr/bin/firefox --new-tab "$link" | ||
|
||
} | ||
|
||
|
||
|
||
############################################################################## | ||
# Are we sourced? | ||
# From http://stackoverflow.com/questions/2683279/ddg#34642589 | ||
############################################################################## | ||
|
||
# Try to execute a `return` statement, | ||
# but do it in a sub-shell and catch the results. | ||
# If this script isn't sourced, that will raise an error. | ||
$(return >/dev/null 2>&1) | ||
|
||
# What exit code did that give? | ||
if [ "$?" -eq "0" ];then | ||
echo "[info] Function ready to go." | ||
OUTPUT=0 | ||
else | ||
OUTPUT=1 | ||
if [ "$#" = 0 ];then | ||
echo -e "Please call this as a function or with \nthe url as the first argument and optional \ndescription as the second." | ||
else | ||
link="${1}" | ||
if [ ! -z "$2" ];then | ||
title="$2" | ||
fi | ||
gui_browser_send | ||
fi | ||
fi |
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
|
||
function work_browser_send { | ||
|
||
/home/steven/apps/waterfox/waterfox -P work -no-remote --class workWaterfoxProfile "$link" | ||
|
||
} | ||
|
||
|
||
|
||
############################################################################## | ||
# Are we sourced? | ||
# From http://stackoverflow.com/questions/2683279/ddg#34642589 | ||
############################################################################## | ||
|
||
# Try to execute a `return` statement, | ||
# but do it in a sub-shell and catch the results. | ||
# If this script isn't sourced, that will raise an error. | ||
$(return >/dev/null 2>&1) | ||
|
||
# What exit code did that give? | ||
if [ "$?" -eq "0" ];then | ||
echo "[info] Function ready to go." | ||
OUTPUT=0 | ||
else | ||
OUTPUT=1 | ||
if [ "$#" = 0 ];then | ||
echo -e "Please call this as a function or with \nthe url as the first argument and optional \ndescription as the second." | ||
else | ||
link="${1}" | ||
if [ ! -z "$2" ];then | ||
title="$2" | ||
fi | ||
gui_browser_send | ||
fi | ||
fi |
Oops, something went wrong.