summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <55825613+luevano@users.noreply.github.com>2020-12-08 03:13:52 -0700
committerDavid Luevano Alvarado <55825613+luevano@users.noreply.github.com>2020-12-08 03:13:52 -0700
commit7411e60529186dc177c2e915056699dbfadca3c0 (patch)
treea4fa82f0187aef68d4d95c9400cce2bdc9227236 /.config
parentef7b5064e1d92dd2e138b9ab2b7bb8b86a9ed34c (diff)
Finally configure autostarting x to get rid of lightdm
Diffstat (limited to '.config')
-rw-r--r--.config/shell/profile11
-rw-r--r--.config/x11/xprofile6
2 files changed, 14 insertions, 3 deletions
diff --git a/.config/shell/profile b/.config/shell/profile
index 1196694..e7cd55f 100644
--- a/.config/shell/profile
+++ b/.config/shell/profile
@@ -50,3 +50,14 @@ export TEXMFHOME=$HOME/.local/share/texmf
## qBittorrent.
export QT_AUTO_SCREEN_SCALE_FACTOR=0
+
+##--Start X automatically--##
+
+# More on autologin and autostarting x without a DM:
+# https://forums.bunsenlabs.org/viewtopic.php?id=5544
+# Also LS's config could be important here:
+# ttps://github.com/LukeSmithxyz/voidrice/blob/master/.config/shell/profile
+
+if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then
+ exec startx
+fi
diff --git a/.config/x11/xprofile b/.config/x11/xprofile
index bb8f0ce..e94619a 100644
--- a/.config/x11/xprofile
+++ b/.config/x11/xprofile
@@ -9,9 +9,9 @@ picom &
dunst &
udiskie &
flameshot &
-# When not using a DM use this command.
-# start-pulseaudio-x11 &
+# Not really needed when using startx (in general the config in ~/.profile)
+# pulseaudio --start &
pasystray &
# At the end, start the WM.
-# exec i3
+exec i3