Dotfiles config update (2022-04-15)

This commit is contained in:
q3aql 2022-04-15 14:29:10 +02:00
parent 75b695396f
commit 1a0b5370f8

7
.zshrc
View File

@ -261,6 +261,9 @@ fi
#shell="5.8" # Run zsh --version #shell="5.8" # Run zsh --version
shell=$(zsh --version | cut -d " " -f 2) shell=$(zsh --version | cut -d " " -f 2)
resolution=$(xrandr 2> /dev/null | grep "*" | head -1 | tr -s " " | cut -d " " -f 2) resolution=$(xrandr 2> /dev/null | grep "*" | head -1 | tr -s " " | cut -d " " -f 2)
if [ -z "${resolution}" ] ; then
resolution="No display"
fi
user_loaded=$(whoami) user_loaded=$(whoami)
home_user="${HOME}" home_user="${HOME}"
if [ -f /proc/cpuinfo ] ; then if [ -f /proc/cpuinfo ] ; then
@ -285,7 +288,11 @@ else
fi fi
arch_system=$(uname -m) arch_system=$(uname -m)
hostname=${HOST} hostname=${HOST}
if [ -z "${XDG_SESSION_TYPE}" ] ; then
session_type="tty"
else
session_type="${XDG_SESSION_TYPE}" session_type="${XDG_SESSION_TYPE}"
fi
clear clear
echo -e " " echo -e " "