aboutsummaryrefslogtreecommitdiff
path: root/.config/zsh
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2024-04-02 23:55:06 +0200
committersrdusr <trevorgray@srdusr.com>2024-04-02 23:55:06 +0200
commitb1718140df5f0ef72fe2b2d284f87ddaac802cb8 (patch)
tree5a516dd1b92e268af85502085805936d64d78275 /.config/zsh
parentd288c7c208aa0e1c399a34f64d2008a25ae59ae3 (diff)
downloaddotfiles-b1718140df5f0ef72fe2b2d284f87ddaac802cb8.tar.gz
dotfiles-b1718140df5f0ef72fe2b2d284f87ddaac802cb8.zip
Moved display variables, ie: x/wayland to .profile or other startup files
Diffstat (limited to '.config/zsh')
-rw-r--r--.config/zsh/.zshenv67
1 files changed, 34 insertions, 33 deletions
diff --git a/.config/zsh/.zshenv b/.config/zsh/.zshenv
index 379c6e0..366efdd 100644
--- a/.config/zsh/.zshenv
+++ b/.config/zsh/.zshenv
@@ -2,42 +2,43 @@
export PATH=$HOME/.bin:$HOME/.local/bin:$HOME/.scripts:$HOME/.scripts/test:/usr/local/bin:/sbin:/usr/sbin:$PATH
export PATH="/data/data/com.termux/files/usr/local/bin:$PATH"
+export TERM=xterm-256color
# Skip the not really helpful global compinit
skip_global_compinit=1
-## Conditionally set WM(window manager)
-available_wms=("bspwm" "mutter" "i3")
-for wm in "${available_wms[@]}"; do
- if command -v "$wm" &> /dev/null; then
- export WM="$wm"
- break
- fi
-done
-
-# Set a flag to indicate if the display server type is found
-display_server_found=0
-
-# Conditionally set Display server
-available_displays=("wayland" "x11")
-for display in "${available_displays[@]}"; do
- if [ "$WAYLAND_DISPLAY" = "$display" ]; then
- export XDG_SESSION_TYPE="$display"
- display_server_found=1
- break
- fi
-done
-
-# Check if XDG_SESSION_TYPE is "x11" and set X11-specific variables
-if [ "$display_server_found" -eq 1 ] && [ "$XDG_SESSION_TYPE" == "x11" ]; then
- # X11-specific variables
- export XINITRC="$HOME/.config/X11/.xinitrc"
- export XSERVERRC="$XDG_CONFIG_HOME/X11/xserverrc"
- export USERXSESSION="$XDG_CONFIG_HOME/X11/xsession"
- export USERXSESSIONRC="$XDG_CONFIG_HOME/X11/xsessionrc"
- export ALTUSERXSESSION="$XDG_CONFIG_HOME/X11/Xsession"
- export ERRFILE="$XDG_CONFIG_HOME/X11/xsession-errors"
- export ICEAUTHORITY="$XDG_CACHE_HOME/.ICEauthority"
-fi
+### Conditionally set WM(window manager)
+#available_wms=("bspwm" "mutter" "i3")
+#for wm in "${available_wms[@]}"; do
+# if command -v "$wm" &> /dev/null; then
+# export WM="$wm"
+# break
+# fi
+#done
+
+## Set a flag to indicate if the display server type is found
+#display_server_found=0
+#
+## Conditionally set Display server
+#available_displays=("wayland" "x11")
+#for display in "${available_displays[@]}"; do
+# if [ "$WAYLAND_DISPLAY" = "$display" ]; then
+# export XDG_SESSION_TYPE="$display"
+# display_server_found=1
+# break
+# fi
+#done
+#
+## Check if XDG_SESSION_TYPE is "x11" and set X11-specific variables
+#if [ "$display_server_found" -eq 1 ] && [ "$XDG_SESSION_TYPE" == "x11" ]; then
+# # X11-specific variables
+# export XINITRC="$HOME/.config/X11/.xinitrc"
+# export XSERVERRC="$XDG_CONFIG_HOME/X11/xserverrc"
+# export USERXSESSION="$XDG_CONFIG_HOME/X11/xsession"
+# export USERXSESSIONRC="$XDG_CONFIG_HOME/X11/xsessionrc"
+# export ALTUSERXSESSION="$XDG_CONFIG_HOME/X11/Xsession"
+# export ERRFILE="$XDG_CONFIG_HOME/X11/xsession-errors"
+# export ICEAUTHORITY="$XDG_CACHE_HOME/.ICEauthority"
+#fi
# Conditionally set default term
available_terms=("wezterm" "alacritty" "xterm")