From 2aecba7a69677eb265dd40431b8f4b43ac69ac5f Mon Sep 17 00:00:00 2001 From: Valeria Fadeeva Date: Mon, 6 Jan 2025 02:07:35 +0500 Subject: [PATCH] Update --- liveuser/.local/bin/reset-layout.sh | 21 ++++++++++++++++++--- liveuser/.local/bin/restart-effects.sh | 5 +++++ liveuser/.local/bin/restart-plasma.sh | 5 +++++ 3 files changed, 28 insertions(+), 3 deletions(-) create mode 100755 liveuser/.local/bin/restart-effects.sh create mode 100755 liveuser/.local/bin/restart-plasma.sh diff --git a/liveuser/.local/bin/reset-layout.sh b/liveuser/.local/bin/reset-layout.sh index 5b736ea4..d3f1a204 100755 --- a/liveuser/.local/bin/reset-layout.sh +++ b/liveuser/.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