-
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
437eec4
commit 32d2754
Showing
4 changed files
with
35 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
file://~/aura/sc/fos-data-testsuite/archives archives | ||
file://~/aura/sc aura-sc | ||
file://~/src src | ||
file://~/Nextcloud Nextcloud | ||
nfs://maxocull.com/srv/flamenco flamenco on maxocull.com | ||
file:///home/mocull/src src | ||
file:///home/mocull/aura/sc aura-sc | ||
file:///home/mocull/aura/sc/fos-data-testsuite/archives Test Archives | ||
file:///home/mocull/Nextcloud Nextcloud | ||
nfs://maxocull.com/src/flamenco flamenco@maxocull.com |
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 |
---|---|---|
|
@@ -952,6 +952,25 @@ case "$response" in | |
#[email protected] | ||
#[email protected] | ||
#[email protected] | ||
|
||
# Clear the bookmarks file | ||
printf "" > "${HOME}/.config/gtk-3.0/bookmarks" | ||
|
||
add_bookmark() { | ||
path="${1}" | ||
name="${2}" | ||
|
||
if [ -d "$path" ]; then | ||
printf "file://%s %s\n" "$(realpath "$path")" "$name" >> "${HOME}/.config/gtk-3.0/bookmarks" | ||
fi | ||
} | ||
|
||
add_bookmark "${HOME}/src" "src" | ||
add_bookmark "${HOME}/aura/sc" "aura-sc" | ||
add_bookmark "${HOME}/aura/sc/fos-data-testsuite/archives" "Test Archives" | ||
add_bookmark "${HOME}/Nextcloud" "Nextcloud" | ||
|
||
printf "nfs://maxocull.com/src/flamenco [email protected]\n" >> "${HOME}/.config/gtk-3.0/bookmarks" | ||
fi | ||
;; | ||
*) | ||
|