diff options
author | Christian Cleberg <hello@cleberg.net> | 2024-04-29 14:18:55 -0500 |
---|---|---|
committer | Christian Cleberg <hello@cleberg.net> | 2024-04-29 14:18:55 -0500 |
commit | fdd80eadcc2f147d0198d94b7b908764778184a2 (patch) | |
tree | fbec9522ea9aa13e8105efc413d2498c3c5b4cd6 /content/blog/2022-10-30-linux-display-manager.md | |
parent | d6c80fdc1dea9ff242a4d3c7d3939d2727a8da56 (diff) | |
download | cleberg.net-fdd80eadcc2f147d0198d94b7b908764778184a2.tar.gz cleberg.net-fdd80eadcc2f147d0198d94b7b908764778184a2.tar.bz2 cleberg.net-fdd80eadcc2f147d0198d94b7b908764778184a2.zip |
format line wrapping and fix escaped characters
Diffstat (limited to 'content/blog/2022-10-30-linux-display-manager.md')
-rw-r--r-- | content/blog/2022-10-30-linux-display-manager.md | 45 |
1 files changed, 20 insertions, 25 deletions
diff --git a/content/blog/2022-10-30-linux-display-manager.md b/content/blog/2022-10-30-linux-display-manager.md index 6b017ca..4d61caf 100644 --- a/content/blog/2022-10-30-linux-display-manager.md +++ b/content/blog/2022-10-30-linux-display-manager.md @@ -8,18 +8,16 @@ draft = false # Display Manager Services In order to change the [display -manager](https://en.wikipedia.org/wiki/Display_manager) on Void Linux - -or any other Linux distro - you need to identify the currently enabled -display manager. +manager](https://en.wikipedia.org/wiki/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. +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: @@ -29,9 +27,8 @@ sudo rm /var/service/lxdm ## 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 +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. ```sh @@ -41,8 +38,8 @@ sudo ln -s /etc/sv/<new_display_manager> /var/service # 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. +`~/.xinitrc`. For my personal set-up, I created this file to launch the i3wm as +my desktop. ```sh nano ~/.xinitrc @@ -54,21 +51,20 @@ nano ~/.xinitrc exec i3 ``` -If you run a desktop other than i3, simply replace `i3` with -the shell command that launches that desktop. +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: +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: ```sh nano ~/.zprofile ``` -Add the following snippet to the end of the shell profile file. This -will execute the `startx` command upon login. +Add the following snippet to the end of the shell profile file. This will +execute the `startx` command upon login. ```sh if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then @@ -76,7 +72,6 @@ if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then fi ``` -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. +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. |