more to be fix on niri

This commit is contained in:
2025-10-05 04:56:05 +02:00
parent 01c6e70dab
commit 22955ec73d
29 changed files with 478 additions and 28 deletions

View File

@@ -52,11 +52,9 @@ elif [ "$XDG_CURRENT_DESKTOP" = "niri" ]; then
exit 1
)
(setsid swaybg -i "$blurred_image" -m fill)&
disown
nohup swaybg -i "$blurred_image" -m fill > /dev/null 2> /dev/null &
(setsid swww img "$image_copied" --transition-type fade --transition-duration 2)&
disown
nohup swww img "$image_copied" --transition-type fade --transition-duration 2 > /dev/null 2> /dev/null &
notify-send "Wallpaper Changed" "$image"
fi

View File

@@ -6,7 +6,7 @@ else
desktop="$1"
fi
for item in "waybar" "kitty" "ghostty"; do
for item in "waybar" "kitty" "ghostty" "wlogout"; do
[ -L "$HOME/.config/$item" ] || exit 1
rm "$HOME/.config/$item"

3
.scripts/niri-swayidle Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
swayidle -w timeout 300 'hyprlock &' timeout 600 'niri msg action power-off-monitors' before-sleep 'hyprlock &'

View File

@@ -19,8 +19,7 @@ function open() {
sleep 0.2
done
fi
(setsid waybar > /dev/null 2> /dev/null &)&
disown
nohup waybar >/dev/null 2>/dev/null &
# Reopen the lyrics widget if it was previously closed
if [ $lyrics_widget_closed -eq 1 ]; then