zprofile,zshenv: add changes, host checks
This commit is contained in:
parent
c9e3d83c50
commit
7942455826
12
.zprofile
12
.zprofile
@ -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
|
||||||
|
2
.zshenv
2
.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
|
--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
|
||||||
|
Loading…
Reference in New Issue
Block a user