Ensure the sddm config dir exists

This commit is contained in:
Manuel Thalmann 2023-06-02 20:46:20 +02:00
parent d81fe4ce63
commit b3b0f38e67

View file

@ -1,6 +1,9 @@
#!/bin/bash
configDir="/etc/sddm.conf.d";
sudo systemctl enable sddm;
mkdir -p "$configDir";
{
echo "[General]";
echo "DisplayServer=wayland";
@ -8,4 +11,4 @@ sudo systemctl enable sddm;
echo "";
echo "[Wayland]";
echo "CompositorCommand=kwin_wayland --no-lockscreen --inputmethod maliit-keyboard";
} | sudo tee /etc/sddm.conf.d/10-wayland.conf;
} | sudo tee "$configDir/10-wayland.conf";