start X with sx if available (after login to first virtual console)

This commit is contained in:
Łukasz Pankowski 2020-01-18 14:46:35 +01:00
parent dcf586c15b
commit a3806294dc
2 changed files with 9 additions and 1 deletions

View File

@ -8,6 +8,9 @@
# for ssh logins, install and configure the libpam-umask package.
#umask 022
export EDITOR=emacsclient
export VISUAL=emacsclient
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
@ -29,3 +32,6 @@ if [ -d "$HOME/bin" ] ; then
fi
export PATH
# start X at login
[[ -z "$DISPLAY" && "$XDG_VTNR" -eq 1 ]] && which /bin/sx > /dev/null && exec sx ~/.xsession

View File

@ -1,6 +1,8 @@
#!/bin/sh
if [ -z "$EDITOR" ]; then
. ~/.profile
fi
xrandr --auto
xrandr --output HDMI1 --right-of DP1