Cut X_user to one line in bashrc

This commit is contained in:
Alexandre CATTEAU 2022-11-30 19:06:38 +01:00
parent 888ca75356
commit 739089633d

2
bashrc
View File

@ -146,7 +146,7 @@ unset TMUX
alias touchpad='xinput set-prop 12 "Device Enabled" 1'
# Set VNC aliases
X_user=$(who | grep \(: | cut -d " " -f1)
X_user=$(who | grep -m1 \(: | cut -d " " -f1)
X_display=$(who | grep \(: | cut -d ":" -f2 | cut -b 1)
if id -u gdm > /dev/null 2>&1; then
X_gdm_id=$(id -u gdm)