Skip to content

Commit

Permalink
fix(sddm test): fix sddm test wrong var
Browse files Browse the repository at this point in the history
  • Loading branch information
kRHYME7 committed Aug 29, 2024
1 parent 279c03a commit 054af4f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions Hyde
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,7 @@ sddm() { #? Sddm commands
case $1 in
install) #? Install and set sddm theme from HyDE clone Repo
navigate_clone
sddm_unset
sddm_install "${@}"
;;
list) #? List all local sddm themes
Expand Down
12 changes: 7 additions & 5 deletions Scripts/Manage-Sddm
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

if ! pkg_installed sddm; then exit 0; fi

sddm_bak=/etc/sddm.conf.d/kde_settings.t2.bkp
sddm_bak=/etc/sddm.conf.d/kde_settings.hyde.bak
export sddm_conf_dir=/etc/sddm.conf.d
export sddm_conf="${sddm_conf_dir}/kde_settings.conf"
#! export sddm_conf="${sddm_conf_dir}/kde_settings.conf"
sddm_theme_dir="/usr/share/sddm/themes"

sddm_set() {
Expand All @@ -18,6 +18,8 @@ sddm_set() {
SUPER cp "${sddm_conf_dir}/kde_settings.conf" "${sddm_bak}"
SUPER cp ${sddm_theme_dir}/${sddm_theme}/kde_settings.conf "${sddm_conf_dir}"
enable_service sddm
print_prompt -y "Re-login to apply changes?"
ask_confirm && systemctl restart --now display-manager

}

Expand Down Expand Up @@ -100,7 +102,7 @@ sddm_set_theme() {
sddm_set_selected "${selected_theme}"
fi
enable_service sddm
print_prompt -y "Restart sddm?"
print_prompt -y "Re-login to apply changes?"
ask_confirm && systemctl restart --now display-manager
}

Expand All @@ -117,8 +119,8 @@ sddm_test() {
test_theme=${1}
fi
print_prompt -g "[try] " "${test_theme} theme"
[ -z "${selected_theme}" ] && print_prompt -r "Operation Cancelled" && return 1

[ -z "${test_theme}" ] && print_prompt -r "Operation Cancelled" && return 1
sddm-greeter --test-mode --theme "${sddm_theme_dir}/${test_theme}"
}
sddm_unset() {
Expand Down

0 comments on commit 054af4f

Please sign in to comment.