[this doesnt work] try to move url bar, tabs, etc to the bottom
This commit is contained in:
26
link
26
link
@ -1,14 +1,34 @@
|
||||
#!/bin/bash
|
||||
|
||||
here="$(pwd)"
|
||||
if [[ ! "$here" =~ custom_firefox$ ]]; then
|
||||
if [[ ! "$here" =~ firefox$ ]]; then
|
||||
printf 'I dunno where I am\n' >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# @import url(chrome/navbar_below_content.css);
|
||||
# @import url(chrome/tabs_below_content.css);
|
||||
# @import url(chrome/toolbars_below_content.css);
|
||||
|
||||
declare -a files
|
||||
files=(
|
||||
'userChrome.css'
|
||||
'userContent.css'
|
||||
'navbar_below_content.css'
|
||||
'tabs_below_content.css'
|
||||
'toolbars_below_content.css'
|
||||
)
|
||||
|
||||
find "${HOME}/.mozilla/firefox" -maxdepth 1 -type d -name '*.default' \
|
||||
| while read dir; do
|
||||
printf 'ln -fs "%s/userChrome.css" "%s"\n' "$here" "$dir"
|
||||
ln -fs "${here}/userChrome.css" "$dir"
|
||||
dest="${dir}/chrome"
|
||||
if [[ ! -d "$dest" ]]; then
|
||||
mkdir "$dest"
|
||||
fi
|
||||
for file in "${files[@]}"; do
|
||||
printf 'ln -fs "%s/%s" "%s"\n' "$here" "$file" "$dest"
|
||||
ln -fs "${here}/${file}" "$dest"
|
||||
printf 'ln -fs "%s/%s" "%s"\n' "$here" "$file" "$dest"
|
||||
ln -fs "${here}/${file}" "$dest"
|
||||
done
|
||||
done
|
||||
|
Reference in New Issue
Block a user