From 7942455826577c9d9da41039bc19e868d44a3c5b Mon Sep 17 00:00:00 2001 From: leo Date: Sat, 1 Jul 2023 21:05:01 +0200 Subject: [PATCH] zprofile,zshenv: add changes, host checks --- .zprofile | 12 ++++++++++-- .zshenv | 2 ++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.zprofile b/.zprofile index fafae32..9382988 100644 --- a/.zprofile +++ b/.zprofile @@ -70,16 +70,24 @@ if [[ -z $DISPLAY ]]; then export NO_AT_BRIDGE=1 export TDESKTOP_USE_PORTAL=1 export XDG_SESSION_TYPE=wayland - export LIBVA_DRIVER_NAME="i965" + if [[ "${HOSTNAME}" == "surtur" ]]; then + export LIBVA_DRIVER_NAME="i965" + fi test -f ~/.zsh/bemenu-dracula/bemenu-dracula && . ~/.zsh/bemenu-dracula/bemenu-dracula + # if [[ $(tty) == /dev/tty1 ]]; then if [ -z "${WAYLAND_DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then export GTK_IM_MODULE=ibus export QT_IM_MODULE=ibus export XMODIFIERS=@im=ibus + export SAL_USE_VCLPLUGIN=gtk3 # for libreoffice export XDG_CURRENT_DESKTOP=sway - exec systemd-cat --identifier=sway sway > $XDG_RUNTIME_DIR/sway.log 2>&1 + # needs vulkan libs. + export WLRRENDERER=vulkan + # systemd-cat --identifier=sway sway >> $XDG_RUNTIME_DIR/sway.log 2>&1 + # systemd-cat --identifier=sway sway >> /var/tmp/sway.log 2>&1 + sway -d -V >> /var/tmp/sway.log 2>&1 elif [ "${XDG_VTNR}" -eq 2 ]; then export MOZ_ENABLE_WAYLAND=1 export XDG_SESSION_TYPE=wayland diff --git a/.zshenv b/.zshenv index 790206a..6326fbc 100644 --- a/.zshenv +++ b/.zshenv @@ -30,6 +30,8 @@ export BEMENU_OPTS="--tb '#6272a4' --tf '#f8f8f2' --fb '#282a36' --ff '#f8f8f2' --sf '#50fa7b' --scb '#282a36' --scf '#ff79c6' -n -p '⇒' --fork -l 5 --fn 'Fira Code Retina 17'" +export PASSWORD_STORE_ENABLE_EXTENSIONS=true + add_to_path() { local p=$1 if [[ ! "$PATH" == *"$p"* ]]; then