more to be fix on niri
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
3
.scripts/niri-swayidle
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
swayidle -w timeout 300 'hyprlock &' timeout 600 'niri msg action power-off-monitors' before-sleep 'hyprlock &'
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user