aboutsummaryrefslogtreecommitdiff
path: root/blog/linux-display-manager/index.org
diff options
context:
space:
mode:
authorChristian Cleberg <hello@cleberg.net>2024-03-04 22:34:28 -0600
committerChristian Cleberg <hello@cleberg.net>2024-03-04 22:34:28 -0600
commit797a1404213173791a5f4126a77ad383ceb00064 (patch)
treefcbb56dc023c1e490df70478e696041c566e58b4 /blog/linux-display-manager/index.org
parent3db79e7bb6a34ee94935c22d7f0e18cf227c7813 (diff)
downloadcleberg.net-797a1404213173791a5f4126a77ad383ceb00064.tar.gz
cleberg.net-797a1404213173791a5f4126a77ad383ceb00064.tar.bz2
cleberg.net-797a1404213173791a5f4126a77ad383ceb00064.zip
initial migration to test org-mode
Diffstat (limited to 'blog/linux-display-manager/index.org')
-rw-r--r--blog/linux-display-manager/index.org72
1 files changed, 72 insertions, 0 deletions
diff --git a/blog/linux-display-manager/index.org b/blog/linux-display-manager/index.org
new file mode 100644
index 0000000..3d8d6d7
--- /dev/null
+++ b/blog/linux-display-manager/index.org
@@ -0,0 +1,72 @@
+#+title: How to Disable or Change the Display Manager on Void Linux
+#+date: 2022-10-30
+#+description: Learn how to remove or modify the display manager on Void Linux.
+#+filetags: :linux:
+
+* Display Manager Services
+In order to change the
+[[https://en.wikipedia.org/wiki/Display_manager][display manager]] on
+Void Linux - or any other Linux distro - you need to identify the
+currently enabled display manager.
+
+** Disabling the Current Display Manager
+Void Linux only has one ISO available for download with a pre-built
+display manager at the time of this post: the XFCE ISO. If you've
+installed this version, the pre-assigned display manager is =lxdm=. If
+you installed another display manager, replace =lxdm= in the following
+command with the display manager you have installed.
+
+To disable =lxdm=, simply remove the service symlink:
+
+#+begin_src sh
+sudo rm /var/service/lxdm
+#+end_src
+
+** Enabling a New Display Manager
+If you want to enable a new display manager, you can do so after =lxdm=
+is disabled. Make sure to replace =<new_display_manager>= with your new
+DM, such as =gdm=, =xdm=, etc.
+
+#+begin_src sh
+sudo ln -s /etc/sv/<new_display_manager> /var/service
+#+end_src
+
+* Set Up =.xinitrc=
+Depending on your setup, you may need to create a few X files, such as
+=~/.xinitrc=. For my personal set-up, I created this file to launch the
+i3wm as my desktop.
+
+#+begin_src sh
+nano ~/.xinitrc
+#+end_src
+
+#+begin_src sh
+#!/bin/sh
+
+exec i3
+#+end_src
+
+If you run a desktop other than i3, simply replace =i3= with the shell
+command that launches that desktop.
+
+* Set Up Your Shell Profile
+Finally, in order to automatically launch an X session upon login, you
+will need to edit the =.bash_profile= (bash) or =.zprofile= (zsh) files
+for your shell:
+
+#+begin_src sh
+nano ~/.zprofile
+#+end_src
+
+Add the following snippet to the end of the shell profile file. This
+will execute the =startx= command upon login.
+
+#+begin_src sh
+if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
+ exec startx
+fi
+#+end_src
+
+Alternatively, you can ignore this step and simply choose to manually
+execute =startx= upon login. This can be useful if you have issues with
+your desktop or like to manually launch different desktops by choice.