fix: zsh .profile gui variable loaded in tty2+

This commit is contained in:
AngeD 2023-06-26 18:05:24 +02:00
parent 5c06c06ef4
commit 305ecfa9b8
5 changed files with 14 additions and 8 deletions

View File

@ -212,7 +212,8 @@ blur-background-exclude = [
# Specify the backend to use: `xrender`, `glx`, or `xr_glx_hybrid`.
# `xrender` is the default one.
#
backend = "glx"
# backend = "glx"
backend = "glx";
# Enable/disable VSync.
# vsync = false

@ -1 +1 @@
Subproject commit e28dedcf452a9117d76f70090d2f48e01b908f8e
Subproject commit 0a0a3b1a819626969f7e39a664d24ebf82e06245

View File

@ -1,8 +1,9 @@
#!/bin/sh
if [ "$XDG_VTNR" = 1 ]; then
GUILOG="$HOME/.local/share/xorg/gui.log"
mv "$GUILOG" "$GUILOG.old" 2> /dev/null
exec startx > "$GUILOG" 2>&1
#export XDG_CURRENT_DESKTOP=sway && exec sway > "$HOME/.gui.log" 2>&1
fi
[ "$XDG_VTNR" = 1 ] && exec startx > "$GUILOG" 2>&1
#[ "$XDG_VTNR" = 1 ] && export XDG_CURRENT_DESKTOP=sway && exec sway > "$HOME/.gui.log" 2>&1
# vim: ft=zsh

View File

@ -33,3 +33,5 @@ function j() {
[ -n "${dests[2]}" ] && dest="$(printf '%s\n' "${dests[@]}" | fzf)"
cd "$dest"
}
# vim: ft=zsh

View File

@ -13,3 +13,5 @@ fpath=("$ZDOTDIR/completions" $fpath)
. "$ZDOTDIR"/.zsh_aliases
. "$ZDOTDIR/.p10k.zsh"
# vim: ft=zsh