feat(i3-config): add rofi configuration for i3 desktop environment

Install rofi configuration file (rofi-config.rasi) for i3 desktop to provide an application menu with FWS styling, equivalent to wofi in Hyprland. Configure rofi for both skeleton and existing user home directories with proper ownership settings.
This commit is contained in:
2026-07-04 13:15:33 +02:00
parent 9e59be79c3
commit 3cdfdcfaeb
@@ -448,14 +448,17 @@ if [ "$DESK" = "i3" ] && [ -f /usr/local/share/fws/i3-config ]; then
# visuel que la session Hyprland FWS. # visuel que la session Hyprland FWS.
install -Dm644 /usr/local/share/fws/polybar-config.ini /etc/skel/.config/polybar/config.ini install -Dm644 /usr/local/share/fws/polybar-config.ini /etc/skel/.config/polybar/config.ini
install -Dm644 /usr/local/share/fws/picom.conf /etc/skel/.config/picom.conf install -Dm644 /usr/local/share/fws/picom.conf /etc/skel/.config/picom.conf
# rofi : menu d'applications au look FWS (équivalent du wofi d'Hyprland).
install -Dm644 /usr/local/share/fws/rofi-config.rasi /etc/skel/.config/rofi/config.rasi
while IFS=: read -r _u _x _uid _g _gec _home _sh; do while IFS=: read -r _u _x _uid _g _gec _home _sh; do
[ "$_uid" -ge 1000 ] && [ "$_uid" -le 60000 ] && [ -d "$_home" ] || continue [ "$_uid" -ge 1000 ] && [ "$_uid" -le 60000 ] && [ -d "$_home" ] || continue
install -Dm644 /usr/local/share/fws/i3-config "$_home/.config/i3/config" install -Dm644 /usr/local/share/fws/i3-config "$_home/.config/i3/config"
install -Dm644 /usr/local/share/fws/polybar-config.ini "$_home/.config/polybar/config.ini" install -Dm644 /usr/local/share/fws/polybar-config.ini "$_home/.config/polybar/config.ini"
install -Dm644 /usr/local/share/fws/picom.conf "$_home/.config/picom.conf" install -Dm644 /usr/local/share/fws/picom.conf "$_home/.config/picom.conf"
install -Dm644 /usr/local/share/fws/rofi-config.rasi "$_home/.config/rofi/config.rasi"
chown "$_u": "$_home/.config" 2>/dev/null || true chown "$_u": "$_home/.config" 2>/dev/null || true
chown -R "$_u": "$_home/.config/i3" "$_home/.config/polybar" \ chown -R "$_u": "$_home/.config/i3" "$_home/.config/polybar" \
"$_home/.config/picom.conf" 2>/dev/null || true "$_home/.config/rofi" "$_home/.config/picom.conf" 2>/dev/null || true
done < /etc/passwd done < /etc/passwd
fi fi