aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/x
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/x')
-rwxr-xr-x.local/bin/x14
1 files changed, 7 insertions, 7 deletions
diff --git a/.local/bin/x b/.local/bin/x
index ed5e26f..a47b1bc 100755
--- a/.local/bin/x
+++ b/.local/bin/x
@@ -12,12 +12,10 @@ then
exit 1
fi
- # Remove the old config
- rm -f -- "$HOME/.xinitrc"
-
- # Add the base configuration
- cat -- "$HOME/.local/etc/x/xinitrc" "$HOME/.local/etc/x/xinit.d/$1.rc" \
- >> "$HOME/.xinitrc"
+ cat \
+ "$HOME/.local/etc/x/xinitrc" \
+ "$HOME/.local/etc/x/xinit.d/$1.rc" \
+ > "$HOME/.xinitrc"
fi
# Make sure the xinitrc exists, just in case
@@ -28,4 +26,6 @@ then
fi
# start the X session
-exec startx
+startx
+systemctl --user stop desktop-x11.target
+systemctl --user stop desktop.target