Add pika-hyprland-settings/debian/pika-hyprland-settings-nvidia.postinst
This commit is contained in:
parent
770c865f6a
commit
709c8bd8df
@ -0,0 +1,23 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# Check if /home has any subdirectories
|
||||||
|
if [ "$(ls -A /home)" ]; then
|
||||||
|
for u in /home/*; do
|
||||||
|
# Check if the current item is a directory
|
||||||
|
if [ -d "$u" ]; then
|
||||||
|
if [ ! -f "${u}/.config/hypr/hypridle.conf" ]; then
|
||||||
|
cp -a /etc/skel/. "${u}/"
|
||||||
|
chown -R "$(basename "$u"):$(basename "$u")" "${u}/"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -f "${u}/.config/ags/widgets/systray.js" ]; then
|
||||||
|
mkdir -p "${u}/.config/ags/"
|
||||||
|
cp -af /etc/skel/.config/ags/. "${u}/.config/ags/"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
else
|
||||||
|
echo "/home is empty. No user directories to process."
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user