From d77e34f240d6e0abaafd027d700f84721a2909af Mon Sep 17 00:00:00 2001 From: dakkar Date: Sat, 16 Oct 2021 16:39:31 +0000 Subject: autostart x11 --- .bash_profile | 6 +++++- .xinitrc | 14 +------------- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/.bash_profile b/.bash_profile index c146385..3ce6850 100644 --- a/.bash_profile +++ b/.bash_profile @@ -52,5 +52,9 @@ function killmerged() { export PERLDOC='-MPod::Text::Color::Delight' -fortune +if [[ -z "$DISPLAY" ]]; then + TTY=$(tty) + [[ "${TTY/tty}" != "$TTY" && "${TTY:8:1}" = "8" ]] && + exec startx >~/xsession-errors 2>&1 +fi diff --git a/.xinitrc b/.xinitrc index a991457..5522087 100755 --- a/.xinitrc +++ b/.xinitrc @@ -7,21 +7,9 @@ fi cd export LC_ALL=en_US.UTF-8 xset s off -#sudo ./src/hal-automounter/hal-automounter.pl > automount.log 2>&1 & -( . ~/.perlbrew/init && xscreensaver-dbus > xscreensaver-dbus.log 2>&1 & ) gamma 1 xsetroot -solid black -#export XMODIFIERS=@im=uim -export GTK_IM_MODULE="xim" xrdb -load .Xdefaults -#xset dpms 1800 3600 3600 -#uim-xim --engine=anthy & -emacs --bg-daemon --font Monospace emacs.log & -gkrellm & -(sleep 3;wpa_gui -t)& -~/bin/mwatch & -xpad & start-pulseaudio-x11 -gtk-redshift & -exec fvwm-crystal +exec cvlc -f -- cgit v1.2.3