.zprofile: Added Plasma autostart
When on tty1, starts either Hyprland when on my laptop or Plasma when on my desktop, based on hostname.
This commit is contained in:
parent
c9cc814bae
commit
3f1787fc84
1 changed files with 14 additions and 10 deletions
24
.zprofile
24
.zprofile
|
@ -10,17 +10,21 @@ fi
|
|||
source "$XDG_RUNTIME_DIR/ssh-agent.env" > /dev/null
|
||||
|
||||
# If NVIDIA, set env vars
|
||||
if ! printenv SSH_TTY &> /dev/null && lspci | grep -q 'VGA.*NVIDIA'; then
|
||||
export GBM_BACKEND=nvidia-drm
|
||||
export __GLX_VENDOR_LIBRARY_NAME=nvidia
|
||||
export LIBVA_DRIVER_NAME=nvidia
|
||||
export __GL_GSYNC_ALLOWED=1
|
||||
export __GL_VRR_ALLOWED=0
|
||||
export WLR_NO_HARDWARE_CURSORS=1
|
||||
fi
|
||||
#if ! printenv SSH_TTY &> /dev/null && lspci | grep -q 'VGA.*NVIDIA'; then
|
||||
# export GBM_BACKEND=nvidia-drm
|
||||
# export __GLX_VENDOR_LIBRARY_NAME=nvidia
|
||||
# export LIBVA_DRIVER_NAME=nvidia
|
||||
# export __GL_GSYNC_ALLOWED=1
|
||||
# export __GL_VRR_ALLOWED=0
|
||||
# export WLR_NO_HARDWARE_CURSORS=1
|
||||
#fi
|
||||
|
||||
# Restore Wal colors if not SSH session
|
||||
printenv SSH_TTY &> /dev/null || wal -R
|
||||
|
||||
# Autostart Hyprland on TTY1
|
||||
[[ "$XDG_VTNR" -eq 1 ]] && exec dbus-run-session Hyprland
|
||||
# Autostart on TTY1:
|
||||
# Hyprland on laptop
|
||||
[[ "$XDG_VTNR" -eq 1 ]] && [[ "$HOST" = 'vrz-lt' ]] && exec dbus-run-session Hyprland
|
||||
|
||||
# Plasma on desktop
|
||||
[[ "$XDG_VTNR" -eq 1 ]] && [[ "$HOST" = 'vrz-dt' ]] && startx
|
||||
|
|
Loading…
Reference in a new issue