Update
This commit is contained in:
parent
1540e0caa5
commit
0745d9a59c
|
@ -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"
|
||||
|
|
|
@ -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<sl')
|
||||
|
||||
if [ -z "$normal_process" ]; then
|
||||
echo "Restart plasma-plasmashell"
|
||||
systemctl --user restart plasma-plasmashell
|
||||
fi
|
||||
|
||||
sleep 1
|
||||
|
||||
notify-send -t 5000 -a "Theme is" "$theme" "$(date '+%Y.%m.%d %H:%M:%S')"
|
||||
|
||||
echo "Ready"
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
qdbus org.kde.KWin /KWin reconfigure
|
||||
|
||||
echo "Ready"
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
systemctl --user restart plasma-plasmashell
|
||||
|
||||
echo "Ready"
|
Loading…
Reference in New Issue