aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2021-10-21 23:41:23 +0800
committerGuangxiong Lin <[email protected]>2021-10-21 23:41:23 +0800
commit5cfa6cd75121cde38be64868cae5562ea7c75c81 (patch)
treea698f50325f3cff43de3863f32321fde5890faf7
parent117c1e2d0685625cd007491ed59a3a1437875d6b (diff)
downloaddotfiles-5cfa6cd75121cde38be64868cae5562ea7c75c81.tar.gz
dotfiles-5cfa6cd75121cde38be64868cae5562ea7c75c81.tar.bz2
dotfiles-5cfa6cd75121cde38be64868cae5562ea7c75c81.zip
Update config of xinit
-rw-r--r--.xinitrc19
-rw-r--r--.zprofile3
2 files changed, 4 insertions, 18 deletions
diff --git a/.xinitrc b/.xinitrc
index 5e407c2..06e5066 100644
--- a/.xinitrc
+++ b/.xinitrc
@@ -8,15 +8,7 @@ sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
-
-
-
-
-
-
-
xrdb -merge $sysresources
-
fi
if [ -f $sysmodmap ]; then
@@ -24,15 +16,7 @@ if [ -f $sysmodmap ]; then
fi
if [ -f "$userresources" ]; then
-
-
-
-
-
-
-
xrdb -merge "$userresources"
-
fi
if [ -f "$usermodmap" ]; then
@@ -54,5 +38,4 @@ fi
# xterm -geometry 80x20+494-0 &
# exec xterm -geometry 80x66+0+0 -name login
-# exec startdwm
-exec dbus-launch i3
+exec dbus-launch startdwm
diff --git a/.zprofile b/.zprofile
new file mode 100644
index 0000000..277492d
--- /dev/null
+++ b/.zprofile
@@ -0,0 +1,3 @@
+if [ -z "${DISPLAY}" ] && [ "{XDG_VTNR}" -eq 1 ]; then
+ exec startx
+fi