diff --git a/root/.local/bin/key-sign.sh b/root/.local/bin/key-sign.sh index 812d8c1..2becfcd 100755 --- a/root/.local/bin/key-sign.sh +++ b/root/.local/bin/key-sign.sh @@ -17,7 +17,7 @@ if [[ "$UID" != 0 ]]; then if [ "${group}" == "wheel" ] || [ "${group}" == "root" ]; then counter=$(( counter + 1 )) echo "The user '${USER}' is a member of the group ${group}" - if [ ! -x "$0" ]; + if [ ! -x "$0" ]; then chmod +x "$0" fi sudo /bin/sh -c "$0" diff --git a/root/.local/bin/reset-layout.sh b/root/.local/bin/reset-layout.sh index 5b736ea..d3f1a20 100755 --- a/root/.local/bin/reset-layout.sh +++ b/root/.local/bin/reset-layout.sh @@ -6,10 +6,25 @@ theme="com.github.Melawy.Melawy-round-gray.Nier-A2.desktop" plasma-apply-lookandfeel -a "$theme" --resetLayout -notify-send -t 5000 -a "Theme is" "$theme" "$(date '+%Y.%m.%d %H:%M:%S')" - if [ "$(whoami)" != "liveuser" ]; then sleep 5 - rm "$HOME/.config/autostart/reset-layout.desktop" + if [ -f "$HOME/.config/autostart/reset-layout.desktop" ]; then + rm "$HOME/.config/autostart/reset-layout.desktop" + fi # rm "$HOME/.local/bin/reset-layout.sh" fi + +sleep 1 + +normal_process=$(ps -eo pcpu,stat,comm | grep plasmashell | grep 'S