This commit is contained in:
vinceliuice 2022-11-12 22:35:09 +08:00
parent 1af3e78926
commit 3921f293a2
2 changed files with 11 additions and 4 deletions

View file

@ -200,7 +200,7 @@ else
echo; prompt -w "${final_msg}" echo; prompt -w "${final_msg}"
if [[ -x /usr/bin/notify-send && "$UID" != '0' ]]; then if has_command notify-send && [[ "$UID" != '0' ]]; then
notify-send "'${name}' theme has been installed. Enjoy!" "${notif_msg}" -i "dialog-information-symbolic" notify-send "'${name}' theme has been installed. Enjoy!" "${notif_msg}" -i "dialog-information-symbolic"
fi fi
fi fi

View file

@ -753,7 +753,10 @@ install_dash_to_dock() {
fi fi
udo cp -rf "${DASH_TO_DOCK_SRC_DIR}/dash-to-dock@micxgx.gmail.com" "${GNOME_SHELL_EXTENSION_DIR}" udo cp -rf "${DASH_TO_DOCK_SRC_DIR}/dash-to-dock@micxgx.gmail.com" "${GNOME_SHELL_EXTENSION_DIR}"
udo dbus-launch dconf write /org/gnome/shell/extensions/dash-to-dock/apply-custom-theme true
if has_command dbus-launch; then
udo dbus-launch dconf write /org/gnome/shell/extensions/dash-to-dock/apply-custom-theme true
fi
} }
install_dash_to_dock_theme() { install_dash_to_dock_theme() {
@ -776,7 +779,9 @@ install_dash_to_dock_theme() {
fi fi
fi fi
udo dbus-launch dconf write /org/gnome/shell/extensions/dash-to-dock/apply-custom-theme true if has_command dbus-launch; then
udo dbus-launch dconf write /org/gnome/shell/extensions/dash-to-dock/apply-custom-theme true
fi
} }
revert_dash_to_dock_theme() { revert_dash_to_dock_theme() {
@ -786,7 +791,9 @@ revert_dash_to_dock_theme() {
restore_file "${DASH_TO_DOCK_DIR_ROOT}/stylesheet.css" "sudo" restore_file "${DASH_TO_DOCK_DIR_ROOT}/stylesheet.css" "sudo"
fi fi
udo dbus-launch dconf write /org/gnome/shell/extensions/dash-to-dock/apply-custom-theme false if has_command dbus-launch; then
udo dbus-launch dconf write /org/gnome/shell/extensions/dash-to-dock/apply-custom-theme false
fi
} }
############################################################################### ###############################################################################