[this doesnt work] try to move url bar, tabs, etc to the bottom

This commit is contained in:
2025-03-31 15:49:17 -04:00
parent 2c47ad730d
commit 039432440e
8 changed files with 286 additions and 3 deletions

26
link
View File

@ -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