Compare commits

...

3 Commits

Author SHA1 Message Date
Alan Orth 79cf112ad4
dotfiles/zshrc: export Sway variables
We need to export these from zsh in our TTY so Sway can read them
when it starts. Sigh.
2022-11-06 21:33:39 +03:00
Alan Orth ee09822398
dotfiles/config/sway/config: remove systemctl import-environment
This was apparently deprecated and no longer works as intended. You
must name all variables you want to import now.
2022-11-06 21:30:20 +03:00
Alan Orth 75ebcd48e3
Remove ~/.pam_environment
It has been deprecated for a long time and Arch Linux finally rem-
oved support for it from pambase.

See: https://bugs.archlinux.org/task/68945
2022-11-06 21:23:34 +03:00
4 changed files with 15 additions and 20 deletions

View File

@ -48,9 +48,6 @@ dotfiles:
f_psqlrc:
src: psqlrc
dst: ~/.psqlrc
f_pam_environment:
src: pam_environment
dst: ~/.pam_environment
f_bashrc:
src: bashrc
dst: ~/.bashrc
@ -93,7 +90,6 @@ profiles:
- f_wob.socket
- f_sway-session.target
- f_psqlrc
- f_pam_environment
- f_xdg_desktop_portal_wlr_config
- d_local_bin
- f_ssh-agent.service
@ -114,7 +110,6 @@ profiles:
- f_wob.socket
- f_sway-session.target
- f_psqlrc
- f_pam_environment
- f_xdg_desktop_portal_wlr_config
- f_geoclue-agent.service
- d_local_bin

View File

@ -281,4 +281,4 @@ bar {
include /etc/sway/config.d/*
# Start sway-session.target, to which kanshi.service and swayidle.service bind.
exec_always "systemctl --user import-environment; systemctl --user start sway-session.target"
exec_always "systemctl --user start sway-session.target"

View File

@ -1,3 +0,0 @@
MOZ_ENABLE_WAYLAND=1
QT_QPA_PLATFORM=wayland-egl
XDG_CURRENT_DESKTOP=sway

View File

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