Add SDDM toogle
This commit is contained in:
4
hypr/settings/modules/sddm/background/config.sh
Normal file
4
hypr/settings/modules/sddm/background/config.sh
Normal file
@@ -0,0 +1,4 @@
|
||||
name="Background"
|
||||
desxription="Update the background wallpaper of sddm to the current wallpaper."
|
||||
order=50
|
||||
author="Stephan Raabe ML4W"
|
||||
23
hypr/settings/modules/sddm/background/module.sh
Executable file
23
hypr/settings/modules/sddm/background/module.sh
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
_getHeader "$name" "$author"
|
||||
|
||||
if gum confirm "Do you want to update the SDDM background with the current wallpaper?" ;then
|
||||
if [ ! -d /etc/sddm.conf.d/ ]; then
|
||||
sudo mkdir /etc/sddm.conf.d
|
||||
echo "Folder /etc/sddm.conf.d created."
|
||||
fi
|
||||
|
||||
sudo cp ~/dotfiles/sddm/sddm.conf /etc/sddm.conf.d/
|
||||
echo "File /etc/sddm.conf.d/sddm.conf updated."
|
||||
|
||||
sudo cp ~/.cache/current_wallpaper.jpg /usr/share/sddm/themes/sugar-candy/Backgrounds/
|
||||
echo "Current wallpaper copied into /usr/share/sddm/themes/sugar-candy/Backgrounds/"
|
||||
|
||||
sudo cp ~/dotfiles/sddm/theme.conf /usr/share/sddm/themes/sugar-candy/
|
||||
echo "File theme.conf updated in /usr/share/sddm/themes/sugar-candy/"
|
||||
|
||||
echo ""
|
||||
echo "SDDM background successfully updated!"
|
||||
sleep 2
|
||||
fi
|
||||
_goBack
|
||||
@@ -1,4 +1,2 @@
|
||||
name="SDDM"
|
||||
desxription="Update the background wallpaper of sddm to the current wallpaper."
|
||||
order=50
|
||||
author="Stephan Raabe ML4W"
|
||||
order=30
|
||||
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
|
||||
@@ -1,23 +1,2 @@
|
||||
#!/bin/bash
|
||||
_getHeader "$name" "$author"
|
||||
|
||||
if gum confirm "Do you want to update the SDDM background with the current wallpaper?" ;then
|
||||
if [ ! -d /etc/sddm.conf.d/ ]; then
|
||||
sudo mkdir /etc/sddm.conf.d
|
||||
echo "Folder /etc/sddm.conf.d created."
|
||||
fi
|
||||
|
||||
sudo cp ~/dotfiles/sddm/sddm.conf /etc/sddm.conf.d/
|
||||
echo "File /etc/sddm.conf.d/sddm.conf updated."
|
||||
|
||||
sudo cp ~/.cache/current_wallpaper.jpg /usr/share/sddm/themes/sugar-candy/Backgrounds/
|
||||
echo "Current wallpaper copied into /usr/share/sddm/themes/sugar-candy/Backgrounds/"
|
||||
|
||||
sudo cp ~/dotfiles/sddm/theme.conf /usr/share/sddm/themes/sugar-candy/
|
||||
echo "File theme.conf updated in /usr/share/sddm/themes/sugar-candy/"
|
||||
|
||||
echo ""
|
||||
echo "SDDM background successfully updated!"
|
||||
sleep 2
|
||||
fi
|
||||
_goBack
|
||||
_getHeader "$name"
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
name="System"
|
||||
order=30
|
||||
author="Stephan Raabe ML4W"
|
||||
|
||||
Reference in New Issue
Block a user