Created
September 20, 2022 19:45
-
-
Save ISSOtm/707061992cb42a507d6020f86e6fd143 to your computer and use it in GitHub Desktop.
Wrapper to make Firefox respect the current theme (e.g. under i3 or Wayland)
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
#!/bin/bash | |
# Start Firefox, enforcing the global theme | |
export GTK_THEME="${GTK_THEME:-"$(xfconf-query -c xsettings -p /Net/ThemeName)"}" | |
if [[ "$XDG_SESSION_TYPE" = wayland ]]; then | |
export MOZ_ENABLE_WAYLAND=1 | |
fi | |
exec "$(type -a "$(basename "$0")" | grep -Fv "$(realpath "$0")" | head -n 1 | cut -d ' ' -f 3)" "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment