From 5cfa6cd75121cde38be64868cae5562ea7c75c81 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Thu, 21 Oct 2021 23:41:23 +0800 Subject: Update config of xinit --- .xinitrc | 19 +------------------ .zprofile | 3 +++ 2 files changed, 4 insertions(+), 18 deletions(-) create mode 100644 .zprofile 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 -- cgit v1.2.3