Add SDDM toogle
This commit is contained in:
4
hypr/settings/modules/sddm/enabledisable/config.sh
Normal file
4
hypr/settings/modules/sddm/enabledisable/config.sh
Normal file
@@ -0,0 +1,4 @@
|
||||
name="Enable Disable"
|
||||
desxription="Update the background wallpaper of sddm to the current wallpaper."
|
||||
order=50
|
||||
author="Stephan Raabe ML4W"
|
||||
18
hypr/settings/modules/sddm/enabledisable/module.sh
Executable file
18
hypr/settings/modules/sddm/enabledisable/module.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
_getHeader "$name" "$author"
|
||||
|
||||
if [ -f /etc/systemd/system/display-manager.service ]; then
|
||||
if gum confirm "Do you want to disable the current display manager?" ;then
|
||||
sudo rm /etc/systemd/system/display-manager.service
|
||||
echo "Current display manager removed. Please reboot your system."
|
||||
sleep 2
|
||||
fi
|
||||
else
|
||||
if gum confirm "Do you want to enable SDDM as your display manager?" ;then
|
||||
sudo systemctl enable sddm.service
|
||||
echo "Display manager SDDM has been enabled. Please reboot your system."
|
||||
sleep 2
|
||||
fi
|
||||
fi
|
||||
|
||||
_goBack
|
||||
Reference in New Issue
Block a user