Cut X_user to one line in bashrc
This commit is contained in:
parent
888ca75356
commit
739089633d
2
bashrc
2
bashrc
@ -146,7 +146,7 @@ unset TMUX
|
|||||||
alias touchpad='xinput set-prop 12 "Device Enabled" 1'
|
alias touchpad='xinput set-prop 12 "Device Enabled" 1'
|
||||||
|
|
||||||
# Set VNC aliases
|
# 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)
|
X_display=$(who | grep \(: | cut -d ":" -f2 | cut -b 1)
|
||||||
if id -u gdm > /dev/null 2>&1; then
|
if id -u gdm > /dev/null 2>&1; then
|
||||||
X_gdm_id=$(id -u gdm)
|
X_gdm_id=$(id -u gdm)
|
||||||
|
Loading…
Reference in New Issue
Block a user