Firefox userchrome script
This commit is contained in:
parent
4d937dd8b0
commit
3e4f318386
18
common/bin/install-user-chrome-css.fish
Executable file
18
common/bin/install-user-chrome-css.fish
Executable file
|
@ -0,0 +1,18 @@
|
||||||
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
|
set profile_dirs ~/.mozilla/firefox/*.dev-edition-default
|
||||||
|
|
||||||
|
for p in $profile_dirs
|
||||||
|
mkdir -p $p/chrome
|
||||||
|
set user_chrome_css_file $p/chrome/userChrome.css
|
||||||
|
echo '/* Generated by '(status -f)' -- do not edit manually! */' > $user_chrome_css_file
|
||||||
|
cat $DOTFILES_PATH/common/firefox/userChrome.d.css >> $user_chrome_css_file
|
||||||
|
echo >> $user_chrome_css_file
|
||||||
|
for file_part in $ENV_PATH/*/firefox/userChrome.d.css
|
||||||
|
cat $file_part >> $user_chrome_css_file
|
||||||
|
echo >> $user_chrome_css_file
|
||||||
|
end
|
||||||
|
echo Built $user_chrome_css_file
|
||||||
|
end
|
||||||
|
|
||||||
|
echo Make sure you set 'toolkit.legacyUserProfileCustomizations.stylesheets' to true in about:config
|
|
@ -1,3 +1,3 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
tmux-lyte-session notes $NOTES_DIR -- fish -C "N _scratch"
|
N _scratch
|
||||||
|
|
|
@ -2,5 +2,10 @@
|
||||||
|
|
||||||
set session_name $argv[1]
|
set session_name $argv[1]
|
||||||
set dir (set -q argv[2] && echo $argv[2] || pwd)
|
set dir (set -q argv[2] && echo $argv[2] || pwd)
|
||||||
|
|
||||||
|
if set -q TMUX
|
||||||
|
tmux switch -t $session_name
|
||||||
|
else
|
||||||
tmux new-session -D -s "$session_name" -c "$dir" $argv[3..-1] || \
|
tmux new-session -D -s "$session_name" -c "$dir" $argv[3..-1] || \
|
||||||
tmux attach-session -d -t "$session_name" -c "$dir"
|
tmux switch -d -t "$session_name" -c "$dir"
|
||||||
|
end
|
||||||
|
|
3
common/firefox/userChrome.d.css
Normal file
3
common/firefox/userChrome.d.css
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#webrtcIndiator {
|
||||||
|
display: none;
|
||||||
|
}
|
9
host/desktop/firefox/userChrome.d.css
Normal file
9
host/desktop/firefox/userChrome.d.css
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
#main-window[tabsintitlebar="true"]:not([extradragspace="true"])
|
||||||
|
#TabsToolbar
|
||||||
|
> .toolbar-items {
|
||||||
|
opacity: 0;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
#main-window:not([tabsintitlebar="true"]) #TabsToolbar {
|
||||||
|
visibility: collapse !important;
|
||||||
|
}
|
Reference in a new issue