This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/common/bin/install-firefox-user-chrome-css.fish
Daniel Flanagan 0478f47694
Fix graphical issues from kanshi, other updates and fixes from recent
re-install

Kanshi seemed to have been the root cause of weird graphical glitches
starting sometime earlier this year. Weird flickering green and
occasional drm crashes where I lost sway for minutes at a time and it
would partially recover. Games would stutter very badly intermittently.
It is likely due to refresh rate synchronization somehow, but in my case
it's been simpler to turn it off. I'll maybe look into it again in the
future.
2022-08-09 09:08:11 -05:00

22 lines
771 B
Fish
Executable file

#!/usr/bin/env fish
set profile_dirs $HOME/.mozilla/firefox/*.dev-edition-default
if test (uname) = Darwin
set profile_dirs $HOME/Library/Application\ Support/Firefox/Profiles/*.dev-edition-default
end
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