From b70caa2bb84ce2ad17ed415abfef4ce31d9b01df Mon Sep 17 00:00:00 2001 From: Olivier DOSSMANN Date: Mon, 9 Aug 2021 10:01:52 +0200 Subject: [PATCH] Variables d'environnement : utilisation de envvars.conf pour Sway (script maison) --- .config/environment.d/envvars.conf | 2 ++ .profile | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/.config/environment.d/envvars.conf b/.config/environment.d/envvars.conf index b499916..058986d 100644 --- a/.config/environment.d/envvars.conf +++ b/.config/environment.d/envvars.conf @@ -1,2 +1,4 @@ # Active wayland pour Firefox MOZ_ENABLE_WAYLAND=1 +# Modifie le comportement JAVA pour PHPStorm +_JAVA_AWT_WM_NONREPARENTING=1 diff --git a/.profile b/.profile index cbde929..415875f 100644 --- a/.profile +++ b/.profile @@ -26,6 +26,13 @@ fi if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then case $HOST in fuz | fuztest) + variables_file="${HOME}/.config/environment.d/envvars.conf" + if [[ -f "${variables_file}" ]]; then + # charge seulement les lignes sans "#" (non commentées) + for line in `cat "${variables_file}"|grep -Ev '^#'`; do + export "$line" + done + fi exec sway ;; *) @@ -33,3 +40,4 @@ if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then ;; esac fi +# vim: ts=2 sw=2 et nu