Skip to content

Commit fc77cf1

Browse files
committed
[fix] : Fixed script permission for i3wm environment
1 parent 0cba289 commit fc77cf1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

channels/i3/airootfs.any/root/customize_airootfs_i3.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,16 @@ if [[ "${arch}" = "i686" ]]; then
3232
sed -i -e s/chromium/firefox/g "/home/${username}/.config/i3/config"
3333
fi
3434

35+
# Set permission for script
36+
for _dir in "/etc/skel/" "/home/${username}/"; do
37+
for _script in ".config/"{"polybar/launch.sh","rofi/power.sh"}; do
38+
[[ -e "${_dir}/${_script}" ]] && {
39+
echo "Change permission of ${_dir}/${_script} to 755"
40+
chmod 755 "${_dir}/${_script}"
41+
}
42+
done
43+
done
44+
3545
# disable light-locker on live
3646
sed -i "/light/s/^/# /g" "/home/${username}/.config/i3/config"
3747

0 commit comments

Comments
 (0)