zprofile,zshenv: add changes, host checks

This commit is contained in:
leo 2023-07-01 21:05:01 +02:00
parent c9e3d83c50
commit 7942455826
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ
2 changed files with 12 additions and 2 deletions

@ -70,16 +70,24 @@ if [[ -z $DISPLAY ]]; then
export NO_AT_BRIDGE=1 export NO_AT_BRIDGE=1
export TDESKTOP_USE_PORTAL=1 export TDESKTOP_USE_PORTAL=1
export XDG_SESSION_TYPE=wayland 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 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 if [ -z "${WAYLAND_DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
export GTK_IM_MODULE=ibus export GTK_IM_MODULE=ibus
export QT_IM_MODULE=ibus export QT_IM_MODULE=ibus
export XMODIFIERS=@im=ibus export XMODIFIERS=@im=ibus
export SAL_USE_VCLPLUGIN=gtk3 # for libreoffice
export XDG_CURRENT_DESKTOP=sway 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 elif [ "${XDG_VTNR}" -eq 2 ]; then
export MOZ_ENABLE_WAYLAND=1 export MOZ_ENABLE_WAYLAND=1
export XDG_SESSION_TYPE=wayland export XDG_SESSION_TYPE=wayland

@ -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 --sf '#50fa7b' --scb '#282a36' --scf '#ff79c6' -n -p '⇒' --fork -l 5
--fn 'Fira Code Retina 17'" --fn 'Fira Code Retina 17'"
export PASSWORD_STORE_ENABLE_EXTENSIONS=true
add_to_path() { add_to_path() {
local p=$1 local p=$1
if [[ ! "$PATH" == *"$p"* ]]; then if [[ ! "$PATH" == *"$p"* ]]; then