dotfiles/zshrc: export Sway variables
We need to export these from zsh in our TTY so Sway can read them when it starts. Sigh.
This commit is contained in:
parent
ee09822398
commit
79cf112ad4
@ -32,17 +32,20 @@ if [[ "$OSTYPE" =~ ^linux.*$ ]]; then
|
|||||||
# $ npm install -g bower grunt grunt-cli
|
# $ npm install -g bower grunt grunt-cli
|
||||||
PATH=$PATH:~/.node_modules/bin
|
PATH=$PATH:~/.node_modules/bin
|
||||||
|
|
||||||
if [[ -n $WAYLAND_DISPLAY ]]; then
|
{%@@ if profile == "knafeh" or profile == "balozi" @@%}
|
||||||
export MOZ_ENABLE_WAYLAND=1
|
# Export these variables in our TTY so that Sway can read them when it
|
||||||
# 2021-06-22: fix "Firefox is already running" message
|
# starts. It's not pretty, but it's all we can do since support for
|
||||||
# See: https://mastransky.wordpress.com/2020/03/16/wayland-x11-how-to-run-firefox-in-mixed-environment/
|
# ~/.pam_environment was removed from pambase in Arch Linux recently.
|
||||||
export MOZ_DBUS_REMOTE=1
|
export MOZ_ENABLE_WAYLAND=1
|
||||||
export QT_QPA_PLATFORM=wayland-egl
|
# 2021-06-22: fix "Firefox is already running" message
|
||||||
export CLUTTER_BACKEND=wayland
|
# See: https://mastransky.wordpress.com/2020/03/16/wayland-x11-how-to-run-firefox-in-mixed-environment/
|
||||||
# 2020-02-10: https://github.com/swaywm/sway/wiki#issues-with-java-applications
|
export MOZ_DBUS_REMOTE=1
|
||||||
export _JAVA_AWT_WM_NONREPARENTING=1
|
export QT_QPA_PLATFORM=wayland-egl
|
||||||
export SDL_VIDEODRIVER=wayland
|
export CLUTTER_BACKEND=wayland
|
||||||
fi
|
# 2020-02-10: https://github.com/swaywm/sway/wiki#issues-with-java-applications
|
||||||
|
export _JAVA_AWT_WM_NONREPARENTING=1
|
||||||
|
export SDL_VIDEODRIVER=wayland
|
||||||
|
{%@@ endif @@%}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Enable asdf version manager zsh completions
|
# Enable asdf version manager zsh completions
|
||||||
|
Loading…
Reference in New Issue
Block a user